.tf-page-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 22px;
}

.tf-page-head h2 {
    color: var(--tf-blue);
    font-size: 32px;
    font-weight: 950;
    margin: 6px 0;
    letter-spacing: -0.8px;
}

.tf-page-head p {
    color: var(--tf-muted);
    margin: 0;
}

.tf-kicker.dark {
    color: var(--tf-orange);
    background: rgba(255, 122, 0, 0.10);
    padding: 8px 12px;
    border-radius: 999px;
}

.tf-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.tf-filter-bar.multi {
    flex-wrap: wrap;
}

.tf-filter-input {
    flex: 1;
    min-width: 260px;
    min-height: 48px;
    border: 1px solid var(--tf-border);
    background: #FBFDFF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.tf-filter-input i {
    color: var(--tf-orange);
}

.tf-filter-input input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
}

.tf-select {
    min-height: 48px;
    min-width: 160px;
    border: 1px solid var(--tf-border);
    background: #FBFDFF;
    border-radius: 16px;
    padding: 0 14px;
    color: var(--tf-blue);
    font-weight: 750;
    outline: none;
}

.tf-secondary-dark-btn,
.tf-light-btn {
    min-height: 48px;
    border-radius: 16px;
    padding: 0 16px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.tf-secondary-dark-btn {
    background: var(--tf-blue);
    color: #fff;
}

.tf-secondary-dark-btn:hover {
    color: #fff;
    background: var(--tf-blue-2);
}

.tf-light-btn {
    background: #F1F5F9;
    color: var(--tf-blue);
}

.tf-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.tf-table {
    margin: 0;
}

.tf-table thead th {
    color: var(--tf-blue);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 1px solid var(--tf-border);
    padding: 14px 12px;
    white-space: nowrap;
}

.tf-table thead th i {
    color: var(--tf-orange);
    margin-right: 6px;
}

.tf-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #EEF2F7;
    vertical-align: middle;
}

.tf-row-title {
    font-weight: 900;
    color: var(--tf-blue);
}

.tf-row-sub,
.tf-table small {
    color: var(--tf-muted);
    font-size: 12px;
}

.tf-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.tf-pill.yes {
    background: rgba(16,185,129,0.12);
    color: #059669;
}

.tf-pill.no {
    background: rgba(100,116,139,0.12);
    color: #64748B;
}

.tf-form-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(7, 30, 61, 0.08);
    color: var(--tf-blue);
    font-weight: 900;
    font-size: 12px;
}

.tf-table-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--tf-border);
    border-radius: 13px;
    background: #fff;
    color: var(--tf-blue);
    display: inline-grid;
    place-items: center;
    margin-left: 4px;
    transition: 0.16s ease;
}

.tf-table-btn:hover {
    background: rgba(255,122,0,0.12);
    color: var(--tf-orange);
}

.tf-table-btn.danger:hover {
    background: rgba(239,68,68,0.12);
    color: #DC2626;
}

.tf-empty-state {
    padding: 42px 18px;
    text-align: center;
    color: var(--tf-muted);
}

.tf-empty-state.wide {
    grid-column: 1 / -1;
}

.tf-empty-state i {
    width: 76px;
    height: 76px;
    border-radius: 25px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    background: rgba(255,122,0,0.12);
    color: var(--tf-orange);
    font-size: 34px;
}

.tf-empty-state h4 {
    color: var(--tf-blue);
    font-weight: 950;
    margin-bottom: 5px;
}

.tf-modal {
    border: none;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(7,30,61,0.28);
}

.tf-modal .modal-header {
    background: linear-gradient(135deg, var(--tf-blue), var(--tf-blue-2));
    color: #fff;
    border: none;
    padding: 24px;
}

.tf-modal .modal-header h5 {
    font-weight: 950;
    margin: 0;
}

.tf-modal .modal-header h5 i {
    color: var(--tf-orange);
    margin-right: 8px;
}

.tf-modal .modal-header p {
    margin: 5px 0 0;
    color: rgba(255,255,255,0.66);
    font-size: 13px;
}

.tf-modal .modal-body {
    padding: 24px;
}

.tf-modal .modal-footer {
    padding: 18px 24px;
    background: #F8FAFC;
    border-top: 1px solid var(--tf-border);
}

.tf-modal label {
    display: block;
    font-weight: 850;
    color: var(--tf-blue);
    font-size: 13px;
    margin-bottom: 7px;
}

.tf-input-icon select {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    color: var(--tf-text);
}

.tf-textarea-wrap {
    border: 1px solid var(--tf-border);
    border-radius: 16px;
    background: #FAFBFF;
    display: grid;
    grid-template-columns: 38px 1fr;
    padding: 12px 12px 12px 0;
}

.tf-textarea-wrap i {
    color: var(--tf-muted);
    display: grid;
    place-items: start center;
    padding-top: 4px;
}

.tf-textarea-wrap textarea {
    border: none;
    outline: none;
    background: transparent;
    resize: vertical;
    width: 100%;
}

.tf-switch-line {
    min-height: 48px;
    border: 1px solid var(--tf-border);
    border-radius: 16px;
    background: #FAFBFF;
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    margin: 0 !important;
}

.tf-switch-line input {
    width: 18px;
    height: 18px;
    accent-color: var(--tf-orange);
}

.tf-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tf-curriculum-card {
    border: 1px solid var(--tf-border);
    background: #FBFDFF;
    border-radius: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 14px;
    align-items: start;
}

.tf-curriculum-icon {
    width: 58px;
    height: 58px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    background: rgba(7,30,61,0.08);
    color: var(--tf-blue);
    font-size: 24px;
}

.tf-curriculum-icon.science {
    background: rgba(255,122,0,0.12);
    color: var(--tf-orange);
}

.tf-curriculum-content h4 {
    color: var(--tf-blue);
    font-weight: 950;
    margin: 2px 0 4px;
}

.tf-curriculum-content p {
    color: var(--tf-muted);
    margin: 0 0 10px;
}

.tf-card-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.tf-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tf-student-avatar {
    width: 38px;
    height: 38px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--tf-orange), var(--tf-orange-2));
    color: #fff;
    font-weight: 950;
}

.tf-page-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-weight: 800;
}

.tf-page-alert.success {
    color: #047857;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.20);
}

.tf-page-alert.error {
    color: #B91C1C;
    background: rgba(239,68,68,0.10);
    border: 1px solid rgba(239,68,68,0.18);
}

/* Loader */
.tf-page-loader {
    position: fixed;
    inset: 0;
    background: rgba(7, 30, 61, 0.52);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    place-items: center;
}

.tf-page-loader.show {
    display: grid;
}

.tf-loader-card {
    width: min(92vw, 360px);
    border-radius: 26px;
    padding: 30px;
    background: #fff;
    text-align: center;
    box-shadow: 0 35px 95px rgba(0,0,0,0.28);
}

.tf-spinner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 5px solid rgba(255,122,0,0.18);
    border-top-color: var(--tf-orange);
    animation: tfSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.tf-loader-card strong {
    display: block;
    color: var(--tf-blue);
    font-size: 18px;
    font-weight: 950;
}

.tf-loader-card span {
    display: block;
    color: var(--tf-muted);
    margin-top: 4px;
    font-size: 13px;
}

@keyframes tfSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
    .tf-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .tf-page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .tf-filter-bar,
    .tf-filter-bar.multi {
        flex-direction: column;
        align-items: stretch;
    }

    .tf-filter-input,
    .tf-select,
    .tf-secondary-dark-btn,
    .tf-light-btn {
        width: 100%;
    }

    .tf-card-grid {
        grid-template-columns: 1fr;
    }

    .tf-curriculum-card {
        grid-template-columns: 52px 1fr;
    }

    .tf-card-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
    }
}
