﻿

/* =========================================================
   EduSupport Typography
   ========================================================= */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html,
body {
    font-family: 'Vazirmatn', sans-serif;
}

/* =========================================================
   EduSupport Design System
   ========================================================= */

:root {
    --es-primary: #2563eb;
    --es-primary-dark: #1d4ed8;
    --es-primary-soft: #eff6ff;
    --es-success: #16a34a;
    --es-success-soft: #f0fdf4;
    --es-warning: #f59e0b;
    --es-warning-soft: #fffbeb;
    --es-danger: #dc2626;
    --es-danger-soft: #fef2f2;
    --es-text: #172033;
    --es-text-secondary: #64748b;
    --es-text-muted: #94a3b8;
    --es-bg: #f5f7fb;
    --es-card: #ffffff;
    --es-border: #e2e8f0;
    --es-radius-sm: 8px;
    --es-radius-md: 14px;
    --es-radius-lg: 20px;
    --es-shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
    --es-shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
}


/* =========================================================
   Dashboard
   ========================================================= */

.es-dashboard {
    min-height: calc(100vh - 70px);
    background: var(--es-bg);
    padding: 32px 0 50px;
    direction: rtl;
}

.es-course-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .es-course-card-link:hover {
        color: inherit;
        text-decoration: none;
        transform: translateY(-3px);
    }

.es-course-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #315f8f;
    font-size: 0.9rem;
    font-weight: 600;
}

    .es-course-hint i {
        font-size: 0.9rem;
    }

/* عنوان صفحه */

.es-dashboard-header .es-dashboard-title {
    color: #18243a !important;
    font-weight: 700;
}

.es-dashboard-header .es-dashboard-subtitle {
    color: #687386 !important;
}


/* آیکون‌های امکانات درس */

.es-course-action-icon {
    color: #2563eb !important;
    background: #eef4ff !important;
    font-size: 20px !important;
}

    .es-course-action-icon i {
        color: #2563eb !important;
        opacity: 1 !important;
        visibility: visible !important;
    }


/* فلش انتهای کارت */

.es-course-action-arrow {
    color: #7b8494 !important;
    opacity: 1 !important;
}
/* =========================================================
   Application Header
   ========================================================= */

.app-header {
    min-height: 64px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    direction: rtl;
    position: relative;
    z-index: 1000;
}


/* Brand */

.app-header-brand {
    display: flex;
    align-items: center;
}

.app-brand-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.app-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}

.app-brand-subtitle {
    margin-top: 3px;
    font-size: 0.72rem;
    color: #6b7280;
}


/* Header Actions */

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


/* Notification */

.app-header-icon-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .app-header-icon-button:hover {
        background: #f3f4f6;
        color: #2563eb;
    }


/* User Menu */

.app-user-menu {
    position: relative;
}

.app-user-button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    direction: rtl;
}

    .app-user-button:hover {
        background: #f3f4f6;
    }

.app-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.app-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

.app-user-role {
    margin-top: 2px;
    font-size: 0.72rem;
    color: #6b7280;
}

.app-user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1rem;
}

.app-user-chevron {
    margin-right: 0.15rem;
    font-size: 0.7rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}


/* Dropdown */

.app-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 210px;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
}

    .app-user-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.app-user-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #374151;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.85rem;
    text-align: right;
    cursor: pointer;
}

    .app-user-dropdown-item:hover {
        background: #f3f4f6;
        color: #2563eb;
    }

    .app-user-dropdown-item i {
        width: 18px;
        text-align: center;
    }

.app-user-dropdown-divider {
    height: 1px;
    margin: 0.4rem 0;
    background: #e5e7eb;
}

.app-user-logout {
    color: #dc2626;
}

    .app-user-logout:hover {
        background: #fef2f2;
        color: #b91c1c;
    }

/* =========================================================
   Stat Cards
   ========================================================= */

.es-stat-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    background: var(--es-card);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-md);
    box-shadow: var(--es-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .es-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--es-shadow-md);
    }

.es-stat-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
}

.es-stat-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.25rem;
}

.es-stat-icon--blue {
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.es-stat-icon--green {
    color: var(--es-success);
    background: var(--es-success-soft);
}

.es-stat-icon--orange {
    color: var(--es-warning);
    background: var(--es-warning-soft);
}

.es-stat-icon--red {
    color: var(--es-danger);
    background: var(--es-danger-soft);
}

.es-stat-label {
    color: var(--es-text-secondary);
    font-size: .82rem;
    margin-bottom: 3px;
}

.es-stat-value {
    color: var(--es-text);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
}


/* =========================================================
   Section
   ========================================================= */

.es-section {
    margin-top: 32px;
}

.es-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.es-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--es-text);
    font-size: 1.05rem;
    font-weight: 800;
}

    .es-section-title i {
        color: var(--es-primary);
    }


/* =========================================================
   Quick Actions
   ========================================================= */

.es-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px;
    background: var(--es-card);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-md);
    color: var(--es-text);
    text-decoration: none;
    box-shadow: var(--es-shadow-sm);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    .es-action-card:hover {
        color: var(--es-primary);
        text-decoration: none;
        transform: translateY(-2px);
        border-color: #bfdbfe;
        box-shadow: var(--es-shadow-md);
    }

.es-action-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--es-primary);
    background: var(--es-primary-soft);
    font-size: 1.1rem;
}

.es-action-title {
    font-size: .9rem;
    font-weight: 700;
}

.es-action-description {
    margin-top: 2px;
    color: var(--es-text-muted);
    font-size: .75rem;
}


/* =========================================================
   Course Cards
   ========================================================= */

.es-course-card {
    height: 100%;
    background: var(--es-card);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-md);
    box-shadow: var(--es-shadow-sm);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .es-course-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--es-shadow-md);
    }

.es-course-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--es-border);
    background: linear-gradient( 135deg, #ffffff 0%, #f8faff 100% );
}

.es-course-title {
    margin: 0;
    color: var(--es-text);
    font-size: 1rem;
    font-weight: 800;
}

.es-course-code {
    display: inline-block;
    margin-top: 7px;
    padding: 4px 9px;
    border-radius: 7px;
    color: var(--es-primary);
    background: var(--es-primary-soft);
    font-size: .72rem;
    font-weight: 700;
}

.es-course-body {
    padding: 18px 20px;
}

.es-course-info {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: var(--es-text-secondary);
    font-size: .8rem;
}

    .es-course-info i {
        width: 18px;
        color: var(--es-text-muted);
        text-align: center;
    }

.es-course-footer {
    display: flex;
    gap: 8px;
    padding: 15px 20px;
    border-top: 1px solid var(--es-border);
}


/* =========================================================
   Buttons
   ========================================================= */

.es-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 9px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}

    .es-btn:hover {
        text-decoration: none;
    }

    .es-btn:active {
        transform: scale(.98);
    }

.es-btn-primary {
    color: #fff;
    background: var(--es-primary);
    border: 1px solid var(--es-primary);
}

    .es-btn-primary:hover {
        color: #fff;
        background: var(--es-primary-dark);
        border-color: var(--es-primary-dark);
    }

.es-btn-secondary {
    color: var(--es-text);
    background: #fff;
    border: 1px solid var(--es-border);
}

    .es-btn-secondary:hover {
        color: var(--es-primary);
        border-color: #bfdbfe;
        background: var(--es-primary-soft);
    }


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 767.98px) {

    .es-dashboard {
        padding: 22px 0 35px;
    }

    .es-dashboard-title {
        font-size: 1.35rem;
    }

    .es-stat-card-body {
        padding: 17px;
    }

    .es-section {
        margin-top: 25px;
    }

    .es-course-footer {
        flex-direction: column;
    }

        .es-course-footer .es-btn {
            width: 100%;
        }
}


/* =========================================================
   Global Typography Override
   ========================================================= */

html,
body,
button,
input,
optgroup,
select,
textarea {
    font-family: 'Vazirmatn', sans-serif;
}

/* =========================================================
   Application Header
   ========================================================= */

.app-header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    direction: rtl;
    position: relative;
    z-index: 1000;
}


/* Brand */

.app-header-brand {
    display: flex;
    align-items: center;
}

.app-brand-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.app-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}

.app-brand-subtitle {
    margin-top: 3px;
    font-size: 0.72rem;
    color: #6b7280;
}


/* User */

.app-header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.app-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

.app-user-role {
    margin-top: 2px;
    font-size: 0.72rem;
    color: #6b7280;
}

.app-user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1rem;
}

/* =========================================================
   Application Footer
   ========================================================= */

.app-footer {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    direction: rtl;
    font-size: 0.78rem;
}

.app-footer-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .app-footer-brand strong {
        color: #374151;
        font-weight: 600;
    }

    .app-footer-brand span {
        color: #9ca3af;
    }

.app-footer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
}

.app-footer-separator {
    color: #d1d5db;
}


/* Mobile */

@media (max-width: 576px) {

    .app-footer {
        padding: 0.75rem 1rem;
    }

    .app-footer-content {
        flex-direction: column;
        justify-content: center;
        gap: 0.35rem;
    }
}

/* =========================================
   Student Course Details
   ========================================= */

.es-course-details-card {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.es-course-details-header {
    padding: 22px 28px;
    border-bottom: 1px solid #e8edf3;
}

.es-course-details-title {
    margin: 0 0 10px;
    color: #18243a;
    font-size: 1.45rem;
    font-weight: 700;
}

.es-course-details-code {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 600;
}

.es-course-details-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.es-course-details-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 16px 24px;
    border-left: 1px solid #edf0f4;
}

    .es-course-details-item:last-child {
        border-left: none;
    }

    .es-course-details-item > i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 9px;
        background: #eef4ff;
        color: #2563eb;
        font-size: 16px;
    }

    .es-course-details-item > div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

.es-course-details-label {
    color: #7b8494;
    font-size: 0.78rem;
}

.es-course-details-item strong {
    color: #263449;
    font-size: 0.9rem;
    font-weight: 600;
}


/* =========================================
   Course Actions
   ========================================= */

.es-course-action-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 108px;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    color: #18243a;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .es-course-action-card:hover {
        color: #18243a;
        text-decoration: none;
        transform: translateY(-3px);
        border-color: #c8d7ed;
        box-shadow: 0 9px 22px rgba(0, 0, 0, 0.08);
    }

.es-course-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 12px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 20px;
}

.es-course-action-content {
    flex: 1;
    min-width: 0;
}

    .es-course-action-content h3 {
        margin: 0 0 6px;
        color: #1d2a3d;
        font-size: 1rem;
        font-weight: 700;
    }

    .es-course-action-content p {
        margin: 0;
        color: #687386;
        font-size: 0.86rem;
        line-height: 1.7;
    }

.es-course-action-arrow {
    color: #8b95a5;
    font-size: 13px;
}


/* =========================================
   Responsive
   ========================================= */

@media (max-width: 992px) {

    .es-course-details-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .es-course-details-item:nth-child(2) {
        border-left: none;
    }

    .es-course-details-item:nth-child(-n + 2) {
        border-bottom: 1px solid #edf0f4;
    }
}


@media (max-width: 576px) {

    .es-course-details-header {
        padding: 20px;
    }

    .es-course-details-title {
        font-size: 1.2rem;
    }

    .es-course-details-info {
        grid-template-columns: 1fr;
    }

    .es-course-details-item {
        border-left: none;
        border-bottom: 1px solid #edf0f4;
    }

        .es-course-details-item:last-child {
            border-bottom: none;
        }

    .es-course-action-card {
        min-height: 96px;
        padding: 18px;
    }

    .es-course-action-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
}
/* =========================================================
   Submission Details
   Uses Dashboard Design System
   ========================================================= */

.es-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
}

.es-detail-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.es-detail-item > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.es-detail-label {
    display: block;
    color: var(--es-text-secondary);
    font-size: .76rem;
}

.es-detail-value {
    color: var(--es-text);
    font-size: .88rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.es-file-main {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    background: var(--es-primary-soft);
    border: 1px solid #dbeafe;
    border-radius: var(--es-radius-md);
}

.es-file-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: var(--es-primary);
    font-size: 1.1rem;
}

.es-file-name {
    display: block;
    margin-top: 4px;
    color: var(--es-text);
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.es-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 700;
}

.es-status-blue {
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.es-status-green {
    color: var(--es-success);
    background: var(--es-success-soft);
}

.es-status-orange {
    color: #b45309;
    background: var(--es-warning-soft);
}

.es-status-gray {
    color: var(--es-text-secondary);
    background: #f1f5f9;
}

.es-muted {
    color: var(--es-text-muted);
    font-size: .8rem;
    font-weight: 500;
}

.es-feedback {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--es-border);
}

.es-feedback-box {
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    color: var(--es-text-secondary);
    font-size: .84rem;
    line-height: 1.9;
    white-space: pre-wrap;
}

.es-submission-actions {
    justify-content: space-between;
}


/* Responsive */

@media (max-width: 767.98px) {

    .es-submission-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .es-submission-actions > div {
            flex-direction: column;
        }

        .es-submission-actions .es-btn {
            width: 100%;
        }
}
/* =========================================================
   Student Assignments
   Dashboard-aligned design
   ========================================================= */

.es-section-count {
    color: var(--es-text-muted);
    font-size: .78rem;
    font-weight: 600;
}


/* Assignment Card */

.es-assignment-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--es-card);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-md);
    box-shadow: var(--es-shadow-sm);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .es-assignment-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--es-shadow-md);
    }


/* Header */

.es-assignment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--es-border);
}

.es-assignment-title-area {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.es-assignment-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--es-primary-soft);
    color: var(--es-primary);
}

.es-assignment-title {
    margin: 0;
    color: var(--es-text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}


/* Assignment Status */

.es-assignment-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.es-assignment-status--active {
    color: var(--es-success);
    background: var(--es-success-soft);
}

.es-assignment-status--upcoming {
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.es-assignment-status--expired {
    color: #b91c1c;
    background: #fee2e2;
}

.es-assignment-status--disabled {
    color: var(--es-text-secondary);
    background: #f1f5f9;
}


/* Description */

.es-assignment-description {
    margin: 0;
    padding: 14px 18px;
    color: var(--es-text-secondary);
    font-size: .8rem;
    line-height: 1.8;
    border-bottom: 1px solid var(--es-border);
}


/* Information */

.es-assignment-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 18px;
}

.es-assignment-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--es-border);
}

    .es-assignment-info-item:last-child {
        border-bottom: 0;
    }

    .es-assignment-info-item > i {
        width: 24px;
        color: var(--es-primary);
        text-align: center;
        font-size: .85rem;
    }

    .es-assignment-info-item > div {
        min-width: 0;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        flex: 1;
        gap: 12px;
    }

    .es-assignment-info-item span {
        color: var(--es-text-secondary);
        font-size: .76rem;
    }

    .es-assignment-info-item strong {
        color: var(--es-text);
        font-size: .78rem;
        text-align: left;
        overflow-wrap: anywhere;
    }


/* Submission */

.es-assignment-submission {
    margin: 0 18px 14px;
    padding: 13px;
    background: var(--es-bg);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
}

.es-assignment-submission-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--es-text);
    font-size: .78rem;
    font-weight: 700;
}

    .es-assignment-submission-title i {
        color: var(--es-primary);
    }


/* Submission Messages */

.es-submission-message {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border-radius: 8px;
    font-size: .75rem;
}

    .es-submission-message > i {
        flex: 0 0 auto;
    }

    .es-submission-message > div {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .es-submission-message strong {
        font-size: .77rem;
    }

    .es-submission-message small {
        color: inherit;
        font-size: .68rem;
        line-height: 1.7;
    }

.es-submission-message--disabled {
    color: var(--es-text-secondary);
    background: #f1f5f9;
}

.es-submission-message--upcoming {
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.es-submission-message--expired {
    color: #b91c1c;
    background: #fee2e2;
}

.es-submission-message--waiting {
    color: var(--es-text-secondary);
    background: #f8fafc;
}

.es-submission-message--submitted {
    color: var(--es-primary);
    background: var(--es-primary-soft);
}

.es-submission-message--reviewed {
    color: var(--es-success);
    background: var(--es-success-soft);
}

.es-submission-message--returned {
    color: #b45309;
    background: var(--es-warning-soft);
}


/* Actions */

.es-assignment-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--es-border);
}

.es-btn-block {
    width: 100%;
    justify-content: center;
}

.es-btn-outline-primary {
    color: var(--es-primary);
    background: transparent;
    border: 1px solid var(--es-primary);
}

    .es-btn-outline-primary:hover {
        color: #fff;
        background: var(--es-primary);
    }


/* Empty State */

.es-empty-state {
    padding: 55px 20px;
    text-align: center;
    background: var(--es-card);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-md);
    box-shadow: var(--es-shadow-sm);
}

.es-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--es-primary-soft);
    color: var(--es-primary);
    font-size: 1.5rem;
}

.es-empty-state h3 {
    margin-bottom: 7px;
    color: var(--es-text);
    font-size: 1rem;
}

.es-empty-state p {
    margin-bottom: 18px;
    color: var(--es-text-secondary);
    font-size: .8rem;
}


/* Responsive */

@media (max-width: 767.98px) {

    .es-assignment-header {
        flex-direction: column;
    }

    .es-assignment-status {
        align-self: flex-start;
    }

    .es-dashboard-header {
        gap: 15px;
    }
}

/* =========================================================
   Login Page
   ========================================================= */

.es-login-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--es-bg);
}

.es-login-container {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   Brand
   ========================================================= */

.es-login-brand {
    margin-bottom: 22px;
    text-align: center;
}

.es-login-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--es-primary-soft);
    color: var(--es-primary);
    font-size: 1.35rem;
}

.es-login-brand-name {
    color: var(--es-primary);
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.4;
}

.es-login-brand-subtitle {
    margin-top: 2px;
    color: var(--es-text-secondary);
    font-size: .78rem;
}


/* =========================================================
   Card
   ========================================================= */

.es-login-card {
    width: 100%;
    background: var(--es-card);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-lg);
    box-shadow: var(--es-shadow-md);
    overflow: hidden;
}

.es-login-card-header {
    padding: 28px 28px 22px;
    text-align: center;
    border-bottom: 1px solid var(--es-border);
}

.es-login-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--es-primary-soft);
    color: var(--es-primary);
    font-size: 1rem;
}

.es-login-card-header h1 {
    margin: 0;
    color: var(--es-text);
    font-size: 1.15rem;
    font-weight: 800;
}

.es-login-card-header p {
    margin: 7px 0 0;
    color: var(--es-text-secondary);
    font-size: .76rem;
    line-height: 1.8;
}


/* =========================================================
   Body
   ========================================================= */

.es-login-card-body {
    padding: 25px 28px 26px;
}


/* =========================================================
   Validation
   ========================================================= */

.es-login-validation {
    margin-bottom: 16px;
    padding: 10px 12px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--es-radius-sm);
    font-size: .76rem;
}

    .es-login-validation:empty {
        display: none;
    }


/* =========================================================
   Fields
   ========================================================= */

.es-login-field {
    margin-bottom: 17px;
}

.es-login-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    color: var(--es-text);
    font-size: .78rem;
    font-weight: 700;
}

    .es-login-label i {
        color: var(--es-primary);
        font-size: .72rem;
    }

.es-login-input-wrapper {
    position: relative;
}

.es-login-input-icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--es-text-muted);
    pointer-events: none;
    font-size: .8rem;
}

.es-login-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 38px 10px 12px;
    color: var(--es-text);
    background: var(--es-card);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    outline: none;
    font-family: inherit;
    font-size: .8rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .es-login-input::placeholder {
        color: var(--es-text-muted);
    }

    .es-login-input:focus {
        border-color: var(--es-primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
    }

    .es-login-input.input-validation-error {
        border-color: #ef4444;
    }

.es-login-field-error {
    display: block;
    margin-top: 5px;
    color: #dc2626;
    font-size: .7rem;
}


/* =========================================================
   Remember Me
   ========================================================= */

.es-login-options {
    margin: 2px 0 18px;
}

.es-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--es-text-secondary);
    font-size: .76rem;
    cursor: pointer;
}

    .es-login-remember input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--es-primary);
        cursor: pointer;
    }


/* =========================================================
   Submit
   ========================================================= */

.es-login-submit {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: .84rem;
}


/* =========================================================
   Register
   ========================================================= */

.es-login-register {
    margin-top: 20px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-top: 1px solid var(--es-border);
    color: var(--es-text-secondary);
    font-size: .74rem;
}

    .es-login-register a {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: var(--es-primary);
        font-weight: 700;
        text-decoration: none;
    }

        .es-login-register a:hover {
            text-decoration: underline;
        }


/* =========================================================
   Footer
   ========================================================= */

.es-login-footer {
    margin-top: 18px;
    color: var(--es-text-muted);
    font-size: .68rem;
    text-align: center;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 576px) {

    .es-login-page {
        min-height: calc(100vh - 50px);
        padding: 25px 14px;
    }

    .es-login-card-header {
        padding: 23px 20px 19px;
    }

    .es-login-card-body {
        padding: 21px 20px 23px;
    }

    .es-login-brand-name {
        font-size: 1.45rem;
    }
}
/* =========================================================
   Authentication Layout
   ========================================================= */

.es-auth-main {
    min-height: 100vh;
    background: var(--es-bg);
    direction: rtl;
}