/* 🔷 ROOT */
#teacher-dashboard-root {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #f4f7fb;
    font-family: "Poppins", sans-serif;
    overflow: hidden;
background-color: #09103f;
    background-image: url("/client/assets/images/bg/profile_bg_portrait.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (orientation: landscape) {
    #teacher-dashboard-root {
        background-image: url("/client/assets/images/bg/profile_bg_landscape.jpg");
    }
}
/* 🔷 TOPBAR */
.td-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #0a2a43;
    color: white;
}

/* 🔙 BACK BUTTON */
.td-back-btn {
    background: #123d5c;
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* 🔥 TITLE */
.td-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 🔷 SCROLLABLE CONTENT */
.td-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;

    min-height: 0; /* 🔥 important */
}

/* 🔷 CONTAINER */
.td-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 🔷 EMPTY STATE */
.td-empty {
    text-align: center;
    color: #64748b;
    margin-top: 40px;
}

/* 🔷 CARD */
.td-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    transition: 0.2s ease;
}

.td-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* 🔷 STATUS COLORS */
.td-card.pending {
    border-left: 6px solid #f59e0b;
}

.td-card.graded {
    border-left: 6px solid #10b981;
    background: #f0fdf4;
}

/* 🔷 INFO */
.td-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.td-name {
    font-weight: 600;
    font-size: 15px;
    color: #0a2a43;
}

.td-status {
    font-size: 13px;
    color: #64748b;
}

/* 🔷 ACTIONS */
.td-actions {
    display: flex;
    gap: 8px;
}

/* 🔷 BUTTONS */
.td-grade-btn,
.td-send-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* 🔥 GRADE */
.td-grade-btn {
    background: #0a2a43;
    color: white;
}

.td-grade-btn:hover {
    background: #06325b;
}

/* 🔷 SEND */
.td-send-btn {
    background: #1d4ed8;
    color: white;
}

.td-send-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.td-send-btn:hover:not(:disabled) {
    background: #1e40af;
}

/* 🔹 MOBILE */
@media (max-width: 500px) {
    .td-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .td-actions {
        width: 100%;
    }

    .td-grade-btn,
    .td-send-btn {
        flex: 1;
    }
}
/* 🔴 REMOVE */
.td-remove-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;

    background: #ef4444;
    color: white;
}

.td-remove-btn:hover {
    background: #dc2626;
}
/* 🔥 TABS */
.td-tabs {
    display: flex;
    gap: 10px;

    padding: 12px 16px;
    background: white;

    border-bottom: 1px solid #e2e8f0;
}

/* 🔷 TAB BUTTON */
.td-tab-btn {
    flex: 1;

    padding: 10px 14px;

    border: none;
    border-radius: 10px;

    background: #e2e8f0;
    color: #334155;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

/* 🔥 ACTIVE TAB */
.td-tab-btn.active {
    background: red;
    color: white;
}

/* 📦 ARCHIVE BUTTON */
.td-archive-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    background: #f59e0b;
    color: white;
}

.td-archive-btn:hover {
    background: #d97706;
}

/* ♻️ RESTORE BUTTON */
.td-restore-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    background: #10b981;
    color: white;
}

.td-restore-btn:hover {
    background: #059669;
}
