:root {
    --glass-bg: rgba(38, 40, 45, 0.86);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-blur: 10px;
    --panel-header: linear-gradient(90deg, rgba(73, 25, 70, 0.95), rgba(49, 22, 55, 0.95));
}

body {
    background-color: #2f3237;
    background-image: none;
}

select option {
    background-color: #1e293b; /* Odpowiednik bg-slate-800 w Tailwind */
    color: #ffffff;
}
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
}

.glass-card {
    background: rgba(35, 37, 41, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 0.4rem;
}

.glass-modal {
    background: rgba(20, 28, 40, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    border-radius: 0.375rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background: #202225;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.btn-primary:hover {
    background: #2a2d31;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.table-glass {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-glass th,
.table-glass td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table-glass th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    background: var(--panel-header);
    color: #d1d5db;
}

.table-glass tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.grade-cell {
    min-width: 2.5rem;
    min-height: 2rem;
    cursor: pointer;
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.15s;
}

.grade-cell:hover {
    background: rgba(99, 102, 241, 0.25);
}

.grade-cell.empty {
    color: #475569;
    font-weight: 400;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(58, 60, 64, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: #f1f5f9;
    font-size: 0.875rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.summary-input {
    width: 3rem;
    text-align: center;
    padding: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-ob { color: #4ade80; }
.status-nb { color: #f87171; }
.status-u { color: #60a5fa; }
.status-sp { color: #fbbf24; }
.status-spu { color: #a78bfa; }
.status-zw { color: #94a3b8; }
