/* =========================================================
   سامانه رصد پژوهش — سیستم طراحی مشترک
   فونت: ساحل (Sahel) — فایل‌ها را در assets/fonts قرار دهید
   ========================================================= */
@font-face {
    font-family: "Sahel";
    src: url("../fonts/Sahel-FD.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Sahel";
    src: url("../fonts/Sahel-Bold-FD.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Sahel";
    src: url("../fonts/Sahel-Black-FD.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- توکن‌ها ---------- */
:root {
    --font: "Sahel", Tahoma, "Segoe UI", sans-serif;
    --ink: #1e2340;
    --ink-soft: #5b6285;
    --ink-mute: #8b91ad;
    --bg: #f2f4fb;
    --surface: #ffffff;
    --line: #e5e8f3;

    --brand: #4f46e5;
    --brand-2: #7c3aed;
    --brand-soft: #eceafe;
    --teal: #0ea5a4;
    --teal-soft: #dcf5f4;
    --amber: #f59e0b;
    --amber-soft: #fff4d6;
    --rose: #e11d48;
    --rose-soft: #ffe3ea;
    --green: #16a34a;
    --green-soft: #dcf7e5;

    --grad-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --grad-teal: linear-gradient(135deg, #0ea5a4 0%, #2563eb 100%);
    --grad-amber: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --grad-green: linear-gradient(135deg, #16a34a 0%, #0ea5a4 100%);

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(30, 35, 64, .05), 0 4px 14px rgba(30, 35, 64, .05);
    --shadow: 0 10px 30px rgba(79, 70, 229, .10), 0 2px 6px rgba(30, 35, 64, .05);
    --shadow-lg: 0 24px 60px rgba(79, 70, 229, .22);
    --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font) !important;
    color: var(--ink);
    background: var(--bg);
    font-size: 15.5px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .btn, .nav-link, .badge, label, th {
    font-family: var(--font) !important;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.2px; }
::selection { background: var(--brand); color: #fff; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-2); }

/* پس‌زمینه‌ی زنده‌ی صفحات داخلی */
body.app::before {
    content: "";
    position: fixed; inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 500px at 90% -10%, rgba(124, 58, 237, .13), transparent 60%),
        radial-gradient(700px 500px at 0% 10%, rgba(14, 165, 164, .12), transparent 60%),
        var(--bg);
}

/* ---------- انیمیشن‌ها ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(6deg); } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.12); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .45); } 100% { box-shadow: 0 0 0 14px rgba(79, 70, 229, 0); } }

.reveal { opacity: 0; animation: fadeUp .7s var(--ease) forwards; }
.reveal.d1 { animation-delay: .06s; } .reveal.d2 { animation-delay: .14s; }
.reveal.d3 { animation-delay: .22s; } .reveal.d4 { animation-delay: .30s; }
.reveal.d5 { animation-delay: .38s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; }
}

/* ---------- نوار بالا ---------- */
.app-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(229, 232, 243, .9);
    box-shadow: 0 6px 24px rgba(30, 35, 64, .04);
}
.app-nav .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 900; font-size: 1.12rem; }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center; color: #fff; font-size: 1.25rem;
    background: var(--grad-brand);
    box-shadow: 0 8px 20px rgba(79, 70, 229, .4);
    transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand small { display: block; font-weight: 400; font-size: .75rem; color: var(--ink-mute); line-height: 1.2; }
.nav-user { display: flex; align-items: center; gap: 12px; }
.role-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand);
    font-size: .82rem; font-weight: 700;
}

/* ---------- هدر صفحه ---------- */
.page-hero {
    position: relative; overflow: hidden;
    border-radius: 24px; padding: 30px 34px; margin: 26px 0;
    color: #fff; background: var(--grad-brand);
    box-shadow: var(--shadow-lg);
}
.page-hero.teal { background: var(--grad-teal); }
.page-hero.dark { background: linear-gradient(135deg, #1e2340 0%, #3b2f8f 100%); }
.page-hero::before, .page-hero::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, .12); pointer-events: none;
}
.page-hero::before { width: 260px; height: 260px; left: -60px; top: -90px; animation: drift 12s ease-in-out infinite; }
.page-hero::after { width: 160px; height: 160px; right: 30%; bottom: -80px; animation: drift 9s ease-in-out infinite reverse; }
.page-hero h1, .page-hero h2 { color: #fff; margin: 0 0 4px; font-weight: 900; font-size: 1.7rem; position: relative; z-index: 1; }
.page-hero p { margin: 0; opacity: .85; position: relative; z-index: 1; }
.page-hero .hero-actions { position: relative; z-index: 1; }

/* ---------- کارت‌ها ---------- */
.card {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
    overflow: hidden;
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 16px 22px !important;
    font-weight: 700; color: var(--ink) !important;
}
.card-header.bg-primary, .card-header.bg-dark, .card-header.bg-info, .card-header.bg-success,
.card-header.bg-secondary, .card-header.bg-warning { color: var(--ink) !important; }
.card-body { padding: 22px; }
.card.lift:hover { transform: translateY(-5px); }

.section-title { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.08rem; margin: 0; }
.section-title .ico {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-size: 1.05rem;
}
.section-title .ico.teal { background: var(--teal-soft); color: var(--teal); }
.section-title .ico.amber { background: var(--amber-soft); color: #b7791f; }
.section-title .ico.green { background: var(--green-soft); color: var(--green); }

/* ---------- کارت‌های آمار ---------- */
.stat {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px;
    padding: 20px 22px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat::after {
    content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
    left: -40px; bottom: -60px; background: var(--brand-soft); opacity: .7; transition: transform .5s var(--ease);
}
.stat:hover::after { transform: scale(1.5); }
.stat .stat-ico {
    flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.5rem; color: #fff; background: var(--grad-brand);
    box-shadow: 0 10px 22px rgba(79, 70, 229, .32); position: relative; z-index: 1;
}
.stat .stat-ico.teal { background: var(--grad-teal); box-shadow: 0 10px 22px rgba(14, 165, 164, .32); }
.stat .stat-ico.amber { background: var(--grad-amber); box-shadow: 0 10px 22px rgba(245, 158, 11, .35); }
.stat .stat-ico.green { background: var(--grad-green); box-shadow: 0 10px 22px rgba(22, 163, 74, .3); }
.stat .num { font-size: 1.9rem; font-weight: 900; line-height: 1.1; position: relative; z-index: 1; }
.stat .lbl { color: var(--ink-soft); font-size: .88rem; position: relative; z-index: 1; }

/* ---------- دکمه‌ها ---------- */
.btn {
    border-radius: 12px; font-weight: 700; padding: .6rem 1.25rem;
    border-width: 1.5px; position: relative; overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: .4rem .9rem; border-radius: 10px; font-size: .85rem; }
.btn-primary, .btn-info {
    background: var(--grad-brand); border: 0; color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .32);
}
.btn-primary:hover, .btn-info:hover, .btn-primary:focus, .btn-info:focus {
    background: var(--grad-brand); color: #fff; box-shadow: 0 12px 28px rgba(79, 70, 229, .45);
}
.btn-success { background: var(--grad-green); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(22, 163, 74, .28); }
.btn-success:hover { background: var(--grad-green); color: #fff; box-shadow: 0 12px 26px rgba(22, 163, 74, .4); }
.btn-warning { background: var(--grad-amber); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(245, 158, 11, .32); }
.btn-warning:hover { background: var(--grad-amber); color: #fff; box-shadow: 0 12px 26px rgba(245, 158, 11, .45); }
.btn-secondary { background: linear-gradient(135deg, #475569, #1e2340); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(30, 35, 64, .25); }
.btn-secondary:hover { background: linear-gradient(135deg, #475569, #1e2340); color: #fff; }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.btn-ghost {
    background: rgba(255, 255, 255, .18); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; color: var(--brand); }
.btn-logout { background: var(--rose-soft); color: var(--rose); border: 0; }
.btn-logout:hover { background: var(--rose); color: #fff; box-shadow: 0 8px 20px rgba(225, 29, 72, .3); }
/* موج کلیک */
.btn .ripple {
    position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45);
    transform: scale(0); animation: ripple .6s linear; pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- فرم‌ها ---------- */
.form-label { font-weight: 700; font-size: .9rem; color: var(--ink-soft); margin-bottom: 6px; }
.form-control, .form-select {
    font-family: var(--font); border-radius: 12px; border: 1.5px solid var(--line);
    background-color: #fbfcff; padding: .7rem 1rem; color: var(--ink);
    transition: border-color .25s, box-shadow .25s, background .25s, transform .25s;
}
.form-control:hover, .form-select:hover { border-color: #cfd4ea; }
.form-control:focus, .form-select:focus {
    border-color: var(--brand); background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .14);
}
.form-control::placeholder { color: var(--ink-mute); }
.form-select { background-position: left .85rem center; padding-left: 2.4rem; padding-right: 1rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.input-icon { position: relative; }
.input-icon .bi { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); pointer-events: none; transition: color .25s; }
.input-icon .form-control { padding-right: 2.8rem; }
.input-icon .form-control:focus ~ .bi { color: var(--brand); }

/* ---------- تب‌ها ---------- */
.nav-tabs, .nav-pills { gap: 6px; }
.nav-tabs { border: 0; background: var(--surface); border-radius: 16px; padding: 6px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.nav-tabs .nav-link, .nav-pills .nav-link {
    border: 0; border-radius: 12px; color: var(--ink-soft); font-weight: 700; padding: .65rem 1.2rem;
    transition: all .3s var(--ease); margin: 0;
}
.nav-tabs .nav-link:hover, .nav-pills .nav-link:hover { background: var(--brand-soft); color: var(--brand); }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active {
    background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .35);
}
.nav-pills { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: var(--shadow-sm); display: inline-flex; }
.tab-pane.fade { transition: opacity .35s ease, transform .35s var(--ease); transform: translateY(10px); }
.tab-pane.fade.show { transform: none; }

/* ---------- جدول‌ها ---------- */
.table { --bs-table-bg: transparent; margin: 0; }
.table > thead > tr > th {
    background: #f7f8fd !important; color: var(--ink-soft); font-size: .82rem; font-weight: 700;
    letter-spacing: .3px; border-bottom: 1px solid var(--line); padding: 14px 18px; white-space: nowrap;
}
.table > tbody > tr > td { padding: 15px 18px; border-color: #f0f2f9; vertical-align: middle; }
.table-hover > tbody > tr { transition: background .2s, transform .25s var(--ease); }
.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: transparent; background: #f5f4ff !important; }
.table-bordered, .table-bordered > :not(caption) > * > * { border-color: #f0f2f9; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent; background: #fbfbfe; }
.student-row { cursor: pointer; }
.student-row:hover td:first-child { box-shadow: inset -4px 0 0 var(--brand); }
.avatar {
    width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-weight: 900; margin-left: 10px; vertical-align: middle;
    transition: transform .3s var(--ease);
}
tr:hover .avatar { transform: scale(1.12) rotate(-6deg); background: var(--grad-brand); color: #fff; }

/* ---------- نشان‌ها ---------- */
.badge { border-radius: 999px; font-weight: 700; padding: .45em .95em; font-size: .78rem; }
.badge.bg-primary { background: var(--brand-soft) !important; color: var(--brand) !important; }
.badge.bg-secondary { background: #eef0f8 !important; color: var(--ink-soft) !important; }
.badge.bg-success { background: var(--green-soft) !important; color: var(--green) !important; }
.badge.bg-warning { background: var(--amber-soft) !important; color: #a16207 !important; }
.badge.bg-danger { background: var(--rose-soft) !important; color: var(--rose) !important; }
.badge.bg-light { background: #f4f5fb !important; color: var(--ink) !important; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; background: currentColor; }
.badge.bg-success .dot, .badge.bg-warning .dot, .badge.bg-danger .dot { animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 50% { opacity: .35; } }

/* ---------- هشدارها ---------- */
.alert {
    border: 0; border-radius: 14px; padding: 14px 20px; font-weight: 700;
    animation: fadeUp .5s var(--ease); box-shadow: var(--shadow-sm); border-right: 5px solid;
}
.alert-success { background: var(--green-soft); color: #0f6b30; border-color: var(--green); }
.alert-danger { background: var(--rose-soft); color: #9f1239; border-color: var(--rose); }
.alert-warning { background: var(--amber-soft); color: #92400e; border-color: var(--amber); }
.alert-info { background: var(--brand-soft); color: #3730a3; border-color: var(--brand); }
.btn-close { margin: 0; }

/* ---------- گام‌های پژوهش (تایم‌لاین) ---------- */
.stepper { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stepper::before {
    content: ""; position: absolute; top: 38px; right: 10%; left: 10%; height: 4px;
    background: var(--line); border-radius: 4px;
}
.step-progress {
    position: absolute; top: 38px; right: 10%; height: 4px; border-radius: 4px;
    background: var(--grad-green); transition: width 1.2s var(--ease);
}
.step-box {
    position: relative; text-align: center; padding: 14px 8px; border-radius: 16px;
    background: transparent; border: 0; height: 100%;
    transition: transform .35s var(--ease);
}
.step-box:hover { transform: translateY(-5px); }
.step-number {
    width: 52px; height: 52px; line-height: 52px; border-radius: 50%; display: inline-block;
    background: #fff; color: var(--ink-mute); border: 3px solid var(--line);
    font-weight: 900; font-size: 1.1rem; margin-bottom: 10px; position: relative; z-index: 1;
    transition: all .4s var(--ease);
}
.step-box .small { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.step-box.completed .step-number { background: var(--grad-green); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(22, 163, 74, .35); }
.step-box.completed .small { color: var(--green); }
.step-box.active .step-number {
    background: var(--grad-brand); border-color: transparent; color: #fff;
    box-shadow: 0 10px 24px rgba(79, 70, 229, .45); animation: pulseRing 2s infinite; transform: scale(1.12);
}
.step-box.active .small { color: var(--brand); }
@media (max-width: 767px) {
    .stepper { grid-template-columns: 1fr; }
    .stepper::before, .step-progress { display: none; }
    .step-box { display: flex; align-items: center; gap: 14px; text-align: right; padding: 8px; }
    .step-number { margin: 0; }
}

/* ---------- آکاردئون جلسات ---------- */
.accordion-item { border: 1px solid var(--line) !important; border-radius: 16px !important; overflow: hidden; background: #fff; transition: box-shadow .3s, transform .3s var(--ease); }
.accordion-item:hover { box-shadow: var(--shadow); }
.accordion-button { font-family: var(--font); font-weight: 700; background: #fff; color: var(--ink); padding: 18px 22px; box-shadow: none !important; }
.accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand); }
.accordion-button::after { margin-left: 0; margin-right: auto; }
.accordion-body { background: #fafbff !important; padding: 22px; }
.bg-info-subtle { background: var(--brand-soft) !important; }
.bg-success-subtle { background: var(--green-soft) !important; }
.eval-options { display: flex; gap: 10px; flex-wrap: wrap; }
.eval-options .form-check { margin: 0; padding: 0; }
.eval-options .form-check-input { position: absolute; opacity: 0; }
.eval-options .form-check-label {
    display: block; padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--line);
    background: #fff; cursor: pointer; transition: all .25s var(--ease); font-weight: 700; font-size: .9rem;
}
.eval-options .form-check-label:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.eval-options .form-check-input:checked + .form-check-label.text-success { background: var(--green-soft); border-color: var(--green); }
.eval-options .form-check-input:checked + .form-check-label.text-warning { background: var(--amber-soft); border-color: var(--amber); color: #a16207 !important; }
.eval-options .form-check-input:checked + .form-check-label.text-danger { background: var(--rose-soft); border-color: var(--rose); }

/* ---------- اطلاعات دانش‌آموز ---------- */
.profile-avatar {
    width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center;
    background: var(--grad-brand); color: #fff; font-size: 1.9rem; font-weight: 900;
    box-shadow: 0 14px 30px rgba(79, 70, 229, .4); flex: none;
}
.meta-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: #f4f5fb; color: var(--ink-soft); font-size: .84rem; font-weight: 700; margin-left: 6px; }

.empty-state { text-align: center; padding: 46px 20px; color: var(--ink-mute); }
.empty-state .bi { font-size: 2.6rem; display: block; margin: 0 auto 10px; opacity: .6; animation: float 5s ease-in-out infinite; }

/* ---------- صفحه ورود ---------- */
body.login-page {
    min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow-x: hidden;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 45%, #7c3aed 100%);
}
.bg-fx { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob.b1 { width: 420px; height: 420px; background: #22d3ee; top: -120px; left: -100px; animation: drift 14s ease-in-out infinite; }
.blob.b2 { width: 360px; height: 360px; background: #f472b6; bottom: -120px; right: -80px; animation: drift 11s ease-in-out infinite reverse; }
.blob.b3 { width: 260px; height: 260px; background: #facc15; top: 40%; left: 55%; opacity: .25; animation: drift 17s ease-in-out infinite; }
.float-ico { position: absolute; color: rgba(255, 255, 255, .16); font-size: 3rem; animation: float 7s ease-in-out infinite; pointer-events: none; }
.login-shell {
    position: relative; z-index: 2; width: 100%; max-width: 980px; display: grid; grid-template-columns: 1.05fr 1fr;
    border-radius: 28px; overflow: hidden; background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 40px 90px rgba(10, 8, 50, .5);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    animation: fadeUp .9s var(--ease);
}
.login-aside { padding: 54px 44px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.login-aside .brand-mark { width: 62px; height: 62px; font-size: 1.8rem; border-radius: 20px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.login-aside h1 { font-weight: 900; font-size: 2rem; line-height: 1.5; margin: 0; color: #fff; }
.login-aside p { opacity: .85; margin: 0; }
.feature { display: flex; align-items: center; gap: 12px; font-weight: 700; opacity: 0; animation: fadeUp .7s var(--ease) forwards; }
.feature:nth-of-type(1) { animation-delay: .5s; } .feature:nth-of-type(2) { animation-delay: .65s; } .feature:nth-of-type(3) { animation-delay: .8s; }
.f-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.login-card { background: #fff; padding: 54px 44px; display: flex; flex-direction: column; justify-content: center; }
.login-card h2 { font-weight: 900; font-size: 1.5rem; margin-bottom: 4px; }
.login-card .sub { color: var(--ink-mute); margin-bottom: 26px; }
.login-card .btn-primary { padding: .85rem; font-size: 1.05rem; }
.pw-toggle { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-mute); cursor: pointer; padding: 4px; }
.pw-toggle:hover { color: var(--brand); }
@media (max-width: 820px) {
    .login-shell { grid-template-columns: 1fr; max-width: 460px; }
    .login-aside { display: none; }
}

/* ---------- کانبان ---------- */
.kanban-column {
    background: #f6f7fd; border: 2px dashed var(--line); border-radius: var(--radius); padding: 14px; min-height: 420px;
    transition: background .25s, border-color .25s, box-shadow .25s;
}
.kanban-column.over { background: var(--brand-soft); border-color: var(--brand); box-shadow: inset 0 0 0 4px rgba(79, 70, 229, .08); }
.kanban-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 900; }
.kanban-head .count { min-width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: .85rem; background: #fff; box-shadow: var(--shadow-sm); }
.kanban-card {
    background: #fff; padding: 14px 16px; border-radius: 14px; margin-bottom: 12px; cursor: grab;
    border: 1px solid var(--line); border-right: 5px solid var(--brand); box-shadow: var(--shadow-sm); font-weight: 700;
    transition: transform .25s var(--ease), box-shadow .25s; user-select: none;
    animation: fadeUp .5s var(--ease) both;
}
.kanban-card:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow); }
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: .45; transform: scale(.96) rotate(2deg); }
.col-todo .kanban-card { border-right-color: var(--ink-mute); }
.col-doing .kanban-card { border-right-color: var(--brand); }
.col-done .kanban-card { border-right-color: var(--green); }
.col-done .kanban-card .bi-check2-circle { color: var(--green); }

/* ---------- داشبورد دانش‌آموز ---------- */
.welcome-card {
    max-width: 640px; margin: 8vh auto 0; text-align: center; padding: 48px 36px !important;
}
.welcome-card .big-ico {
    width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 28px; display: grid; place-items: center;
    background: var(--grad-brand); color: #fff; font-size: 2.6rem; box-shadow: 0 20px 40px rgba(79, 70, 229, .4);
    animation: float 5s ease-in-out infinite;
}

/* ---------- ریزه‌کاری‌ها ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfd3ea; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }
.table-responsive { border-radius: 0 0 var(--radius) var(--radius); }
.footer-note { text-align: center; color: var(--ink-mute); font-size: .82rem; padding: 30px 0 10px; }
@media (max-width: 575px) {
    .page-hero { padding: 22px 20px; border-radius: 20px; }
    .page-hero h1, .page-hero h2 { font-size: 1.35rem; }
    .nav-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .nav-tabs .nav-link { white-space: nowrap; }
}
