/* =========================================================
   MAYANETH EDUCATION V13 - STITCH / GOOGLE INSPIRED THEME
   Clean, modern, rounded, mobile-first LMS interface
   ========================================================= */

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #dbeafe;
    --success: #16a34a;
    --success-soft: #dcfce7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #f59e0b;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --sidebar: #0b1220;
    --sidebar-2: #111827;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 34%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 30%),
        var(--bg);
    color: var(--text);
    letter-spacing: -0.01em;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: var(--primary-dark);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.35), transparent 32%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.25), transparent 30%),
        linear-gradient(135deg, #0b1220, #172554);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.28);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.04em;
}

.logo::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.subtext {
    color: var(--muted);
    margin-bottom: 26px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 17px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: #334155;
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
    background: #fff;
}

textarea {
    min-height: 118px;
    resize: vertical;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    color: #fff;
    padding: 12px 17px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 850;
    font-size: 14px;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.20);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.26);
    color: #fff;
    text-decoration: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 12px 22px rgba(220, 38, 38, 0.18);
}

.btn-muted {
    background: #eef2ff;
    color: #1e40af;
    box-shadow: none;
}

.btn-muted:hover {
    color: #1e40af;
    background: #dbeafe;
    box-shadow: none;
}

.alert {
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-error {
    background: var(--danger-soft);
    color: #991b1b;
    border-color: #fecaca;
}

.alert-success {
    background: var(--success-soft);
    color: #166534;
    border-color: #bbf7d0;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.25), transparent 35%),
        linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
    color: white;
    padding: 22px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .brand {
    font-size: 22px;
    font-weight: 950;
    margin-bottom: 30px;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.sidebar .brand small {
    color: #94a3b8;
    font-weight: 650;
    font-size: 12px;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 12px 13px;
    color: #cbd5e1;
    border-radius: 14px;
    margin-bottom: 6px;
    font-weight: 720;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    transform: translateX(2px);
}

.main {
    flex: 1;
    padding: 30px;
    max-width: 100%;
}

.topbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 20px 22px;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.topbar h2 {
    letter-spacing: -0.04em;
}

.card,
.stat-card,
.course-card,
.video-card,
.assignment-card,
.question-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.card {
    padding: 24px;
    margin-bottom: 22px;
}

.card:hover,
.course-card:hover,
.video-card:hover,
.assignment-card:hover {
    box-shadow: var(--shadow-md);
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    padding: 24px;
}

.stat-card h3 {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card strong {
    font-size: 34px;
    color: var(--text);
    letter-spacing: -0.06em;
}

.course-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.course-card,
.video-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-height: 230px;
}

.course-card h3,
.video-card h3,
.assignment-card h3,
.card h3 {
    margin-top: 0;
    letter-spacing: -0.03em;
}

.price {
    font-size: 21px;
    font-weight: 900;
    color: var(--primary);
    margin: 10px 0 16px;
}

.locked,
.unlocked,
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.locked {
    background: #fff7ed;
    color: #9a3412;
}

.unlocked,
.badge-active {
    background: var(--success-soft);
    color: #166534;
}

.badge-inactive {
    background: var(--danger-soft);
    color: #991b1b;
}

.badge-submitted {
    background: var(--primary-soft);
    color: #1e40af;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tr:hover td {
    background: #f8fafc;
}

.video-frame {
    width: 100%;
    max-width: 980px;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 22px;
    background: #000;
    box-shadow: var(--shadow-md);
}

.assignment-card {
    padding: 22px;
    margin-bottom: 18px;
}

.assignment-meta {
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0 14px;
}

.exam-timer {
    position: sticky;
    top: 18px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    padding: 15px 18px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-weight: 900;
    z-index: 20;
    box-shadow: var(--shadow-md);
}

.question-box {
    padding: 22px;
    margin-bottom: 18px;
}

.option-row {
    display: block;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 9px 0;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.option-row:hover {
    border-color: var(--primary);
    background: #eff6ff;
    transform: translateX(2px);
}

.option-row input {
    width: auto;
    margin-right: 8px;
}

.result-score {
    font-size: 44px;
    font-weight: 950;
    color: var(--primary);
    margin: 10px 0;
    letter-spacing: -0.06em;
}

.subscribe-modal-backdrop {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.subscribe-modal {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    box-shadow: 0 34px 90px rgba(0,0,0,0.26);
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.mobile-menu-toggle {
    display: none;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 900;
    margin-bottom: 14px;
}

@media (max-width: 1180px) {
    .course-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        background: var(--bg);
    }

    .auth-page {
        padding: 16px;
        align-items: start;
        padding-top: 42px;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 24px;
    }

    .layout {
        display: block !important;
        min-height: auto;
    }

    .sidebar {
        width: 100% !important;
        height: auto !important;
        padding: 14px;
        position: sticky !important;
        top: 0;
        z-index: 1000;
        border-radius: 0 0 22px 22px;
        box-shadow: 0 12px 34px rgba(15,23,42,0.24);
        overflow: visible !important;
    }

    .sidebar .brand {
        margin-bottom: 12px;
        font-size: 19px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .sidebar a {
        display: none;
        margin-bottom: 7px;
        padding: 12px 13px;
    }

    .sidebar.is-open a {
        display: flex;
    }

    .main {
        padding: 16px;
    }

    .topbar {
        display: block;
        padding: 17px;
        border-radius: 22px;
    }

    .topbar h2 {
        font-size: 22px;
        line-height: 1.25;
    }

    .topbar .btn {
        margin-top: 12px;
    }

    .grid,
    .course-grid,
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .stat-card,
    .card,
    .course-card,
    .video-card,
    .assignment-card,
    .question-box {
        padding: 17px;
        border-radius: 20px;
    }

    .stat-card strong {
        font-size: 28px;
    }

    input,
    select,
    textarea,
    button,
    .btn {
        font-size: 16px;
    }

    button,
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 7px;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .table-wrap table {
        min-width: 760px;
    }

    th,
    td {
        padding: 12px;
        font-size: 14px;
    }

    .video-frame {
        border-radius: 16px;
    }

    .exam-timer {
        top: 92px;
        border-radius: 16px;
        font-size: 15px;
        padding: 13px;
    }

    .result-score {
        font-size: 34px;
    }

    .subscribe-modal {
        max-width: 94vw;
        padding: 23px 18px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 12px;
    }

    .sidebar {
        padding: 12px;
    }

    .topbar h2 {
        font-size: 20px;
    }

    .logo {
        font-size: 24px;
    }

    .card h3,
    .course-card h3,
    .assignment-card h3,
    .video-card h3 {
        font-size: 18px;
    }

    .table-wrap table {
        min-width: 700px;
    }
}


/* V14 Logo styles */
.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
}

.auth-logo-img {
    width: 170px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.sidebar .brand .brand-logo-img {
    width: 132px;
    border-radius: 14px;
}

.logo.has-image::before {
    display: none;
}

@media (max-width: 768px) {
    .sidebar .brand .brand-logo-img {
        width: 118px;
    }

    .auth-logo-img {
        width: 132px;
    }
}


/* V15 smaller logo */
.sidebar .brand {
    margin-bottom: 18px;
}
.sidebar .brand .brand-logo-img {
    width: 132px;
}
.auth-logo-img {
    width: 170px;
}
@media (max-width: 768px) {
    .sidebar .brand .brand-logo-img {
        width: 118px;
    }
    .auth-logo-img {
        width: 150px;
    }
}


/* V16 Student Assignment Box Layout */
.assignment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.assignment-box {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.assignment-box__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.assignment-box__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.assignment-box h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.25;
}

.assignment-box__description {
    color: #475569;
    line-height: 1.55;
    margin-bottom: 14px;
}

.assignment-box__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}

.assignment-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.assignment-chip--due {
    background: #fff7ed;
    color: #9a3412;
}

.assignment-chip--submitted {
    background: #dcfce7;
    color: #166534;
}

.assignment-chip--pending {
    background: #dbeafe;
    color: #1e40af;
}

.assignment-box__footer {
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.assignment-submission-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    margin: 12px 0;
    font-size: 13px;
    color: #475569;
}

@media (max-width: 1180px) {
    .assignment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .assignment-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .assignment-box {
        padding: 17px;
        border-radius: 20px;
        min-height: auto;
    }
}


/* V17 Student Assignment Cards - Course Style */
.assignments-course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.assignment-course-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.assignment-course-card h3 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.assignment-course-card__desc {
    color: #334155;
    line-height: 1.7;
    margin-bottom: 16px;
}

.assignment-course-card__info {
    color: #64748b;
    font-size: 14px;
    margin: 10px 0 0;
}

.assignment-course-card__meta {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 18px;
}

.assignment-course-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    width: fit-content;
    margin-bottom: 16px;
}

.assignment-course-status--submitted {
    background: #dcfce7;
    color: #166534;
}

.assignment-course-status--pending {
    background: #dbeafe;
    color: #1e40af;
}

.assignment-course-card__actions {
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.assignment-mini-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    color: #475569;
    font-size: 13px;
    margin-bottom: 14px;
}

@media (max-width: 1024px) {
    .assignments-course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .assignments-course-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .assignment-course-card {
        min-height: auto;
        padding: 18px;
        border-radius: 20px;
    }

    .assignment-course-card h3 {
        font-size: 18px;
    }
}


/* V18 Final Assignments Card Type */
.assignment-card-grid-final {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.assignment-card-final {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.assignment-card-final h3 {
    margin: 0 0 18px;
    font-size: 18px;
    color: #0f172a;
    line-height: 1.35;
}

.assignment-card-final__description {
    color: #1e293b;
    line-height: 1.7;
    margin-bottom: 18px;
    white-space: normal;
}

.assignment-card-final__badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
}

.assignment-card-final__badge.pending {
    background: #dbeafe;
    color: #1e40af;
}

.assignment-card-final__badge.submitted {
    background: #dcfce7;
    color: #166534;
}

.assignment-card-final__details {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    margin-bottom: 18px;
}

.assignment-card-final__details strong {
    color: #0f172a;
}

.assignment-card-final__submission {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    color: #475569;
    font-size: 13px;
    margin-bottom: 16px;
}

.assignment-card-final__actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.assignment-card-final__actions .btn {
    width: auto;
}

@media (max-width: 900px) {
    .assignment-card-grid-final {
        grid-template-columns: 1fr;
    }

    .assignment-card-final {
        min-height: auto;
        padding: 18px;
        border-radius: 20px;
    }

    .assignment-card-final__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .assignment-card-final__actions .btn {
        width: 100%;
    }
}


/* V19 Clean Assignment Cards */
.assignment-clean-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.assignment-clean-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.assignment-clean-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.35;
    color: #0f172a;
}

.assignment-clean-card__desc {
    color: #1e293b;
    line-height: 1.7;
    margin-bottom: 18px;
}

.assignment-clean-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    width: fit-content;
    margin-bottom: 14px;
}

.assignment-clean-badge.pending {
    background: #dbeafe;
    color: #1e40af;
}

.assignment-clean-badge.submitted {
    background: #dcfce7;
    color: #166534;
}

.assignment-clean-info {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.assignment-clean-info strong {
    color: #0f172a;
    font-weight: 700;
}

.assignment-clean-actions {
    margin-top: auto;
    display: grid;
    gap: 8px;
    max-width: 180px;
}

.assignment-clean-actions .btn {
    width: 100%;
}

@media (max-width: 900px) {
    .assignment-clean-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .assignment-clean-card {
        min-height: auto;
        padding: 18px;
        border-radius: 20px;
    }

    .assignment-clean-actions {
        max-width: 100%;
    }
}


/* V20 Minimal Assignment Cards */
.assignment-minimal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.assignment-minimal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.assignment-minimal-card h3 {
    margin: 0 0 22px;
    font-size: 19px;
    line-height: 1.35;
    color: #0f172a;
}

.assignment-minimal-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
}

.assignment-minimal-status.pending {
    background: #dbeafe;
    color: #1e40af;
}

.assignment-minimal-status.submitted {
    background: #dcfce7;
    color: #166534;
}

.assignment-minimal-info {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: #475569;
    font-size: 14px;
}

.assignment-minimal-info strong {
    color: #0f172a;
}

.assignment-minimal-actions {
    margin-top: auto;
}

.assignment-minimal-actions .btn {
    width: auto;
}

@media (max-width: 900px) {
    .assignment-minimal-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .assignment-minimal-card {
        min-height: auto;
        border-radius: 20px;
        padding: 18px;
    }

    .assignment-minimal-actions .btn {
        width: 100%;
    }
}


/* V21 Assignments Proper Card Layout */
.assignment-cards-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.assignment-card-ui {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    min-height: 270px;
    display: flex;
    flex-direction: column;
}

.assignment-card-ui__title {
    margin: 0 0 18px;
    font-size: 19px;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.35;
}

.assignment-card-ui__badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 18px;
}

.assignment-card-ui__badge--pending {
    background: #dbeafe;
    color: #1e40af;
}

.assignment-card-ui__badge--submitted {
    background: #dcfce7;
    color: #166534;
}

.assignment-card-ui__info {
    display: grid;
    gap: 9px;
    color: #475569;
    font-size: 14px;
    margin-bottom: 20px;
}

.assignment-card-ui__info-row strong {
    color: #0f172a;
    font-weight: 800;
}

.assignment-card-ui__footer {
    margin-top: auto;
}

.assignment-card-ui__footer .btn {
    width: auto;
    min-width: 150px;
}

@media (max-width: 900px) {
    .assignment-cards-wrap {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .assignment-card-ui {
        min-height: auto;
        padding: 18px;
        border-radius: 20px;
    }

    .assignment-card-ui__footer .btn {
        width: 100%;
    }
}
