.muted {
    color: #9ca3af;
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
}

.alert--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #cbd5e1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0b1220;
    color: #e8eef7;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(37,99,235,0.8);
}

.btn {
    border: 0;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn--small {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.btn--primary {
    background: #2563eb;
    color: #fff;
}

.btn--primary:hover {
    background: #1d4ed8;
}

.btn--secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.btn--secondary:hover {
    background: rgba(255,255,255,0.14);
}

.btn--danger {
    background: #b91c1c;
    color: #fff;
}

.btn--danger:hover {
    background: #991b1b;
}

.btn--success {
    background: #15803d;
    color: #fff;
}

.btn--success:hover {
    background: #166534;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stats-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.panel-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px;
}

.panel-card--narrow {
    max-width: 760px;
}

.stat-card__label {
    display: block;
    color: #9ca3af;
    margin-bottom: 8px;
    font-size: 14px;
}

.stat-card__value {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.panel-card__head {
    margin-bottom: 16px;
}

.panel-card__head h2 {
    margin: 0;
}

.lesson-list,
.simple-list,
.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-item,
.simple-list__item,
.calendar-item,
.document-card {
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.06);
}

.lesson-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.lesson-item--admin {
    align-items: stretch;
}

.lesson-item--current {
    border-color: rgba(37,99,235,0.9);
    background: rgba(37,99,235,0.16);
    box-shadow: 0 0 0 1px rgba(37,99,235,0.15) inset;
}

.lesson-item--finished {
    opacity: 0.7;
}

.lesson-item--upcoming {
    border-color: rgba(148,163,184,0.25);
}

.lesson-item__time {
    min-width: 100px;
    font-weight: 700;
    color: #bfdbfe;
}

.lesson-item__body {
    flex: 1;
}

.lesson-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.lesson-note {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.lesson-status {
    margin-top: 10px;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.lesson-status--current {
    background: rgba(37,99,235,0.18);
    color: #bfdbfe;
}

.lesson-status--finished {
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
}

.lesson-status--upcoming {
    background: rgba(148,163,184,0.14);
    color: #cbd5e1;
}

.lesson-actions {
    margin-top: 12px;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.panel-card--today {
    border-color: rgba(37,99,235,0.6);
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dbe4f0;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: top;
}

.data-table th {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 700;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-form {
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge--default {
    background: rgba(255,255,255,0.08);
    color: #e5e7eb;
}

.badge--info {
    background: rgba(37,99,235,0.18);
    color: #bfdbfe;
}

.badge--success {
    background: rgba(34,197,94,0.18);
    color: #bbf7d0;
}

.badge--danger {
    background: rgba(239,68,68,0.18);
    color: #fecaca;
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.16);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px;
}

.form-group--inline {
    min-width: 260px;
    margin: 0;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.document-card__top,
.calendar-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.document-card__top h3,
.calendar-item__head h3 {
    margin: 0 0 6px;
}

.document-card__desc,
.calendar-item__desc {
    margin: 12px 0;
    color: #dbe4f0;
}

.document-card__actions {
    margin-top: 14px;
}

#calendar {
    min-height: 720px;
}

.fc .fc-toolbar-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.fc .fc-button {
    border-radius: 12px !important;
    border: 0 !important;
    box-shadow: none !important;
}

.fc .fc-button-primary {
    background: #2563eb !important;
}

.fc .fc-button-primary:hover {
    background: #1d4ed8 !important;
}

.fc .fc-daygrid-event {
    border-radius: 10px;
    padding: 2px 6px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 36, 0.75);
}

.modal__content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 32px));
    margin: 48px auto;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 24px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}