/* ================================
   Farhang2 Font
================================ */

@font-face {
    font-family: "Farhang2";
    src: url("../fonts/Farhang2-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Farhang2";
    src: url("../fonts/Farhang2-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Farhang2";
    src: url("../fonts/Farhang2-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Farhang2";
    src: url("../fonts/Farhang2-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}




/* =========================================================
   DR. SHAHRYARI SCHOOL
   Modern CSS Theme
   Compatible with existing PHP / HTML structure
========================================================= */


/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


/* =========================
   BODY
========================= */

body{
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(231, 122, 21, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(171, 197, 53, 0.14),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 90%,
            rgba(233, 236, 45, 0.08),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #186db3,
            #5079e2 45%,
            #4fb6e6
        );

    background-attachment:fixed;
    color:#ebeef1;
    font-family:"Farhang2", sans-serif;

    padding:20px;
    min-height:100vh;

    line-height:1.7;
}


/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{
    width:9px;
}

::-webkit-scrollbar-track{
    background:#0f172a;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
        180deg,
        #f86538,
        #ee833b
    );

    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(
        180deg,
        #60faa0,
        #818cf8
    );
}


/* =========================
   TEXT
========================= */

h1,
h2,
h3,
h4{
    margin-bottom:15px;
    line-height:1.4;
}

h1{
    font-size:32px;
}

h2{
    font-size:26px;
}

h3{
    font-size:20px;
}

p{
    line-height:1.9;
}

a{
    color:#38f878;
    text-decoration:none;
    transition:.25s ease;
}

a:hover{
    color:#7dfcb2;
    text-decoration:none;
}


/* =========================================================
   GENERAL CARD
========================================================= */

.card{
    position:relative;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.92),
            rgba(15,23,42,.88)
        );

    border:1px solid rgba(148,163,184,.12);

    border-radius:22px;

    padding:24px;

    margin:18px 0;

    box-shadow:
        0 15px 45px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.04);

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.card:hover{
    transform:translateY(-4px);

    border-color:rgba(56,189,248,.25);

    box-shadow:
        0 20px 55px rgba(0,0,0,.35),
        0 0 25px rgba(56,189,248,.06);
}


/* =========================
   FORMS
========================= */

input,
textarea,
select{
    width:100%;

    padding:13px 15px;

    margin-top:8px;
    margin-bottom:16px;

    border:1px solid rgba(148,163,184,.16);

    border-radius:13px;

    background:
        rgba(15,23,42,.85);

    color:#f8fafc;

    outline:none;

    font-family:"Farhang2", sans-serif;
    font-size:15px;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

input::placeholder,
textarea::placeholder{
    color:#64748b;
}

input:focus,
textarea:focus,
select:focus{

    border-color:#38bdf8;

    background:
        rgba(15,23,42,.95);

    box-shadow:
        0 0 0 3px rgba(56,189,248,.10);
}

textarea{
    min-height:130px;
    resize:vertical;
}

select{
    cursor:pointer;
}

select option{
    background:#0f172a;
    color:white;
}

input[type="file"]{
    background:rgba(15,23,42,.65);
    cursor:pointer;
}


/* =========================
   BUTTON
========================= */

button{

    background:
        linear-gradient(
            135deg,
            #38f89e,
            #e73d3d
        );

    color:white;

    border:none;

    padding:12px 24px;

    border-radius:13px;

    cursor:pointer;

    font-family:"Farhang2", sans-serif;
    font-size:15px;
    font-weight:bold;

    box-shadow:
        0 8px 20px rgba(56,189,248,.16);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        opacity .25s ease;
}

button:hover{

    opacity:1;

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 28px rgba(56,189,248,.25);
}

button:active{
    transform:translateY(0);
}


/* =========================
   FORM BOX
========================= */

.form-box{

    max-width:650px;

    margin:30px auto;

    background:
        rgba(15,23,42,.72);

    border:
        1px solid rgba(148,163,184,.12);

    border-radius:24px;

    padding:30px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.3);

    backdrop-filter:blur(15px);
}


/* =========================
   SUCCESS
========================= */

.success{

    background:
        linear-gradient(
            135deg,
            rgba(20,83,45,.85),
            rgba(22,101,52,.65)
        );

    border:
        1px solid rgba(74,222,128,.18);

    color:#4fee87;

    padding:13px 16px;

    border-radius:13px;

    margin-bottom:18px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.18);
}


/* =========================================================
   TABLE
========================================================= */

table{

    width:100%;

    border-collapse:separate;
    border-spacing:0;

    margin-top:25px;

    overflow:hidden;

    border-radius:18px;

    background:
        rgba(15,23,42,.72);

    border:
        1px solid rgba(148,163,184,.12);

    box-shadow:
        0 15px 40px rgba(0,0,0,.22);
}

table th,
table td{

    padding:15px;

    text-align:center;

    border-bottom:
        1px solid rgba(148,163,184,.08);
}

table th{

    background:
        linear-gradient(
            135deg,
            rgba(30,41,59,.98),
            rgba(15,23,42,.98)
        );

    color:#7dd3fc;

    font-weight:bold;
}

table tr{
    transition:.2s ease;
}

table tbody tr:hover{
    background:
        rgba(56,189,248,.045);
}

table tr:last-child td{
    border-bottom:none;
}


/* =========================================================
   HEADER
========================================================= */

header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 30px;

    margin-bottom:20px;

    background:
        rgba(15,23,42,.65);

    border:
        1px solid rgba(148,163,184,.10);

    border-radius:20px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.2);

    backdrop-filter:blur(15px);
}

.logo{

    font-size:28px;

    font-weight:bold;

    background:
        linear-gradient(
            90deg,
            #38bdf8,
            #818cf8
        );

    -webkit-background-clip:text;
    background-clip:text;

    color:transparent;
}

nav ul{

    list-style:none;

    display:flex;

    gap:10px;
}

nav a{

    display:block;

    padding:9px 14px;

    border-radius:10px;

    color:#cbd5e1;

    transition:.25s ease;
}

nav a:hover{

    color:white;

    background:
        rgba(56,189,248,.10);
}


/* =========================================================
   PAGE TITLES
========================================================= */

.page-title{

    text-align:center;

    margin-bottom:35px;

    font-size:32px;

    font-weight:bold;

    background:
        linear-gradient(
            90deg,
            #f8fafc,
            #38bdf8,
            #818cf8
        );

    -webkit-background-clip:text;
    background-clip:text;

    color:transparent;
}

.section-title{

    text-align:center;

    margin-bottom:35px;

    font-size:30px;

    font-weight:bold;
}


/* =========================================================
   MAIN SECTIONS
========================================================= */

.news-section,
.about-school,
.gallery-section,
.competition-section,
.teachers-section,
footer{

    padding:65px 20px;
}


/* =========================================================
   HORIZONTAL SCROLL
========================================================= */

.horizontal-scroll{

    display:flex;

    gap:22px;

    overflow-x:auto;

    padding:12px 5px 20px;

    scroll-behavior:smooth;

    scrollbar-width:thin;
}


/* =========================================================
   GALLERY CARD
========================================================= */

.gallery-card{

    min-width:320px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.94),
            rgba(15,23,42,.92)
        );

    border:
        1px solid rgba(148,163,184,.10);

    border-radius:22px;

    overflow:hidden;

    flex-shrink:0;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;

    box-shadow:
        0 15px 40px rgba(0,0,0,.28);
}

.gallery-card:hover{

    transform:
        translateY(-8px);

    border-color:
        rgba(56,189,248,.25);

    box-shadow:
        0 20px 50px rgba(0,0,0,.38),
        0 0 25px rgba(56,189,248,.07);
}

.gallery-card img{

    width:100%;

    height:220px;

    object-fit:cover;

    display:block;

    transition:
        transform .45s ease;
}

.gallery-card:hover img{
    transform:scale(1.04);
}

.gallery-card h3{

    padding:17px;

    text-align:center;

    font-size:18px;
}


/* =========================
   GALLERY CONTENT
========================= */

.gallery-content{

    padding:18px;

    text-align:center;

    direction:rtl;
}

.gallery-content h3{

    margin-bottom:10px;

    text-align:center;
}

.gallery-content p{

    text-align:center;

    direction:rtl;

    line-height:1.9;

    word-break:break-word;

    color:#cbd5e1;
}

.news-link{

    text-decoration:none;

    color:inherit;

    display:block;
}

.news-link:hover{
    text-decoration:none;
}


/* =========================================================
   TEACHERS
========================================================= */

.teacher-card{

    min-width:300px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.94),
            rgba(15,23,42,.92)
        );

    border:
        1px solid rgba(148,163,184,.10);

    border-radius:22px;

    overflow:hidden;

    text-align:center;

    flex-shrink:0;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    padding-bottom:22px;

    direction:rtl;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);
}

.teacher-card:hover{

    transform:
        translateY(-8px);

    box-shadow:
        0 20px 50px rgba(0,0,0,.38);
}

.teacher-image{

    width:100%;

    height:220px;

    object-fit:cover;

    border-radius:0;
}

.teacher-card h3{

    margin-top:17px;

    font-size:22px;
}

.teacher-card h4{

    color:#38bdf8;

    margin:10px 0;

    font-size:15px;
}

.teacher-card p{

    padding:0 18px;

    text-align:center;

    direction:rtl;

    line-height:1.9;

    color:#cbd5e1;
}


/* =========================================================
   SCHOOL
========================================================= */

.school-card{

    display:flex;

    gap:30px;

    align-items:center;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.94),
            rgba(15,23,42,.90)
        );

    padding:28px;

    border:
        1px solid rgba(148,163,184,.10);

    border-radius:24px;

    margin:20px auto;

    max-width:1200px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.25);
}

.school-image{

    width:350px;

    height:250px;

    object-fit:cover;

    border-radius:18px;
}

.school-content{

    flex:1;

    direction:rtl;

    text-align:right;

    line-height:2;

    color:#cbd5e1;
}

.school-content h2{

    margin-bottom:20px;

    color:white;
}


/* =========================================================
   SLIDER
========================================================= */

.slider{

    position:relative;

    width:100%;

    overflow:hidden;

    border-radius:22px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.35);
}

.slide{

    display:none;

    position:relative;
}

.slide.active{
    display:block;
}

.slide img{

    width:100%;

    height:500px;

    object-fit:cover;

    display:block;
}

.slide-content{

    position:absolute;

    top:50%;

    right:8%;

    transform:translateY(-50%);

    background:
        rgba(15,23,42,.70);

    border:
        1px solid rgba(255,255,255,.10);

    color:#fff;

    padding:28px;

    border-radius:20px;

    max-width:500px;

    backdrop-filter:blur(12px);

    box-shadow:
        0 15px 40px rgba(0,0,0,.35);
}

.prev,
.next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    border:
        1px solid rgba(255,255,255,.10);

    font-size:26px;

    padding:10px 16px;

    cursor:pointer;

    background:
        rgba(15,23,42,.65);

    color:white;

    border-radius:12px;

    backdrop-filter:blur(8px);
}

.prev{
    left:20px;
}

.next{
    right:20px;
}

.dots{

    position:absolute;

    bottom:20px;

    width:100%;

    text-align:center;
}

.dot{

    display:inline-block;

    width:10px;

    height:10px;

    border-radius:50%;

    background:#fff;

    margin:5px;

    opacity:.4;

    cursor:pointer;

    transition:.25s ease;
}

.dot.active{

    opacity:1;

    transform:scale(1.2);
}

.slider-btn{

    display:inline-block;

    margin-top:15px;

    padding:12px 25px;

    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );

    color:#fff;

    text-decoration:none;

    border-radius:12px;
}


/* =========================================================
   HERO
========================================================= */

.hero{

    width:100%;

    height:500px;

    background:
        url("../images/hero.jpg")
        center center;

    background-size:cover;

    position:relative;

    border-radius:24px;

    overflow:hidden;

    margin-top:30px;

    box-shadow:
        0 25px 70px rgba(0,0,0,.35);
}

.hero-overlay{

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            135deg,
            rgba(2,6,23,.78),
            rgba(15,23,42,.35)
        );

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    color:white;

    padding:20px;
}

.hero-overlay h1{

    font-size:55px;

    margin-bottom:20px;
}

.hero-overlay p{

    font-size:21px;

    max-width:700px;

    line-height:2;

    margin-bottom:30px;

    color:#e2e8f0;
}

.hero-btn{

    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );

    color:white;

    padding:14px 32px;

    border-radius:13px;

    text-decoration:none;

    font-size:17px;

    font-weight:bold;

    box-shadow:
        0 10px 30px rgba(56,189,248,.18);

    transition:.3s;
}

.hero-btn:hover{

    transform:
        translateY(-3px);

    color:white;

    box-shadow:
        0 15px 35px rgba(56,189,248,.28);
}


/* =========================================================
   NEWS PAGE
========================================================= */

.news-page{

    max-width:900px;

    margin:40px auto;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.94),
            rgba(15,23,42,.90)
        );

    padding:32px;

    border:
        1px solid rgba(148,163,184,.10);

    border-radius:24px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.3);
}

.news-image{

    width:100%;

    max-height:500px;

    object-fit:cover;

    border-radius:18px;

    margin:20px 0;
}

.news-content{

    font-size:18px;

    line-height:2;

    text-align:justify;

    color:#dbeafe;
}

.news-date{

    color:#94a3b8;

    margin-bottom:20px;
}


/* =========================================================
   ADMIN SIDEBAR
========================================================= */

.sidebar{

    position:fixed;

    right:0;

    top:0;

    width:270px;

    height:100vh;

    background:
        linear-gradient(
            180deg,
            rgba(15,23,42,.98),
            rgba(2,6,23,.98)
        );

    padding:25px;

    overflow-y:auto;

    border-left:
        1px solid rgba(148,163,184,.10);

    box-shadow:
        -15px 0 45px rgba(0,0,0,.25);

    backdrop-filter:blur(15px);
}

.sidebar h2{

    text-align:center;

    margin-bottom:30px;

    color:white;
}

.sidebar ul{

    list-style:none;

    padding:0;
}

.sidebar li{

    margin-bottom:10px;
}

.sidebar a{

    display:block;

    background:
        rgba(30,41,59,.65);

    color:#cbd5e1;

    padding:13px 15px;

    border:
        1px solid transparent;

    border-radius:13px;

    text-decoration:none;

    transition:.25s ease;
}

.sidebar a:hover{

    background:
        rgba(56,189,248,.10);

    color:white;

    border-color:
        rgba(56,189,248,.15);

    transform:
        translateX(-3px);
}

.admin-content{

    margin-right:290px;

    padding:30px;
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-grid{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px,1fr)
        );

    gap:22px;

    margin-top:25px;
}

.dashboard-card{

    position:relative;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.94),
            rgba(15,23,42,.90)
        );

    color:#fff;

    border:
        1px solid rgba(148,163,184,.10);

    border-radius:22px;

    padding:28px;

    text-align:center;

    text-decoration:none;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);
}

.dashboard-card:hover{

    transform:
        translateY(-7px);

    border-color:
        rgba(56,189,248,.22);

    box-shadow:
        0 20px 50px rgba(0,0,0,.35),
        0 0 25px rgba(56,189,248,.06);
}

.dashboard-card h3{

    margin-top:15px;

    font-size:18px;

    color:#f8fafc;
}


/* =========================================================
   CENTER BOX
========================================================= */

.center-box{

    max-width:700px;

    margin:30px auto;
}

.center-buttons{

    text-align:center;
}

.center-buttons button{

    margin:5px;
}


/* =========================================================
   FOOTER
========================================================= */

footer{

    background:
        rgba(2,6,23,.80);

    text-align:center;

    margin-top:40px;

    border-top:
        1px solid rgba(148,163,184,.08);
}


/* =========================================================
   DEVELOPER BUTTON
========================================================= */

.developer-trigger{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    margin-top:5px;

    margin-bottom:10px;
}

.developer-trigger button{

    width:20px;

    height:20px;

    padding:0;

    margin:0;

    border:none;

    border-radius:50%;

    overflow:hidden;

    cursor:pointer;

    background:none;

    display:flex;

    align-items:center;

    justify-content:center;

    transition:.3s;

    box-shadow:none;
}

.developer-trigger button:hover{

    transform:
        scale(1.3);

    box-shadow:none;
}

.developer-trigger img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;
}


/* =========================================================
   DEVELOPER MODAL
========================================================= */

.developer-modal{

    position:fixed;

    inset:0;

    background:
        rgba(2,6,23,.72);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

    padding:20px;

    backdrop-filter:blur(8px);
}

.developer-modal.active{
    display:flex;
}


/* =========================================================
   DEVELOPER BOX
========================================================= */

.developer-box{

    position:relative;

    width:420px;

    max-width:95%;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.98),
            rgba(15,23,42,.98)
        );

    color:white;

    padding:38px 28px;

    border:
        1px solid rgba(148,163,184,.15);

    border-radius:28px;

    text-align:center;

    box-shadow:
        0 25px 80px rgba(0,0,0,.55);

    animation:
        developerOpen .3s ease;

    backdrop-filter:blur(18px);
}

@keyframes developerOpen{

    from{

        opacity:0;

        transform:
            scale(.85)
            translateY(20px);
    }

    to{

        opacity:1;

        transform:
            scale(1)
            translateY(0);
    }
}


/* =========================================================
   DEVELOPER IMAGE
========================================================= */

.developer-image{

    width:110px;

    height:110px;

    object-fit:cover;

    border-radius:50%;

    margin-bottom:15px;

    border:
        3px solid rgba(56,189,248,.35);

    box-shadow:
        0 0 30px rgba(56,189,248,.12);
}

.developer-box h2{

    margin-bottom:10px;
}

.developer-box h3{

    font-size:16px;

    margin-bottom:20px;

    color:#38bdf8;
}

.developer-box p{

    line-height:2;

    margin:10px 0;

    color:#cbd5e1;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.developer-close{

    position:absolute;

    top:12px;

    left:15px;

    width:35px;

    height:35px;

    padding:0;

    border:none;

    border-radius:50%;

    background:
        rgba(255,255,255,.07);

    color:white;

    font-size:25px;

    line-height:35px;

    cursor:pointer;

    box-shadow:none;
}

.developer-close:hover{

    background:
        rgba(239,68,68,.18);

    transform:
        rotate(90deg);

    box-shadow:none;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:768px){

    body{
        padding:10px;
    }

    header{

        flex-direction:column;

        gap:15px;

        padding:18px;
    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;
    }

    nav a{
        font-size:14px;
    }

    .hero{

        height:400px;

        border-radius:20px;
    }

    .hero-overlay h1{
        font-size:35px;
    }

    .hero-overlay p{
        font-size:17px;
    }

    .school-card{

        flex-direction:column;

        padding:20px;
    }

    .school-image{

        width:100%;

        height:auto;
    }

    .sidebar{

        position:relative;

        width:100%;

        height:auto;

        border-radius:20px;

        border:1px solid rgba(148,163,184,.10);

        margin-bottom:20px;
    }

    .admin-content{

        margin-right:0;

        padding:15px;
    }

    .gallery-card{
        min-width:280px;
    }

    .teacher-card{
        min-width:280px;
    }

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }

    .form-box{
        padding:20px;
    }

    .news-page{
        padding:20px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media(max-width:480px){

    body{
        padding:7px;
    }

    .page-title{
        font-size:25px;
    }

    .section-title{
        font-size:24px;
    }

    .hero{
        height:350px;
    }

    .hero-overlay h1{
        font-size:28px;
    }

    .hero-overlay p{
        font-size:15px;
    }

    button{
        width:100%;
    }

    .center-buttons button{
        width:auto;
    }

}



/* =========================================================
   MODERN ADMIN DASHBOARD
========================================================= */

.admin-dashboard{

    width:100%;

    max-width:1250px;

    margin:0 auto;

    padding:20px 10px 50px;
}


/* =========================
   Dashboard Header
========================= */

.dashboard-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    margin-bottom:40px;

    padding:25px 30px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.92),
            rgba(15,23,42,.86)
        );

    border:
        1px solid rgba(148,163,184,.12);

    border-radius:24px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.28);

    backdrop-filter:blur(15px);
}


/* =========================
   Welcome
========================= */

.dashboard-welcome{

    color:#94a3b8;

    margin-top:5px;

    font-size:15px;
}

.dashboard-welcome strong{

    color:#38bdf8;

    font-size:17px;
}


/* =========================
   Management Grid
========================= */

.management-grid{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px,1fr)
        );

    gap:22px;

    width:100%;
}


/* =========================
   Management Card
========================= */

.management-card{

    position:relative;

    display:flex;

    align-items:center;

    gap:18px;

    min-height:145px;

    padding:25px;

    text-decoration:none;

    color:white;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.94),
            rgba(15,23,42,.91)
        );

    border:
        1px solid rgba(148,163,184,.11);

    border-radius:24px;

    overflow:hidden;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


/* نور ظریف پشت کارت */

.management-card::before{

    content:"";

    position:absolute;

    width:140px;

    height:140px;

    top:-70px;

    left:-70px;

    background:
        rgba(56,189,248,.12);

    border-radius:50%;

    filter:blur(25px);

    transition:.3s;
}


/* Hover */

.management-card:hover{

    transform:
        translateY(-7px);

    color:white;

    border-color:
        rgba(56,189,248,.28);

    box-shadow:
        0 25px 55px rgba(0,0,0,.38),
        0 0 30px rgba(56,189,248,.07);
}

.management-card:hover::before{

    transform:
        scale(1.5);

    background:
        rgba(99,102,241,.15);
}


/* =========================
   Icon
========================= */

.management-icon{

    position:relative;

    z-index:1;

    min-width:65px;

    width:65px;

    height:65px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:19px;

    font-size:30px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.16),
            rgba(99,102,241,.16)
        );

    border:
        1px solid rgba(56,189,248,.12);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05);

    transition:.3s;
}

.management-card:hover .management-icon{

    transform:
        scale(1.08)
        rotate(-3deg);

    box-shadow:
        0 8px 25px rgba(56,189,248,.12);
}


/* =========================
   Content
========================= */

.management-content{

    position:relative;

    z-index:1;

    flex:1;

    text-align:right;

    direction:rtl;
}

.management-content h2{

    margin:0 0 7px;

    font-size:19px;

    color:#f8fafc;
}

.management-content p{

    margin:0;

    color:#94a3b8;

    font-size:13px;

    line-height:1.8;
}


/* =========================
   Arrow
========================= */

.management-arrow{

    position:relative;

    z-index:1;

    width:38px;

    height:38px;

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:
        rgba(245, 243, 243, 0.185);

    color:#38bdf8;

    font-size:20px;

    transition:.3s;
}

.management-card:hover .management-arrow{

    background:
        rgba(56,189,248,.12);

    transform:
        translateX(-5px);
}


/* =========================
   Logout
========================= */

.logout-card{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    min-width:110px;

    padding:12px 18px;

    border-radius:13px;

    color:#fca5a5;

    background:
        rgba(239,68,68,.07);

    border:
        1px solid rgba(239,68,68,.12);

    text-decoration:none;

    transition:.25s ease;
}

.logout-card:hover{

    color:#fecaca;

    background:
        rgba(239,68,68,.13);

    transform:
        translateY(-2px);
}


/* =========================
   Dashboard Footer
========================= */

.dashboard-footer{

    margin-top:45px;

    text-align:center;

    color:#64748b;

    font-size:13px;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:768px){

    .admin-dashboard{
        padding:10px 5px 30px;
    }

    .dashboard-header{

        flex-direction:column;

        align-items:stretch;

        text-align:center;

        padding:22px;
    }

    .logout-card{

        width:100%;
    }

    .management-grid{

        grid-template-columns:1fr;

        gap:15px;
    }

    .management-card{

        min-height:125px;

        padding:20px;
    }

    .management-content h2{
        font-size:17px;
    }

    .management-content p{
        font-size:12px;
    }

}



/* =========================================================
   TEACHERS MANAGEMENT
   Modern Card Design
========================================================= */

.management-page{
    width:100%;
    max-width:1250px;
    margin:0 auto;
    padding:30px 15px 60px;
}

/* Header */

.management-page-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;

    padding:25px 30px;
    margin-bottom:30px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.94),
            rgba(15,23,42,.90)
        );

    border:1px solid rgba(148,163,184,.12);
    border-radius:24px;

    box-shadow:0 20px 50px rgba(0,0,0,.28);

    backdrop-filter:blur(15px);
}

.management-page-header h1{
    margin:0 0 8px;
    font-size:28px;
    color:#f8fafc;
}

.management-page-header p{
    margin:0;
    color:#94a3b8;
    font-size:14px;
}


/* Add button */

.modern-action-button{
    display:flex;
    align-items:center;
    justify-content:center;

    padding:13px 22px;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            #38f848,
            #6366f1
        );

    color:white !important;

    text-decoration:none !important;

    font-size:15px;
    font-weight:bold;

    box-shadow:
        0 8px 25px rgba(56,189,248,.18);

    transition:.3s ease;
}

.modern-action-button:hover{
    transform:translateY(-3px);
    color:white !important;

    box-shadow:
        0 14px 35px rgba(56,189,248,.28);
}


/* Teachers grid */

.teacher-management-grid{
    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px,1fr)
        );

    gap:22px;
}


/* Teacher card */

.teacher-management-card{
    position:relative;

    display:flex;
    flex-direction:column;

    overflow:hidden;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.92)
        );

    border:1px solid rgba(148,163,184,.11);

    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.teacher-management-card:hover{
    transform:translateY(-8px);

    border-color:
        rgba(56,189,248,.28);

    box-shadow:
        0 25px 55px rgba(0,0,0,.38),
        0 0 30px rgba(56,189,248,.07);
}


/* Image */

.teacher-management-image{
    width:100%;
    height:240px;

    overflow:hidden;

    background:#0f172a;
}

.teacher-management-image img{
    width:100%;
    height:100%;

    object-fit:cover;

    display:block;

    transition:
        transform .5s ease;
}

.teacher-management-card:hover
.teacher-management-image img{
    transform:scale(1.06);
}


/* Content */

.teacher-management-content{
    padding:22px;

    text-align:center;
    direction:rtl;
}

.teacher-management-content h2{
    margin:0 0 10px;

    color:#f8fafc;

    font-size:21px;
}

.teacher-position{
    color:#38bdf8;

    font-size:15px;

    margin-bottom:12px;
}

.teacher-order{
    display:inline-block;

    padding:7px 13px;

    border-radius:10px;

    background:rgba(255,255,255,.05);

    color:#94a3b8;

    font-size:13px;
}

.teacher-order strong{
    color:#f8fafc;
}


/* Actions */

.teacher-management-actions{
    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px;

    padding:0 20px 20px;
}

.teacher-management-actions a{
    display:flex;

    align-items:center;
    justify-content:center;

    padding:11px;

    border-radius:12px;

    text-decoration:none !important;

    font-size:14px;
    font-weight:bold;

    transition:.25s ease;
}


/* Edit */

.teacher-edit-button{
    background:rgba(56,189,248,.10);

    border:1px solid rgba(56,189,248,.16);

    color:#38bdf8 !important;
}

.teacher-edit-button:hover{
    background:rgba(56,189,248,.18);

    transform:translateY(-2px);

    color:#7dd3fc !important;
}


/* Delete */

.teacher-delete-button{
    background:rgba(239,68,68,.08);

    border:1px solid rgba(239,68,68,.14);

    color:#fca5a5 !important;
}

.teacher-delete-button:hover{
    background:rgba(239,68,68,.16);

    transform:translateY(-2px);

    color:#fecaca !important;
}


/* Footer */

.management-page-footer{
    display:flex;

    justify-content:center;

    margin-top:35px;
}

.back-dashboard-button{
    padding:13px 25px;

    border:none;

    border-radius:14px;

    background:
        rgba(255,255,255,.06);

    border:1px solid rgba(148,163,184,.12);

    color:#ec4a45;

    font-size:15px;

    cursor:pointer;

    transition:.3s ease;
}

.back-dashboard-button:hover{
    background:
        rgba(56,189,248,.10);

    border-color:
        rgba(56,189,248,.22);

    color:#38f858;

    transform:translateY(-3px);
}


/* Mobile */

@media(max-width:768px){

    .management-page{
        padding:15px 8px 40px;
    }

    .management-page-header{
        flex-direction:column;

        text-align:center;

        padding:22px 18px;
    }

    .management-page-header h1{
        font-size:23px;
    }

    .modern-action-button{
        width:100%;
    }

    .teacher-management-grid{
        grid-template-columns:1fr;

        gap:16px;
    }

    .teacher-management-image{
        height:220px;
    }

}



/* =========================================
   ADD TEACHER - MODERN FORM
========================================= */

.modern-success-message{
    width:100%;
    box-sizing:border-box;
    margin-bottom:22px;
    padding:16px 20px;
    border-radius:16px;
    background:rgba(34,197,94,.08);
    border:1px solid rgba(34,197,94,.18);
    color:#86efac;
    font-size:14px;
    line-height:1.8;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.modern-error-message{
    width:100%;
    box-sizing:border-box;
    margin-bottom:22px;
    padding:16px 20px;
    border-radius:16px;
    background:rgba(239,68,68,.08);
    border:1px solid rgba(239,68,68,.18);
    color:#fca5a5;
    font-size:14px;
    line-height:1.8;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}


/* کارت اصلی فرم */

.modern-form-card{
    width:100%;
    box-sizing:border-box;
    padding:32px;
    background:linear-gradient(
        145deg,
        rgba(30,41,59,.95),
        rgba(15,23,42,.92)
    );
    border:1px solid rgba(148,163,184,.11);
    border-radius:24px;
    box-shadow:0 20px 50px rgba(0,0,0,.28);
    backdrop-filter:blur(15px);
}


/* عنوان بخش */

.form-section-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:22px;
    padding-bottom:14px;
    border-bottom:1px solid rgba(148,163,184,.10);
    color:#f8fafc;
    font-size:18px;
    font-weight:bold;
}

.form-section-second{
    margin-top:35px;
}


/* شبکه فرم */

.modern-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}


/* گروه فرم */

.modern-form-group{
    display:flex;
    flex-direction:column;
    gap:9px;
    min-width:0;
}

.modern-form-group.full-width{
    grid-column:1 / -1;
}


/* برچسب */

.modern-form-group label{
    color:#cbd5e1;
    font-size:14px;
    font-weight:bold;
}


/* ورودی‌ها */

.modern-form-group input,
.modern-form-group select,
.modern-form-group textarea{
    width:100%;
    box-sizing:border-box;
    padding:13px 15px;
    border-radius:13px;
    border:1px solid rgba(148,163,184,.14);
    background:rgba(15,23,42,.75);
    color:#f8fafc;
    font-family:"Farhang2", sans-serif;
    font-size:14px;
    outline:none;
    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.modern-form-group input::placeholder,
.modern-form-group textarea::placeholder{
    color:#64748b;
}

.modern-form-group input:hover,
.modern-form-group select:hover,
.modern-form-group textarea:hover{
    border-color:rgba(148,163,184,.25);
}

.modern-form-group input:focus,
.modern-form-group select:focus,
.modern-form-group textarea:focus{
    border-color:rgba(56,189,248,.55);
    background:rgba(15,23,42,.9);
    box-shadow:
        0 0 0 3px rgba(56,189,248,.08),
        0 8px 25px rgba(0,0,0,.15);
}


/* Select */

.modern-form-group select{
    cursor:pointer;
}

.modern-form-group select option{
    background:#0f172a;
    color:#f8fafc;
}


/* Textarea */

.modern-form-group textarea{
    resize:vertical;
    min-height:130px;
    line-height:1.9;
}


/* بخش آپلود تصویر */

.modern-file-box{
    position:relative;
    display:flex;
    align-items:center;
    gap:15px;
    min-height:85px;
    padding:16px 18px;
    box-sizing:border-box;
    border-radius:16px;
    border:1px dashed rgba(56,189,248,.25);
    background:rgba(56,189,248,.04);
    overflow:hidden;
    transition:.3s ease;
}

.modern-file-box:hover{
    border-color:rgba(56,189,248,.45);
    background:rgba(56,189,248,.07);
}


/* آیکون فایل */

.modern-file-icon{
    width:52px;
    height:52px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:linear-gradient(
        135deg,
        rgba(56,189,248,.15),
        rgba(99,102,241,.15)
    );
    border:1px solid rgba(56,189,248,.12);
    font-size:25px;
}


/* متن فایل */

.modern-file-text{
    display:flex;
    flex-direction:column;
    gap:5px;
    flex:1;
    min-width:0;
}

.modern-file-text strong{
    color:#f8fafc;
    font-size:14px;
}

.modern-file-text span{
    color:#64748b;
    font-size:12px;
}


/* Input فایل */

.modern-file-box input[type="file"]{
    width:auto;
    max-width:210px;
    color:#94a3b8;
    font-size:12px;
    background:transparent;
    border:none;
    padding:0;
}

.modern-file-box input[type="file"]::file-selector-button{
    padding:9px 13px;
    margin-left:8px;
    border:none;
    border-radius:10px;
    background:linear-gradient(
        135deg,
        #38bdf8,
        #6366f1
    );
    color:white;
    font-family:"Farhang2", sans-serif;
    font-weight:bold;
    cursor:pointer;
    transition:.25s ease;
}

.modern-file-box input[type="file"]::file-selector-button:hover{
    transform:translateY(-2px);
    box-shadow:0 7px 20px rgba(56,189,248,.20);
}


/* دکمه‌های فرم */

.modern-form-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin-top:32px;
    padding-top:25px;
    border-top:1px solid rgba(148,163,184,.10);
}


/* ذخیره */

.modern-save-button{
    min-width:180px;
    padding:14px 25px;
    border:none;
    border-radius:14px;
    background:linear-gradient(
        135deg,
        #38bdf8,
        #6366f1
    );
    color:white;
    font-family:"Farhang2", sans-serif;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
    box-shadow:0 8px 25px rgba(56,189,248,.18);
    transition:.3s ease;
}

.modern-save-button:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 35px rgba(56,189,248,.28);
}


/* انصراف */

.modern-cancel-button{
    min-width:120px;
    padding:13px 22px;
    box-sizing:border-box;
    text-align:center;
    border-radius:14px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(148,163,184,.12);
    color:#cbd5e1 !important;
    text-decoration:none !important;
    font-size:14px;
    font-weight:bold;
    transition:.3s ease;
}

.modern-cancel-button:hover{
    transform:translateY(-3px);
    background:rgba(255,255,255,.08);
    border-color:rgba(56,189,248,.20);
    color:#38bdf8 !important;
}


/* موبایل */

@media(max-width:768px){

    .modern-form-card{
        padding:20px 16px;
        border-radius:20px;
    }

    .modern-form-grid{
        grid-template-columns:1fr;
        gap:17px;
    }

    .modern-form-group.full-width{
        grid-column:auto;
    }

    .form-section-title{
        font-size:16px;
    }

    .modern-file-box{
        flex-wrap:wrap;
    }

    .modern-file-text{
        width:calc(100% - 70px);
        flex:none;
    }

    .modern-file-box input[type="file"]{
        width:100%;
        max-width:none;
        margin-top:5px;
    }

    .modern-form-actions{
        flex-direction:column;
    }

    .modern-save-button,
    .modern-cancel-button{
        width:100%;
    }

}


/* =========================================
   LESSON MANAGEMENT
========================================= */

.lesson-management-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:22px;
}


/* کارت درس */

.lesson-management-card{
    position:relative;
    display:flex;
    align-items:center;
    gap:16px;
    min-height:165px;
    padding:22px;
    box-sizing:border-box;

    background:linear-gradient(
        145deg,
        rgba(30,41,59,.95),
        rgba(15,23,42,.92)
    );

    border:1px solid rgba(148,163,184,.11);
    border-radius:24px;

    box-shadow:0 15px 40px rgba(0,0,0,.25);

    overflow:hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


/* نور پس‌زمینه کارت */

.lesson-management-card::before{
    content:"";
    position:absolute;

    width:150px;
    height:150px;

    top:-80px;
    left:-70px;

    background:rgba(56,189,248,.10);

    border-radius:50%;

    filter:blur(25px);

    transition:.3s ease;
}


.lesson-management-card:hover{
    transform:translateY(-7px);

    border-color:rgba(56,189,248,.28);

    box-shadow:
        0 25px 55px rgba(0,0,0,.38),
        0 0 30px rgba(56,189,248,.07);
}


.lesson-management-card:hover::before{
    transform:scale(1.5);

    background:rgba(99,102,241,.15);
}


/* شماره درس */

.lesson-number{
    position:absolute;

    top:14px;
    left:17px;

    width:28px;
    height:28px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(148,163,184,.10);

    color:#64748b;

    font-size:11px;

    z-index:2;
}


/* آیکون */

.lesson-icon{
    position:relative;
    z-index:1;

    min-width:68px;
    width:68px;
    height:68px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:linear-gradient(
        135deg,
        rgba(56,189,248,.15),
        rgba(99,102,241,.15)
    );

    border:1px solid rgba(56,189,248,.12);

    font-size:31px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05);

    transition:.3s ease;
}


.lesson-management-card:hover .lesson-icon{
    transform:scale(1.08) rotate(-3deg);

    box-shadow:
        0 8px 25px rgba(56,189,248,.12);
}


/* محتوای درس */

.lesson-management-content{
    position:relative;
    z-index:1;

    flex:1;

    min-width:0;

    text-align:right;
    direction:rtl;
}


.lesson-management-content h2{
    margin:0 0 11px;

    color:#f8fafc;

    font-size:19px;

    line-height:1.6;

    word-break:break-word;
}


/* کلاس */

.lesson-class{
    display:inline-flex;

    align-items:center;

    gap:5px;

    margin-bottom:8px;

    padding:6px 10px;

    border-radius:9px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.10);

    color:#7dd3fc;

    font-size:12px;
}


/* دبیر */

.lesson-teacher{
    color:#94a3b8;

    font-size:13px;

    line-height:1.7;
}


/* دکمه‌ها */

.lesson-management-actions{
    position:relative;
    z-index:2;

    display:flex;

    flex-direction:column;

    gap:8px;

    min-width:92px;
}


.lesson-management-actions a{
    display:flex;

    align-items:center;

    justify-content:center;

    padding:9px 10px;

    border-radius:11px;

    text-decoration:none !important;

    font-size:12px;

    font-weight:bold;

    transition:.25s ease;
}


/* ویرایش */

.lesson-edit-button{
    background:rgba(56,189,248,.10);

    border:1px solid rgba(56,189,248,.16);

    color:#38bdf8 !important;
}


.lesson-edit-button:hover{
    background:rgba(56,189,248,.18);

    color:#7dd3fc !important;

    transform:translateY(-2px);
}


/* حذف */

.lesson-delete-button{
    background:rgba(239,68,68,.08);

    border:1px solid rgba(239,68,68,.14);

    color:#fca5a5 !important;
}


.lesson-delete-button:hover{
    background:rgba(239,68,68,.16);

    color:#fecaca !important;

    transform:translateY(-2px);
}


/* حالت خالی */

.empty-management-card{
    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:55px 25px;

    background:linear-gradient(
        145deg,
        rgba(30,41,59,.95),
        rgba(15,23,42,.92)
    );

    border:1px solid rgba(148,163,184,.11);

    border-radius:24px;

    box-shadow:0 15px 40px rgba(0,0,0,.25);
}


.empty-management-icon{
    width:75px;
    height:75px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin-bottom:18px;

    border-radius:22px;

    background:rgba(56,189,248,.08);

    border:1px solid rgba(56,189,248,.12);

    font-size:34px;
}


.empty-management-card h2{
    margin:0 0 8px;

    color:#f8fafc;

    font-size:20px;
}


.empty-management-card p{
    margin:0 0 22px;

    color:#64748b;

    font-size:14px;
}


/* موبایل */

@media(max-width:768px){

    .lesson-management-grid{
        grid-template-columns:1fr;

        gap:16px;
    }


    .lesson-management-card{
        align-items:flex-start;

        min-height:auto;

        padding:20px;

        flex-wrap:wrap;
    }


    .lesson-number{
        top:12px;
        left:12px;
    }


    .lesson-icon{
        min-width:58px;
        width:58px;
        height:58px;

        font-size:26px;
    }


    .lesson-management-content{
        flex:1;

        min-width:calc(100% - 90px);
    }


    .lesson-management-content h2{
        font-size:17px;
    }


    .lesson-management-actions{
        width:100%;

        flex-direction:row;

        min-width:100%;

        margin-top:5px;
    }


    .lesson-management-actions a{
        flex:1;

        padding:11px;
    }

}


.user-management-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:22px;
}


.user-management-card{
    position:relative;
    display:flex;
    align-items:center;
    gap:18px;
    min-height:155px;
    padding:22px;
    box-sizing:border-box;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.92)
        );

    border:1px solid rgba(148,163,184,.11);
    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

    overflow:hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.user-management-card::before{
    content:"";

    position:absolute;

    width:150px;
    height:150px;

    top:-80px;
    left:-70px;

    background:rgba(56,189,248,.10);

    border-radius:50%;

    filter:blur(25px);

    transition:.3s ease;
}


.user-management-card:hover{
    transform:translateY(-7px);

    border-color:rgba(56,189,248,.28);

    box-shadow:
        0 25px 55px rgba(0,0,0,.38),
        0 0 30px rgba(56,189,248,.07);
}


.user-management-card:hover::before{
    transform:scale(1.5);

    background:rgba(99,102,241,.15);
}


/* آیکون کاربر */

.user-management-icon{
    position:relative;
    z-index:1;

    min-width:68px;
    width:68px;
    height:68px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.15),
            rgba(99,102,241,.15)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:30px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05);

    transition:.3s ease;
}


.user-management-card:hover .user-management-icon{
    transform:
        scale(1.08)
        rotate(-3deg);

    box-shadow:
        0 8px 25px rgba(56,189,248,.12);
}


/* اطلاعات کاربر */

.user-management-content{
    position:relative;
    z-index:1;

    flex:1;
    min-width:0;

    text-align:right;
    direction:rtl;
}


.user-management-content h2{
    margin:0 0 8px;

    color:#f8fafc;

    font-size:19px;

    word-break:break-word;
}


.user-username{
    color:#94a3b8;

    font-size:13px;

    margin-bottom:12px;

    direction:ltr;
    text-align:right;
}


.user-details{
    display:flex;
    align-items:center;

    flex-wrap:wrap;

    gap:7px;
}


.user-role,
.user-class{
    display:inline-flex;
    align-items:center;
    gap:5px;

    padding:6px 10px;

    border-radius:9px;

    font-size:12px;
}


.user-role{
    color:#7dd3fc;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.10);
}


.user-class{
    color:#c4b5fd;

    background:rgba(139,92,246,.07);

    border:1px solid rgba(139,92,246,.10);
}


/* دکمه‌ها */

.user-management-actions{
    position:relative;
    z-index:2;

    display:flex;
    flex-direction:column;

    gap:8px;

    min-width:92px;
}


.user-management-actions a{
    display:flex;
    align-items:center;
    justify-content:center;

    padding:9px 10px;

    border-radius:11px;

    text-decoration:none !important;

    font-size:12px;
    font-weight:bold;

    transition:.25s ease;
}


.user-edit-button{
    background:rgba(56,189,248,.10);

    border:1px solid rgba(56,189,248,.16);

    color:#38bdf8 !important;
}


.user-edit-button:hover{
    background:rgba(56,189,248,.18);

    color:#7dd3fc !important;

    transform:translateY(-2px);
}


.user-delete-button{
    background:rgba(239,68,68,.08);

    border:1px solid rgba(239,68,68,.14);

    color:#fca5a5 !important;
}


.user-delete-button:hover{
    background:rgba(239,68,68,.16);

    color:#fecaca !important;

    transform:translateY(-2px);
}


/* موبایل */

@media(max-width:768px){

    .user-management-grid{
        grid-template-columns:1fr;
        gap:16px;
    }


    .user-management-card{
        align-items:flex-start;

        min-height:auto;

        padding:20px;

        flex-wrap:wrap;
    }


    .user-management-icon{
        min-width:58px;
        width:58px;
        height:58px;

        font-size:26px;
    }


    .user-management-content{
        flex:1;

        min-width:
            calc(100% - 80px);
    }


    .user-management-content h2{
        font-size:17px;
    }


    .user-management-actions{
        width:100%;

        min-width:100%;

        flex-direction:row;

        margin-top:5px;
    }


    .user-management-actions a{
        flex:1;

        padding:11px;
    }

}


/* =========================================
   مدیریت گالری
========================================= */

.gallery-management-stats{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(230px,1fr));

    gap:18px;

    margin-bottom:25px;
}


.gallery-stat-card{
    display:flex;

    align-items:center;

    gap:16px;

    padding:20px 22px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.92)
        );

    border:1px solid rgba(148,163,184,.11);

    border-radius:20px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.20);
}


.gallery-stat-icon{
    min-width:55px;

    width:55px;
    height:55px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:16px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.15),
            rgba(99,102,241,.15)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:25px;
}


.gallery-stat-card span{
    display:block;

    color:#94a3b8;

    font-size:13px;

    margin-bottom:5px;
}


.gallery-stat-card strong{
    display:block;

    color:#f8fafc;

    font-size:24px;
}


.gallery-stat-card strong small{
    color:#64748b;

    font-size:13px;

    font-weight:normal;
}


/* گرید */

.gallery-management-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(290px,1fr));

    gap:22px;
}


/* کارت */

.gallery-management-card{
    position:relative;

    display:flex;

    flex-direction:column;

    overflow:hidden;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.92)
        );

    border:1px solid rgba(148,163,184,.11);

    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.gallery-management-card:hover{
    transform:translateY(-8px);

    border-color:rgba(56,189,248,.28);

    box-shadow:
        0 25px 55px rgba(0,0,0,.38),
        0 0 30px rgba(56,189,248,.07);
}


/* تصویر */

.gallery-management-image{
    position:relative;

    width:100%;

    height:220px;

    overflow:hidden;

    background:#0f172a;
}


.gallery-management-image img{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;

    transition:
        transform .5s ease;
}


.gallery-management-card:hover
.gallery-management-image img{
    transform:scale(1.07);
}


/* شماره ترتیب */

.gallery-order-badge{
    position:absolute;

    top:14px;
    left:14px;

    min-width:38px;
    height:38px;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:0 9px;

    border-radius:12px;

    background:rgba(15,23,42,.82);

    border:1px solid rgba(255,255,255,.12);

    color:#f8fafc;

    font-size:12px;

    font-weight:bold;

    backdrop-filter:blur(10px);
}


/* اطلاعات */

.gallery-management-content{
    padding:20px 20px 15px;

    text-align:right;

    direction:rtl;
}


.gallery-management-content h2{
    margin:0 0 10px;

    color:#f8fafc;

    font-size:18px;

    line-height:1.6;

    word-break:break-word;
}


.gallery-file-name{
    display:block;

    color:#64748b;

    font-size:11px;

    line-height:1.7;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    direction:ltr;

    text-align:right;
}


/* دکمه‌ها */

.gallery-management-actions{
    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px;

    padding:
        0
        20px
        20px;
}


.gallery-management-actions a{
    display:flex;

    align-items:center;
    justify-content:center;

    padding:11px;

    border-radius:12px;

    text-decoration:none !important;

    font-size:13px;

    font-weight:bold;

    transition:.25s ease;
}


.gallery-edit-button{
    background:rgba(56,189,248,.10);

    border:1px solid rgba(56,189,248,.16);

    color:#38bdf8 !important;
}


.gallery-edit-button:hover{
    background:rgba(56,189,248,.18);

    color:#7dd3fc !important;

    transform:translateY(-2px);
}


.gallery-delete-button{
    background:rgba(239,68,68,.08);

    border:1px solid rgba(239,68,68,.14);

    color:#fca5a5 !important;
}


.gallery-delete-button:hover{
    background:rgba(239,68,68,.16);

    color:#fecaca !important;

    transform:translateY(-2px);
}


/* موبایل */

@media(max-width:768px){

    .gallery-management-stats{
        grid-template-columns:1fr;

        gap:12px;
    }


    .gallery-management-grid{
        grid-template-columns:1fr;

        gap:16px;
    }


    .gallery-management-image{
        height:230px;
    }

}



/* =========================================
   ظرفیت گالری
========================================= */

.gallery-capacity-badge{
    display:flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    padding:11px 17px;

    border-radius:13px;

    background:rgba(56,189,248,.08);

    border:1px solid rgba(56,189,248,.14);

    color:#7dd3fc;

    font-size:14px;

    font-weight:bold;

    white-space:nowrap;
}


.gallery-capacity-badge::first-letter{
    font-size:17px;
}


@media(max-width:768px){

    .gallery-capacity-badge{
        width:100%;
    }

}


/* =========================================
   مدیریت مسابقات
========================================= */

.competition-management-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(290px,1fr));

    gap:22px;
}


/* کارت */

.competition-management-card{
    position:relative;

    display:flex;

    flex-direction:column;

    overflow:hidden;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.92)
        );

    border:1px solid rgba(148,163,184,.11);

    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.competition-management-card:hover{
    transform:translateY(-8px);

    border-color:rgba(56,189,248,.28);

    box-shadow:
        0 25px 55px rgba(0,0,0,.38),
        0 0 30px rgba(56,189,248,.07);
}


/* تصویر */

.competition-management-image{
    position:relative;

    width:100%;

    height:220px;

    overflow:hidden;

    background:#0f172a;
}


.competition-management-image img{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;

    transition:
        transform .5s ease;
}


.competition-management-card:hover
.competition-management-image img{
    transform:scale(1.07);
}


/* ترتیب */

.competition-order-badge{
    position:absolute;

    top:14px;
    left:14px;

    min-width:38px;
    height:38px;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:0 9px;

    border-radius:12px;

    background:rgba(15,23,42,.82);

    border:1px solid rgba(255,255,255,.12);

    color:#f8fafc;

    font-size:12px;

    font-weight:bold;

    backdrop-filter:blur(10px);
}


/* اطلاعات */

.competition-management-content{
    padding:20px 20px 15px;

    text-align:right;

    direction:rtl;
}


.competition-label{
    display:inline-flex;

    align-items:center;

    gap:5px;

    margin-bottom:10px;

    padding:6px 10px;

    border-radius:9px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.10);

    color:#7dd3fc;

    font-size:11px;
}


.competition-management-content h2{
    margin:0 0 10px;

    color:#f8fafc;

    font-size:19px;

    line-height:1.7;

    word-break:break-word;
}


.competition-id{
    color:#64748b;

    font-size:12px;
}


/* عملیات */

.competition-management-actions{
    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px;

    padding:
        0
        20px
        20px;
}


.competition-management-actions a{
    display:flex;

    align-items:center;
    justify-content:center;

    padding:11px;

    border-radius:12px;

    text-decoration:none !important;

    font-size:13px;

    font-weight:bold;

    transition:.25s ease;
}


.competition-edit-button{
    background:rgba(56,189,248,.10);

    border:1px solid rgba(56,189,248,.16);

    color:#38bdf8 !important;
}


.competition-edit-button:hover{
    background:rgba(56,189,248,.18);

    color:#7dd3fc !important;

    transform:translateY(-2px);
}


.competition-delete-button{
    background:rgba(239,68,68,.08);

    border:1px solid rgba(239,68,68,.14);

    color:#fca5a5 !important;
}


.competition-delete-button:hover{
    background:rgba(239,68,68,.16);

    color:#fecaca !important;

    transform:translateY(-2px);
}


/* موبایل */

@media(max-width:768px){

    .competition-management-grid{
        grid-template-columns:1fr;

        gap:16px;
    }


    .competition-management-image{
        height:230px;
    }

}



/* =========================================
   فرم مسابقات
========================================= */

.competition-form-badge{
    display:flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    padding:11px 17px;

    border-radius:13px;

    background:rgba(139,92,246,.08);

    border:1px solid rgba(139,92,246,.15);

    color:#c4b5fd;

    font-size:14px;

    font-weight:bold;

    white-space:nowrap;
}


@media(max-width:768px){

    .competition-form-badge{
        width:100%;
    }

}



/* =========================================
   مدیریت معرفی مدرسه
========================================= */

.school-management-badge{
    display:flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    padding:11px 17px;

    border-radius:13px;

    background:rgba(34,197,94,.08);

    border:1px solid rgba(34,197,94,.14);

    color:#86efac;

    font-size:14px;

    font-weight:bold;

    white-space:nowrap;
}


@media(max-width:768px){

    .school-management-badge{
        width:100%;
    }

}



/* =========================================
   مدیریت اخبار
========================================= */

.news-management-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:20px;
}


/* کارت خبر */

.news-management-card{
    position:relative;

    display:flex;

    align-items:center;

    gap:18px;

    min-height:145px;

    padding:22px;

    box-sizing:border-box;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.92)
        );

    border:1px solid rgba(148,163,184,.11);

    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

    overflow:hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.news-management-card::before{
    content:"";

    position:absolute;

    width:150px;
    height:150px;

    top:-80px;
    left:-70px;

    background:rgba(56,189,248,.10);

    border-radius:50%;

    filter:blur(25px);

    transition:.3s ease;
}


.news-management-card:hover{
    transform:translateY(-7px);

    border-color:rgba(56,189,248,.28);

    box-shadow:
        0 25px 55px rgba(0,0,0,.38),
        0 0 30px rgba(56,189,248,.07);
}


.news-management-card:hover::before{
    transform:scale(1.5);

    background:rgba(99,102,241,.15);
}


/* آیکون */

.news-management-icon{
    position:relative;

    z-index:1;

    min-width:68px;

    width:68px;
    height:68px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.15),
            rgba(99,102,241,.15)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:30px;

    transition:.3s ease;
}


.news-management-card:hover
.news-management-icon{
    transform:
        scale(1.08)
        rotate(-3deg);

    box-shadow:
        0 8px 25px rgba(56,189,248,.12);
}


/* محتوا */

.news-management-content{
    position:relative;

    z-index:1;

    flex:1;

    min-width:0;

    text-align:right;

    direction:rtl;
}


.news-number{
    color:#64748b;

    font-size:11px;

    margin-bottom:7px;
}


.news-management-content h2{
    margin:0 0 10px;

    color:#f8fafc;

    font-size:18px;

    line-height:1.7;

    word-break:break-word;
}


/* نوع خبر */

.news-type-badge{
    display:inline-flex;

    align-items:center;

    padding:6px 10px;

    border-radius:9px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.10);

    color:#7dd3fc;

    font-size:11px;
}


/* عملیات */

.news-management-actions{
    position:relative;

    z-index:2;

    min-width:105px;
}


.news-delete-button{
    display:flex;

    align-items:center;
    justify-content:center;

    padding:10px 12px;

    border-radius:12px;

    text-decoration:none !important;

    background:rgba(239,68,68,.08);

    border:1px solid rgba(239,68,68,.14);

    color:#fca5a5 !important;

    font-size:12px;

    font-weight:bold;

    transition:.25s ease;
}


.news-delete-button:hover{
    background:rgba(239,68,68,.16);

    color:#fecaca !important;

    transform:translateY(-2px);
}


/* موبایل */

@media(max-width:768px){

    .news-management-grid{
        grid-template-columns:1fr;

        gap:16px;
    }


    .news-management-card{
        align-items:flex-start;

        min-height:auto;

        padding:20px;

        flex-wrap:wrap;
    }


    .news-management-icon{
        min-width:58px;

        width:58px;
        height:58px;

        font-size:26px;
    }


    .news-management-content{
        flex:1;

        min-width:
            calc(100% - 80px);
    }


    .news-management-content h2{
        font-size:17px;
    }


    .news-management-actions{
        width:100%;

        min-width:100%;

        margin-top:5px;
    }


    .news-delete-button{
        width:100%;

        padding:11px;
    }

}



/* =========================================
   فرم افزودن خبر
========================================= */

.news-form-badge{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    padding:11px 17px;

    border-radius:13px;

    background:rgba(56,189,248,.08);

    border:1px solid rgba(56,189,248,.14);

    color:#7dd3fc;

    font-size:14px;

    font-weight:bold;

    white-space:nowrap;
}


@media(max-width:768px){

    .news-form-badge{
        width:100%;
    }

}


/* =========================================
   فرم برنامه هفتگی
========================================= */

.schedule-form-badge{
    display:flex;

    align-items:center;
    justify-content:center;

    gap:7px;

    padding:11px 17px;

    border-radius:13px;

    background:rgba(233, 236, 83, 0.08);

    border:1px solid rgba(92, 246, 226, 0.15);

    color:#3d14e2;

    font-size:14px;

    font-weight:bold;

    white-space:nowrap;
}


@media(max-width:768px){

    .schedule-form-badge{
        width:100%;
    }

}



/* =========================================
   مدیریت تکالیف
========================================= */

.homework-management-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:20px;
}


/* کارت */

.homework-management-card{
    position:relative;

    display:flex;

    align-items:center;

    gap:18px;

    min-height:145px;

    padding:22px;

    box-sizing:border-box;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.92)
        );

    border:1px solid rgba(148,163,184,.11);

    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

    overflow:hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.homework-management-card::before{
    content:"";

    position:absolute;

    width:150px;
    height:150px;

    top:-80px;
    left:-70px;

    background:rgba(56,189,248,.10);

    border-radius:50%;

    filter:blur(25px);

    transition:.3s ease;
}


.homework-management-card:hover{
    transform:translateY(-7px);

    border-color:rgba(56,189,248,.28);

    box-shadow:
        0 25px 55px rgba(0,0,0,.38),
        0 0 30px rgba(56,189,248,.07);
}


.homework-management-card:hover::before{
    transform:scale(1.5);

    background:rgba(99,102,241,.15);
}


/* آیکون */

.homework-management-icon{
    position:relative;

    z-index:1;

    min-width:68px;

    width:68px;
    height:68px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.15),
            rgba(99,102,241,.15)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:30px;

    transition:.3s ease;
}


.homework-management-card:hover
.homework-management-icon{
    transform:
        scale(1.08)
        rotate(-3deg);

    box-shadow:
        0 8px 25px rgba(56,189,248,.12);
}


/* محتوا */

.homework-management-content{
    position:relative;

    z-index:1;

    flex:1;

    min-width:0;

    text-align:right;

    direction:rtl;
}


.homework-number{
    color:#64748b;

    font-size:11px;

    margin-bottom:7px;
}


.homework-management-content h2{
    margin:0 0 10px;

    color:#f8fafc;

    font-size:18px;

    line-height:1.7;

    word-break:break-word;
}


.homework-teacher{
    display:inline-flex;

    align-items:center;

    gap:5px;

    padding:6px 10px;

    border-radius:9px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.10);

    color:#7dd3fc;

    font-size:12px;
}


/* عملیات */

.homework-management-actions{
    position:relative;

    z-index:2;

    min-width:90px;
}


.homework-delete-button{
    display:flex;

    align-items:center;
    justify-content:center;

    padding:10px 12px;

    border-radius:12px;

    text-decoration:none !important;

    background:rgba(239,68,68,.08);

    border:1px solid rgba(239,68,68,.14);

    color:#fca5a5 !important;

    font-size:12px;

    font-weight:bold;

    transition:.25s ease;
}


.homework-delete-button:hover{
    background:rgba(239,68,68,.16);

    color:#fecaca !important;

    transform:translateY(-2px);
}


/* موبایل */

@media(max-width:768px){

    .homework-management-grid{
        grid-template-columns:1fr;

        gap:16px;
    }


    .homework-management-card{
        align-items:flex-start;

        min-height:auto;

        padding:20px;

        flex-wrap:wrap;
    }


    .homework-management-icon{
        min-width:58px;

        width:58px;
        height:58px;

        font-size:26px;
    }


    .homework-management-content{
        flex:1;

        min-width:
            calc(100% - 80px);
    }


    .homework-management-content h2{
        font-size:17px;
    }


    .homework-management-actions{
        width:100%;

        min-width:100%;

        margin-top:5px;
    }


    .homework-delete-button{
        width:100%;

        padding:11px;
    }

}



/* =========================================
   فرم ثبت تکلیف
========================================= */

.homework-form-badge{
    display:flex;

    align-items:center;
    justify-content:center;

    gap:7px;

    padding:11px 17px;

    border-radius:13px;

    background:rgba(245,158,11,.08);

    border:1px solid rgba(245,158,11,.15);

    color:#fcd34d;

    font-size:14px;

    font-weight:bold;

    white-space:nowrap;
}


@media(max-width:768px){

    .homework-form-badge{
        width:100%;
    }

}



/* =========================================
   مدیریت تکالیف ارسالی
========================================= */

.submission-management-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(350px,1fr));

    gap:22px;
}


/* کارت */

.submission-management-card{
    position:relative;

    display:flex;

    align-items:center;

    gap:18px;

    min-height:190px;

    padding:22px;

    box-sizing:border-box;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.92)
        );

    border:1px solid rgba(148,163,184,.11);

    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

    overflow:hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.submission-management-card::before{
    content:"";

    position:absolute;

    width:160px;
    height:160px;

    top:-85px;
    left:-75px;

    background:rgba(56,189,248,.10);

    border-radius:50%;

    filter:blur(25px);

    transition:.3s ease;
}


.submission-management-card:hover{
    transform:translateY(-7px);

    border-color:rgba(56,189,248,.28);

    box-shadow:
        0 25px 55px rgba(0,0,0,.38),
        0 0 30px rgba(56,189,248,.07);
}


.submission-management-card:hover::before{
    transform:scale(1.5);

    background:rgba(99,102,241,.15);
}


/* آیکون */

.submission-management-icon{
    position:relative;

    z-index:1;

    min-width:68px;

    width:68px;
    height:68px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.15),
            rgba(99,102,241,.15)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:30px;

    transition:.3s ease;
}


.submission-management-card:hover
.submission-management-icon{
    transform:
        scale(1.08)
        rotate(-3deg);

    box-shadow:
        0 8px 25px rgba(56,189,248,.12);
}


/* محتوا */

.submission-management-content{
    position:relative;

    z-index:1;

    flex:1;

    min-width:0;

    text-align:right;

    direction:rtl;
}


.submission-number{
    color:#64748b;

    font-size:11px;

    margin-bottom:6px;
}


.submission-management-content h2{
    margin:0 0 10px;

    color:#f8fafc;

    font-size:19px;

    line-height:1.6;

    word-break:break-word;
}


/* کلاس */

.submission-class{
    display:inline-flex;

    align-items:center;

    gap:5px;

    margin-bottom:7px;

    padding:6px 10px;

    border-radius:9px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.10);

    color:#7dd3fc;

    font-size:12px;
}


/* تاریخ */

.submission-date{
    color:#94a3b8;

    font-size:12px;

    margin-bottom:10px;
}


/* وضعیت و نمره */

.submission-status-row{
    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:7px;
}


.submission-status,
.submission-score{
    display:inline-flex;

    align-items:center;

    gap:5px;

    padding:6px 10px;

    border-radius:9px;

    font-size:11px;
}


.submission-status{
    color:#c4b5fd;

    background:rgba(139,92,246,.07);

    border:1px solid rgba(139,92,246,.12);
}


.submission-score{
    color:#86efac;

    background:rgba(34,197,94,.07);

    border:1px solid rgba(34,197,94,.12);
}


.submission-score strong{
    color:#f8fafc;

    font-size:12px;
}


/* عملیات */

.submission-management-actions{
    position:relative;

    z-index:2;

    display:flex;

    flex-direction:column;

    gap:8px;

    min-width:105px;
}


.submission-management-actions a{
    display:flex;

    align-items:center;
    justify-content:center;

    padding:10px 11px;

    border-radius:11px;

    text-decoration:none !important;

    font-size:12px;

    font-weight:bold;

    transition:.25s ease;
}


/* دانلود */

.submission-download-button{
    background:rgba(56,189,248,.10);

    border:1px solid rgba(56,189,248,.16);

    color:#38bdf8 !important;
}


.submission-download-button:hover{
    background:rgba(56,189,248,.18);

    color:#7dd3fc !important;

    transform:translateY(-2px);
}


/* بررسی */

.submission-review-button{
    background:rgba(139,92,246,.10);

    border:1px solid rgba(139,92,246,.16);

    color:#c4b5fd !important;
}


.submission-review-button:hover{
    background:rgba(139,92,246,.18);

    color:#ddd6fe !important;

    transform:translateY(-2px);
}


/* Badge هدر */

.submission-form-badge{
    display:flex;

    align-items:center;
    justify-content:center;

    gap:7px;

    padding:11px 17px;

    border-radius:13px;

    background:rgba(139,92,246,.08);

    border:1px solid rgba(139,92,246,.15);

    color:#c4b5fd;

    font-size:14px;

    font-weight:bold;

    white-space:nowrap;
}


/* موبایل */

@media(max-width:768px){

    .submission-management-grid{
        grid-template-columns:1fr;

        gap:16px;
    }


    .submission-management-card{
        align-items:flex-start;

        min-height:auto;

        padding:20px;

        flex-wrap:wrap;
    }


    .submission-management-icon{
        min-width:58px;

        width:58px;
        height:58px;

        font-size:26px;
    }


    .submission-management-content{
        flex:1;

        min-width:
            calc(100% - 80px);
    }


    .submission-management-content h2{
        font-size:17px;
    }


    .submission-management-actions{
        width:100%;

        min-width:100%;

        flex-direction:row;

        margin-top:5px;
    }


    .submission-management-actions a{
        flex:1;

        padding:11px;
    }


    .submission-form-badge{
        width:100%;
    }

}



/* =========================================
   صفحه بررسی تکلیف
========================================= */

.review-submission-badge{
    display:flex;

    align-items:center;
    justify-content:center;

    gap:7px;

    padding:11px 17px;

    border-radius:13px;

    background:rgba(34,197,94,.08);

    border:1px solid rgba(34,197,94,.14);

    color:#86efac;

    font-size:14px;

    font-weight:bold;

    white-space:nowrap;
}


/* اطلاعات دانش‌آموز */

.submission-review-info-grid{
    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:15px;
}


.submission-review-info-card{
    display:flex;

    align-items:center;

    gap:13px;

    min-width:0;

    padding:17px;

    border-radius:16px;

    background:rgba(15,23,42,.58);

    border:1px solid rgba(148,163,184,.10);

    transition:.25s ease;
}


.submission-review-info-card:hover{
    transform:translateY(-2px);

    border-color:rgba(56,189,248,.18);

    background:rgba(15,23,42,.75);
}


.submission-review-info-icon{
    min-width:48px;

    width:48px;
    height:48px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.12),
            rgba(99,102,241,.12)
        );

    border:1px solid rgba(56,189,248,.10);

    font-size:22px;
}


.submission-review-info-card > div{
    display:flex;

    flex-direction:column;

    gap:5px;

    min-width:0;
}


.submission-review-info-card small{
    color:#64748b;

    font-size:11px;
}


.submission-review-info-card strong{
    color:#f8fafc;

    font-size:14px;

    word-break:break-word;
}


.submission-current-status{
    color:#86efac !important;
}


/* فایل */

.submission-file-card{
    display:flex;

    align-items:center;

    gap:16px;

    padding:18px;

    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.05),
            rgba(99,102,241,.05)
        );

    border:1px dashed rgba(56,189,248,.20);

    transition:.3s ease;
}


.submission-file-card:hover{
    border-color:rgba(56,189,248,.35);

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.08),
            rgba(99,102,241,.08)
        );
}


.submission-file-icon{
    min-width:58px;

    width:58px;
    height:58px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:17px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.15),
            rgba(99,102,241,.15)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:27px;
}


.submission-file-content{
    display:flex;

    flex-direction:column;

    gap:5px;

    flex:1;

    min-width:0;
}


.submission-file-content strong{
    color:#f8fafc;

    font-size:14px;
}


.submission-file-content span{
    color:#64748b;

    font-size:12px;

    line-height:1.8;
}


.submission-review-download{
    display:flex;

    align-items:center;
    justify-content:center;

    padding:11px 17px;

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );

    color:white !important;

    text-decoration:none !important;

    font-size:13px;

    font-weight:bold;

    white-space:nowrap;

    box-shadow:
        0 7px 20px rgba(56,189,248,.15);

    transition:.3s ease;
}


.submission-review-download:hover{
    color:white !important;

    transform:translateY(-3px);

    box-shadow:
        0 12px 28px rgba(56,189,248,.25);
}


/* راهنمای ورودی */

.review-input-hint{
    color:#64748b;

    font-size:11px;

    line-height:1.7;
}


/* وضعیت */

.review-status-display{
    width:100%;

    box-sizing:border-box;

    min-height:47px;

    display:flex;

    align-items:center;

    gap:8px;

    padding:13px 15px;

    border-radius:13px;

    background:rgba(34,197,94,.07);

    border:1px solid rgba(34,197,94,.14);

    color:#86efac;

    font-size:14px;

    font-weight:bold;
}


.review-status-display span{
    display:flex;

    align-items:center;
    justify-content:center;

    width:22px;
    height:22px;

    border-radius:50%;

    background:rgba(34,197,94,.12);
}


/* موبایل */

@media(max-width:768px){

    .review-submission-badge{
        width:100%;
    }


    .submission-review-info-grid{
        grid-template-columns:1fr;
    }


    .submission-file-card{
        align-items:flex-start;

        flex-wrap:wrap;
    }


    .submission-file-content{
        width:
            calc(100% - 75px);

        flex:none;
    }


    .submission-review-download{
        width:100%;
    }

}



/* =========================================
   مدیریت گفت‌وگوی کلاسی
========================================= */

.class-chat-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(290px,1fr));

    gap:20px;
}


/* کارت کلاس */

.class-chat-card{
    position:relative;

    display:flex;

    flex-direction:column;

    align-items:center;

    text-align:center;

    padding:28px 22px 23px;

    min-height:245px;

    box-sizing:border-box;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.92)
        );

    border:1px solid rgba(148,163,184,.11);

    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

    overflow:hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.class-chat-card::before{
    content:"";

    position:absolute;

    width:160px;
    height:160px;

    top:-90px;
    left:-80px;

    background:rgba(56,189,248,.10);

    border-radius:50%;

    filter:blur(28px);

    transition:.3s ease;
}


.class-chat-card:hover{
    transform:translateY(-7px);

    border-color:rgba(56,189,248,.28);

    box-shadow:
        0 25px 55px rgba(0,0,0,.38),
        0 0 30px rgba(56,189,248,.07);
}


.class-chat-card:hover::before{
    transform:scale(1.5);

    background:rgba(99,102,241,.15);
}


/* شماره */

.class-chat-number{
    position:absolute;

    top:16px;
    left:17px;

    display:flex;

    align-items:center;
    justify-content:center;

    width:28px;
    height:28px;

    border-radius:9px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(148,163,184,.10);

    color:#64748b;

    font-size:11px;

    z-index:2;
}


/* آیکون */

.class-chat-icon{
    position:relative;

    z-index:1;

    width:68px;
    height:68px;

    display:flex;

    align-items:center;
    justify-content:center;

    margin-bottom:17px;

    border-radius:20px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.15),
            rgba(99,102,241,.15)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:31px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05);

    transition:.3s ease;
}


.class-chat-card:hover .class-chat-icon{
    transform:
        scale(1.08)
        rotate(-3deg);

    box-shadow:
        0 8px 25px rgba(56,189,248,.12);
}


/* محتوا */

.class-chat-content{
    position:relative;

    z-index:1;

    flex:1;

    width:100%;
}


.class-chat-content h2{
    margin:0 0 8px;

    color:#f8fafc;

    font-size:18px;

    line-height:1.7;
}


.class-chat-content p{
    margin:0 0 20px;

    color:#64748b;

    font-size:12px;

    line-height:1.8;
}


/* دکمه */

.class-chat-button{
    position:relative;

    z-index:2;

    display:flex;

    align-items:center;
    justify-content:center;

    width:100%;

    box-sizing:border-box;

    padding:12px 18px;

    border-radius:13px;

    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );

    color:white !important;

    text-decoration:none !important;

    font-size:13px;

    font-weight:bold;

    box-shadow:
        0 8px 22px rgba(56,189,248,.15);

    transition:.3s ease;
}


.class-chat-button:hover{
    color:white !important;

    transform:translateY(-3px);

    box-shadow:
        0 13px 30px rgba(56,189,248,.25);
}


/* Badge هدر */

.class-chat-management-badge{
    display:flex;

    align-items:center;
    justify-content:center;

    gap:7px;

    padding:11px 17px;

    border-radius:13px;

    background:rgba(56,189,248,.08);

    border:1px solid rgba(56,189,248,.14);

    color:#7dd3fc;

    font-size:14px;

    font-weight:bold;

    white-space:nowrap;
}


/* موبایل */

@media(max-width:768px){

    .class-chat-grid{
        grid-template-columns:1fr;

        gap:16px;
    }


    .class-chat-card{
        min-height:225px;

        padding:25px 20px 20px;
    }


    .class-chat-content h2{
        font-size:17px;
    }


    .class-chat-management-badge{
        width:100%;
    }

}



/* =========================================
   صفحه مدیریت چت کلاس
========================================= */

.class-chat-page{
    width:100%;

    max-width:1050px;

    margin:0 auto;

    padding:30px 15px 55px;

    box-sizing:border-box;
}


/* =========================================
   هدر
========================================= */

.class-chat-header{
    position:relative;

    display:flex;

    align-items:center;

    gap:18px;

    padding:25px 28px;

    margin-bottom:22px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.96),
            rgba(15,23,42,.92)
        );

    border:1px solid rgba(148,163,184,.12);

    border-radius:24px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.28);

    backdrop-filter:blur(15px);

    overflow:hidden;
}


.class-chat-header::before{
    content:"";

    position:absolute;

    width:200px;
    height:200px;

    top:-120px;
    left:-80px;

    background:rgba(56,189,248,.10);

    border-radius:50%;

    filter:blur(30px);
}


.class-chat-header-icon{
    position:relative;

    z-index:1;

    min-width:68px;

    width:68px;
    height:68px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.15),
            rgba(99,102,241,.15)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:31px;
}


.class-chat-header-content{
    position:relative;

    z-index:1;

    flex:1;

    min-width:0;

    text-align:right;
}


.class-chat-header-content > span{
    color:#64748b;

    font-size:12px;
}


.class-chat-header-content h1{
    margin:5px 0 4px;

    color:#f8fafc;

    font-size:22px;

    line-height:1.7;
}


.class-chat-header-content p{
    margin:0;

    color:#94a3b8;

    font-size:13px;
}


.class-chat-admin-badge{
    position:relative;

    z-index:1;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:10px 15px;

    border-radius:12px;

    background:rgba(139,92,246,.08);

    border:1px solid rgba(139,92,246,.15);

    color:#c4b5fd;

    font-size:12px;

    font-weight:bold;

    white-space:nowrap;
}


/* =========================================
   محفظه پیام‌ها
========================================= */

.class-chat-messages{
    display:flex;

    flex-direction:column;

    gap:15px;

    min-height:450px;

    max-height:650px;

    padding:22px;

    box-sizing:border-box;

    overflow-y:auto;

    background:
        linear-gradient(
            145deg,
            rgba(15,23,42,.88),
            rgba(15,23,42,.75)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.22);

    scrollbar-width:thin;

    scrollbar-color:
        rgba(56,189,248,.35)
        transparent;
}


.class-chat-messages::-webkit-scrollbar{
    width:7px;
}


.class-chat-messages::-webkit-scrollbar-track{
    background:transparent;
}


.class-chat-messages::-webkit-scrollbar-thumb{
    background:rgba(56,189,248,.30);

    border-radius:20px;
}


.class-chat-messages::-webkit-scrollbar-thumb:hover{
    background:rgba(56,189,248,.50);
}


/* =========================================
   کارت پیام
========================================= */

.chat-message-card{
    position:relative;

    padding:17px 18px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.92),
            rgba(15,23,42,.88)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:18px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.16);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.chat-message-card:hover{
    transform:translateY(-2px);

    border-color:rgba(56,189,248,.18);

    box-shadow:
        0 12px 30px rgba(0,0,0,.22);
}


/* پیام دبیر */

.teacher-chat-message{
    border-right:4px solid #38bdf8;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.96),
            rgba(14,38,58,.88)
        );
}


.teacher-chat-message:hover{
    border-color:#38bdf8;
}


/* =========================================
   سربرگ پیام
========================================= */

.chat-message-header{
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    margin-bottom:13px;
}


.chat-user-info{
    display:flex;

    align-items:center;

    gap:11px;

    min-width:0;
}


.chat-user-avatar{
    min-width:43px;

    width:43px;
    height:43px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:13px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.10),
            rgba(99,102,241,.10)
        );

    border:1px solid rgba(56,189,248,.10);

    font-size:20px;
}


.chat-user-details{
    display:flex;

    flex-direction:column;

    gap:5px;

    min-width:0;
}


.chat-user-details strong{
    color:#f8fafc;

    font-size:14px;

    word-break:break-word;
}


/* Badge دبیر */

.chat-teacher-badge{
    align-self:flex-start;

    display:inline-flex;

    align-items:center;

    padding:3px 8px;

    border-radius:7px;

    background:rgba(56,189,248,.10);

    border:1px solid rgba(56,189,248,.15);

    color:#7dd3fc;

    font-size:10px;

    font-weight:bold;
}


/* Badge دانش‌آموز */

.chat-student-badge{
    align-self:flex-start;

    display:inline-flex;

    align-items:center;

    padding:3px 8px;

    border-radius:7px;

    background:rgba(148,163,184,.07);

    border:1px solid rgba(148,163,184,.10);

    color:#94a3b8;

    font-size:10px;

    font-weight:bold;
}


/* زمان */

.chat-message-time{
    flex-shrink:0;

    color:#64748b;

    font-size:11px;

    white-space:nowrap;
}


/* =========================================
   متن پیام
========================================= */

.chat-message-text{
    padding:13px 15px;

    border-radius:13px;

    background:rgba(15,23,42,.58);

    border:1px solid rgba(148,163,184,.07);

    color:#cbd5e1;

    font-size:14px;

    line-height:2;

    word-break:break-word;

    white-space:normal;
}


/* =========================================
   عملیات
========================================= */

.chat-message-actions{
    display:flex;

    justify-content:flex-start;

    margin-top:11px;
}


.chat-delete-button{
    display:flex;

    align-items:center;
    justify-content:center;

    padding:8px 12px;

    border-radius:9px;

    background:rgba(239,68,68,.07);

    border:1px solid rgba(239,68,68,.12);

    color:#fca5a5;

    font-family:"Farhang2", sans-serif;

    font-size:11px;

    cursor:pointer;

    transition:.25s ease;
}


.chat-delete-button:hover{
    background:rgba(239,68,68,.14);

    border-color:rgba(239,68,68,.22);

    color:#fecaca;

    transform:translateY(-2px);
}


/* =========================================
   حالت خالی
========================================= */

.class-chat-empty{
    min-height:400px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;
}


.class-chat-empty-icon{
    width:78px;
    height:78px;

    display:flex;

    align-items:center;
    justify-content:center;

    margin-bottom:18px;

    border-radius:23px;

    background:rgba(56,189,248,.08);

    border:1px solid rgba(56,189,248,.12);

    font-size:35px;
}


.class-chat-empty h2{
    margin:0 0 8px;

    color:#f8fafc;

    font-size:19px;
}


.class-chat-empty p{
    margin:0;

    color:#64748b;

    font-size:13px;
}


/* =========================================
   پایین صفحه
========================================= */

.class-chat-footer{
    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:12px;

    margin-top:25px;
}


.chat-footer-button{
    display:flex;

    align-items:center;
    justify-content:center;

    min-width:180px;

    padding:12px 20px;

    box-sizing:border-box;

    border-radius:13px;

    text-decoration:none !important;

    font-size:13px;

    font-weight:bold;

    transition:.3s ease;
}


.secondary-chat-button{
    background:rgba(255,255,255,.05);

    border:1px solid rgba(148,163,184,.12);

    color:#cbd5e1 !important;
}


.secondary-chat-button:hover{
    background:rgba(56,189,248,.08);

    border-color:rgba(56,189,248,.20);

    color:#38bdf8 !important;

    transform:translateY(-3px);
}


.dashboard-chat-button{
    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );

    color:white !important;

    box-shadow:
        0 8px 22px rgba(56,189,248,.15);
}


.dashboard-chat-button:hover{
    color:white !important;

    transform:translateY(-3px);

    box-shadow:
        0 13px 30px rgba(56,189,248,.25);
}


/* =========================================
   موبایل
========================================= */

@media(max-width:768px){

    .class-chat-page{
        padding:15px 8px 35px;
    }


    .class-chat-header{
        flex-direction:column;

        text-align:center;

        padding:23px 18px;
    }


    .class-chat-header-content{
        text-align:center;
    }


    .class-chat-header-content h1{
        font-size:19px;
    }


    .class-chat-admin-badge{
        width:100%;
    }


    .class-chat-messages{
        min-height:400px;

        max-height:600px;

        padding:15px;

        border-radius:20px;
    }


    .chat-message-card{
        padding:15px;

        border-radius:16px;
    }


    .chat-message-header{
        align-items:flex-start;

        flex-direction:column;

        gap:9px;
    }


    .chat-message-time{
        margin-right:54px;
    }


    .chat-message-text{
        font-size:13px;

        line-height:1.9;
    }


    .class-chat-footer{
        flex-direction:column;
    }


    .chat-footer-button{
        width:100%;
    }

}



/* =========================================
   چت کلاسی کاربران
========================================= */

.student-chat-page{
    width:100%;

    max-width:1050px;

    margin:0 auto;

    padding:30px 15px 50px;

    box-sizing:border-box;
}


/* =========================================
   هدر
========================================= */

.student-chat-header{
    position:relative;

    display:flex;

    align-items:center;

    gap:18px;

    padding:24px 28px;

    margin-bottom:20px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.96),
            rgba(15,23,42,.92)
        );

    border:1px solid rgba(148,163,184,.12);

    border-radius:24px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.28);

    overflow:hidden;
}


.student-chat-header::before{
    content:"";

    position:absolute;

    width:220px;
    height:220px;

    top:-130px;
    left:-80px;

    background:rgba(56,189,248,.10);

    border-radius:50%;

    filter:blur(30px);
}


.student-chat-header-icon{
    position:relative;

    z-index:1;

    min-width:68px;

    width:68px;
    height:68px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.15),
            rgba(99,102,241,.15)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:31px;
}


.student-chat-header-content{
    position:relative;

    z-index:1;

    flex:1;

    min-width:0;
}


.student-chat-header-content > span{
    color:#64748b;

    font-size:12px;
}


.student-chat-header-content h1{
    margin:5px 0 5px;

    color:#f8fafc;

    font-size:22px;

    line-height:1.7;
}


.student-chat-header-content p{
    margin:0;

    color:#94a3b8;

    font-size:13px;
}


.student-chat-header-content strong{
    color:#38bdf8;
}


.student-chat-online-badge{
    position:relative;

    z-index:1;

    display:flex;

    align-items:center;

    gap:7px;

    padding:10px 15px;

    border-radius:12px;

    background:rgba(34,197,94,.07);

    border:1px solid rgba(34,197,94,.13);

    color:#86efac;

    font-size:12px;

    font-weight:bold;
}


.chat-online-dot{
    width:8px;
    height:8px;

    border-radius:50%;

    background:#4ade80;

    box-shadow:
        0 0 10px rgba(74,222,128,.55);
}


/* =========================================
   محفظه پیام‌ها
========================================= */

.student-chat-messages{
    display:flex;

    flex-direction:column;

    gap:14px;

    min-height:450px;

    max-height:650px;

    padding:22px;

    box-sizing:border-box;

    overflow-y:auto;

    background:
        linear-gradient(
            145deg,
            rgba(15,23,42,.88),
            rgba(15,23,42,.75)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.22);

    scrollbar-width:thin;

    scrollbar-color:
        rgba(56,189,248,.35)
        transparent;
}


.student-chat-messages::-webkit-scrollbar{
    width:7px;
}


.student-chat-messages::-webkit-scrollbar-track{
    background:transparent;
}


.student-chat-messages::-webkit-scrollbar-thumb{
    background:rgba(56,189,248,.30);

    border-radius:20px;
}


/* =========================================
   پیام
========================================= */

.student-chat-message{
    position:relative;

    max-width:82%;

    padding:15px 17px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.94),
            rgba(15,23,42,.90)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:18px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.15);

    transition:.25s ease;
}


.student-chat-message:hover{
    transform:translateY(-2px);

    border-color:rgba(56,189,248,.17);

    box-shadow:
        0 12px 30px rgba(0,0,0,.20);
}


/* پیام من */

.my-message{
    align-self:flex-start;

    border-right:4px solid #38bdf8;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.96),
            rgba(14,38,58,.90)
        );
}


/* پیام دیگران */

.other-message{
    align-self:flex-end;

    border-right:4px solid #64748b;
}


/* پیام دبیر */

.teacher-chat-bubble{
    border-right:4px solid #f59e0b;

    background:
        linear-gradient(
            145deg,
            rgba(45,41,30,.94),
            rgba(30,27,20,.90)
        );
}


.teacher-chat-bubble:hover{
    border-color:#f59e0b;
}


/* =========================================
   بالای پیام
========================================= */

.student-chat-message-top{
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    margin-bottom:12px;
}


.student-chat-sender{
    display:flex;

    align-items:center;

    gap:10px;

    min-width:0;
}


.student-chat-avatar{
    min-width:40px;

    width:40px;
    height:40px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.10),
            rgba(99,102,241,.10)
        );

    border:1px solid rgba(56,189,248,.10);

    font-size:19px;
}


.student-chat-sender-info{
    display:flex;

    flex-direction:column;

    gap:5px;

    min-width:0;
}


.student-chat-sender-info strong{
    color:#f8fafc;

    font-size:13px;

    word-break:break-word;
}


/* Badge */

.chat-role-badge{
    align-self:flex-start;

    display:inline-flex;

    align-items:center;

    padding:3px 8px;

    border-radius:7px;

    font-size:9px;

    font-weight:bold;
}


.teacher-role-badge{
    background:rgba(245,158,11,.10);

    border:1px solid rgba(245,158,11,.15);

    color:#fcd34d;
}


.student-role-badge{
    background:rgba(148,163,184,.07);

    border:1px solid rgba(148,163,184,.10);

    color:#94a3b8;
}


/* زمان */

.student-chat-time{
    flex-shrink:0;

    color:#64748b;

    font-size:10px;

    white-space:nowrap;
}


/* =========================================
   متن
========================================= */

.student-chat-message-text{
    padding:12px 14px;

    border-radius:12px;

    background:rgba(15,23,42,.52);

    border:1px solid rgba(148,163,184,.06);

    color:#cbd5e1;

    font-size:13px;

    line-height:2;

    word-break:break-word;
}


/* =========================================
   حذف
========================================= */

.student-chat-delete-button{
    display:flex;

    align-items:center;
    justify-content:center;

    margin-top:10px;

    padding:7px 11px;

    border-radius:9px;

    background:rgba(239,68,68,.07);

    border:1px solid rgba(239,68,68,.12);

    color:#fca5a5;

    font-family:"Farhang2", sans-serif;

    font-size:10px;

    cursor:pointer;

    transition:.25s ease;
}


.student-chat-delete-button:hover{
    background:rgba(239,68,68,.14);

    color:#fecaca;

    transform:translateY(-2px);
}


/* =========================================
   فرم ارسال
========================================= */

.student-chat-form-card{
    margin-top:18px;

    padding:18px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.91)
        );

    border:1px solid rgba(148,163,184,.11);

    border-radius:22px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.22);
}


.student-chat-input-wrapper{
    padding:3px;

    border-radius:16px;

    background:rgba(15,23,42,.55);

    border:1px solid rgba(148,163,184,.10);

    overflow:hidden;
}


.student-chat-input-wrapper textarea{
    display:block;

    width:100%;

    min-height:85px;

    max-height:220px;

    box-sizing:border-box;

    padding:14px 15px;

    resize:vertical;

    border:none;

    outline:none;

    background:transparent;

    color:#f8fafc;

    font-family:"Farhang2", sans-serif;

    font-size:14px;

    line-height:1.9;
}


.student-chat-input-wrapper textarea::placeholder{
    color:#64748b;
}


.student-chat-input-wrapper textarea:focus{
    box-shadow:none;
}


/* پایین فرم */

.student-chat-input-footer{
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    padding:8px 10px 9px;
}


.student-chat-limit{
    color:#64748b;

    font-size:10px;
}


/* دکمه ارسال */

.student-chat-send-button{
    display:flex;

    align-items:center;
    justify-content:center;

    padding:11px 19px;

    border:none;

    border-radius:11px;

    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );

    color:white;

    font-family:"Farhang2", sans-serif;

    font-size:13px;

    font-weight:bold;

    cursor:pointer;

    box-shadow:
        0 7px 20px rgba(56,189,248,.15);

    transition:.3s ease;
}


.student-chat-send-button:hover{
    transform:translateY(-2px);

    box-shadow:
        0 11px 27px rgba(56,189,248,.25);
}


/* وضعیت ارسال */

.student-chat-send-status{
    min-height:20px;

    margin-top:7px;

    text-align:center;

    color:#94a3b8;

    font-size:11px;
}


/* =========================================
   حالت خالی
========================================= */

.student-chat-empty{
    min-height:400px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;
}


.student-chat-empty-icon{
    width:78px;
    height:78px;

    display:flex;

    align-items:center;
    justify-content:center;

    margin-bottom:18px;

    border-radius:23px;

    background:rgba(56,189,248,.08);

    border:1px solid rgba(56,189,248,.12);

    font-size:35px;
}


.student-chat-empty h2{
    margin:0 0 8px;

    color:#f8fafc;

    font-size:19px;
}


.student-chat-empty p{
    margin:0;

    color:#64748b;

    font-size:13px;
}


/* خطا */

.student-chat-error{
    min-height:400px;

    display:flex;

    flex-direction:column;

    align-items:center;
    justify-content:center;

    text-align:center;

    color:#fca5a5;
}


.student-chat-error div{
    font-size:35px;

    margin-bottom:10px;
}


/* =========================================
   پایین صفحه
========================================= */

.student-chat-footer{
    display:flex;

    justify-content:center;

    margin-top:18px;
}


.student-chat-back-button{
    display:flex;

    align-items:center;
    justify-content:center;

    min-width:150px;

    padding:11px 20px;

    border-radius:12px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(148,163,184,.12);

    color:#cbd5e1 !important;

    text-decoration:none !important;

    font-size:13px;

    font-weight:bold;

    transition:.3s ease;
}


.student-chat-back-button:hover{
    transform:translateY(-2px);

    background:rgba(56,189,248,.08);

    border-color:rgba(56,189,248,.20);

    color:#38bdf8 !important;
}


/* =========================================
   موبایل
========================================= */

@media(max-width:768px){

    .student-chat-page{
        padding:15px 8px 35px;
    }


    .student-chat-header{
        flex-direction:column;

        text-align:center;

        padding:22px 17px;
    }


    .student-chat-header-content{
        text-align:center;
    }


    .student-chat-header-content h1{
        font-size:19px;
    }


    .student-chat-online-badge{
        width:100%;

        justify-content:center;
    }


    .student-chat-messages{
        min-height:420px;

        max-height:600px;

        padding:15px;

        border-radius:20px;
    }


    .student-chat-message{
        max-width:94%;

        padding:13px;
    }


    .student-chat-message-top{
        align-items:flex-start;

        flex-direction:column;

        gap:8px;
    }


    .student-chat-time{
        margin-right:50px;
    }


    .student-chat-input-footer{
        align-items:stretch;

        flex-direction:column;
    }


    .student-chat-limit{
        text-align:center;
    }


    .student-chat-send-button{
        width:100%;
    }

}



/* =========================================
   صفحه ورود کاربران
========================================= */

.modern-login-page{
    width:100%;

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    box-sizing:border-box;

    padding:30px 15px;

    position:relative;
}


/* نور پس‌زمینه */

.modern-login-page::before{
    content:"";

    position:fixed;

    width:420px;
    height:420px;

    top:-180px;
    left:-120px;

    background:rgba(56,189,248,.08);

    border-radius:50%;

    filter:blur(70px);

    pointer-events:none;
}


.modern-login-page::after{
    content:"";

    position:fixed;

    width:350px;
    height:350px;

    bottom:-150px;
    right:-100px;

    background:rgba(99,102,241,.07);

    border-radius:50%;

    filter:blur(70px);

    pointer-events:none;
}


/* =========================================
   کارت اصلی
========================================= */

.modern-login-card{
    position:relative;

    z-index:1;

    width:100%;

    max-width:460px;

    box-sizing:border-box;

    padding:38px 35px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.96),
            rgba(15,23,42,.93)
        );

    border:1px solid rgba(148,163,184,.12);

    border-radius:28px;

    box-shadow:
        0 25px 70px rgba(0,0,0,.35);

    backdrop-filter:blur(18px);
}


/* =========================================
   آیکون
========================================= */

.modern-login-icon{
    width:78px;
    height:78px;

    display:flex;

    align-items:center;
    justify-content:center;

    margin:0 auto 20px;

    border-radius:24px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.15),
            rgba(99,102,241,.15)
        );

    border:1px solid rgba(56,189,248,.14);

    font-size:34px;

    box-shadow:
        0 12px 30px rgba(56,189,248,.08);
}


/* =========================================
   عنوان
========================================= */

.modern-login-header{
    text-align:center;

    margin-bottom:28px;
}


.modern-login-header span{
    color:#64748b;

    font-size:12px;
}


.modern-login-header h1{
    margin:7px 0 8px;

    color:#f8fafc;

    font-size:27px;
}


.modern-login-header p{
    margin:0;

    color:#94a3b8;

    font-size:13px;

    line-height:1.9;
}


/* =========================================
   خطا
========================================= */

.modern-login-error{
    display:flex;

    align-items:center;

    gap:10px;

    padding:13px 15px;

    margin-bottom:20px;

    border-radius:13px;

    background:rgba(239,68,68,.08);

    border:1px solid rgba(239,68,68,.16);

    color:#fca5a5;

    font-size:12px;

    line-height:1.8;
}


.modern-login-error-icon{
    font-size:18px;

    flex-shrink:0;
}


/* =========================================
   فرم
========================================= */

.modern-login-form{
    display:flex;

    flex-direction:column;

    gap:20px;
}


.modern-login-group{
    display:flex;

    flex-direction:column;

    gap:9px;
}


.modern-login-group label{
    color:#cbd5e1;

    font-size:13px;

    font-weight:bold;
}


/* =========================================
   ورودی
========================================= */

.modern-login-input-wrapper{
    position:relative;
}


.modern-login-input-icon{
    position:absolute;

    right:14px;

    top:50%;

    transform:translateY(-50%);

    color:#64748b;

    font-size:16px;

    pointer-events:none;
}


.modern-login-input-wrapper input{
    width:100%;

    box-sizing:border-box;

    padding:14px 45px 14px 15px;

    border-radius:14px;

    border:1px solid rgba(148,163,184,.14);

    background:rgba(15,23,42,.78);

    color:#f8fafc;

    font-family:"Farhang2", sans-serif;

    font-size:13px;

    outline:none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.modern-login-input-wrapper input::placeholder{
    color:#64748b;
}


.modern-login-input-wrapper input:hover{
    border-color:rgba(148,163,184,.25);
}


.modern-login-input-wrapper input:focus{
    border-color:rgba(56,189,248,.55);

    background:rgba(15,23,42,.95);

    box-shadow:
        0 0 0 3px rgba(56,189,248,.08),
        0 8px 25px rgba(0,0,0,.15);
}


/* =========================================
   دکمه ورود
========================================= */

.modern-login-button{
    width:100%;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    margin-top:4px;

    padding:15px 20px;

    border:none;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );

    color:white;

    font-family:"Farhang2", sans-serif;

    font-size:14px;

    font-weight:bold;

    cursor:pointer;

    box-shadow:
        0 10px 28px rgba(56,189,248,.18);

    transition:.3s ease;
}


.modern-login-button:hover{
    transform:translateY(-3px);

    box-shadow:
        0 16px 38px rgba(56,189,248,.28);
}


.modern-login-button:active{
    transform:translateY(-1px);
}


.modern-login-arrow{
    font-size:18px;

    transition:.3s ease;
}


.modern-login-button:hover
.modern-login-arrow{
    transform:translateX(-4px);
}


/* =========================================
   پیام امنیت
========================================= */

.modern-login-info{
    display:flex;

    align-items:center;
    justify-content:center;

    gap:7px;

    margin-top:20px;

    color:#64748b;

    font-size:10px;
}


.modern-login-info span{
    font-size:12px;
}


/* =========================================
   بازگشت
========================================= */

.modern-login-back{
    display:flex;

    align-items:center;
    justify-content:center;

    margin-top:20px;

    padding-top:18px;

    border-top:1px solid rgba(148,163,184,.08);

    color:#94a3b8 !important;

    text-decoration:none !important;

    font-size:12px;

    transition:.25s ease;
}


.modern-login-back:hover{
    color:#38bdf8 !important;
}


/* =========================================
   موبایل
========================================= */

@media(max-width:600px){

    .modern-login-page{
        padding:20px 10px;
    }


    .modern-login-card{
        padding:30px 20px;

        border-radius:23px;
    }


    .modern-login-icon{
        width:68px;
        height:68px;

        border-radius:20px;

        font-size:29px;
    }


    .modern-login-header h1{
        font-size:23px;
    }


    .modern-login-header p{
        font-size:12px;
    }

}



/* =========================================
   داشبورد دانش‌آموز
========================================= */

.student-dashboard{
    width:100%;

    max-width:1250px;

    margin:0 auto;

    padding:30px 15px 60px;

    box-sizing:border-box;
}


/* =========================================
   سربرگ
========================================= */

.student-dashboard-header{
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    padding:27px 30px;

    margin-bottom:22px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.91)
        );

    border:1px solid rgba(148,163,184,.12);

    border-radius:25px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.28);

    backdrop-filter:blur(15px);
}


.student-dashboard-welcome{
    display:flex;

    align-items:center;

    gap:18px;

    min-width:0;
}


.student-dashboard-avatar{
    min-width:68px;

    width:68px;
    height:68px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.15),
            rgba(99,102,241,.15)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:32px;
}


.student-dashboard-label{
    color:#64748b;

    font-size:12px;
}


.student-dashboard-header h1{
    margin:5px 0 5px;

    color:#f8fafc;

    font-size:24px;
}


.student-dashboard-header h1 strong{
    color:#38bdf8;
}


.student-dashboard-header p{
    margin:0;

    color:#94a3b8;

    font-size:13px;
}


.student-dashboard-header p strong{
    color:#cbd5e1;
}


.student-dashboard-role-badge{
    padding:11px 16px;

    border-radius:13px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.13);

    color:#7dd3fc;

    font-size:12px;

    font-weight:bold;

    white-space:nowrap;
}


/* =========================================
   آمار
========================================= */

.student-dashboard-stats{
    display:grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap:18px;

    margin-bottom:25px;
}


.student-stat-card{
    display:flex;

    align-items:center;

    gap:15px;

    padding:19px 21px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.92),
            rgba(15,23,42,.88)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:19px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.20);
}


.student-stat-icon{
    min-width:48px;

    width:48px;
    height:48px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:15px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.11),
            rgba(99,102,241,.11)
        );

    border:1px solid rgba(56,189,248,.10);

    font-size:21px;
}


.student-stat-card span{
    display:block;

    color:#64748b;

    font-size:11px;

    margin-bottom:4px;
}


.student-stat-card strong{
    color:#f8fafc;

    font-size:16px;
}


/* =========================================
   بخش‌ها
========================================= */

.student-dashboard-section{
    margin-bottom:25px;

    padding:25px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.92),
            rgba(15,23,42,.88)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.22);
}


.student-section-header{
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    padding-bottom:18px;

    margin-bottom:18px;

    border-bottom:1px solid rgba(148,163,184,.08);
}


.student-section-header span{
    color:#64748b;

    font-size:11px;
}


.student-section-header h2{
    margin:5px 0 0;

    color:#f8fafc;

    font-size:19px;
}


.student-section-link{
    color:#38bdf8 !important;

    text-decoration:none !important;

    font-size:12px;

    font-weight:bold;

    transition:.25s ease;
}


.student-section-link:hover{
    color:#7dd3fc !important;

    transform:translateX(-3px);
}


/* =========================================
   لیست اخبار و تکالیف
========================================= */

.student-dashboard-list{
    display:flex;

    flex-direction:column;

    gap:10px;
}


.student-news-item,
.student-homework-item{
    display:flex;

    align-items:center;

    gap:13px;

    padding:13px 15px;

    border-radius:14px;

    background:rgba(15,23,42,.55);

    border:1px solid rgba(148,163,184,.07);

    transition:.25s ease;
}


.student-news-item:hover,
.student-homework-item:hover{
    transform:translateX(-3px);

    border-color:rgba(56,189,248,.16);

    background:rgba(56,189,248,.04);
}


.student-news-icon,
.student-homework-icon{
    min-width:42px;

    width:42px;
    height:42px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:12px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.09);

    font-size:18px;
}


.student-news-content,
.student-homework-content{
    display:flex;

    flex-direction:column;

    gap:4px;

    min-width:0;
}


.student-news-content strong,
.student-homework-content strong{
    color:#e2e8f0;

    font-size:13px;

    word-break:break-word;
}


.student-news-content span,
.student-homework-content span{
    color:#64748b;

    font-size:10px;
}


.student-dashboard-empty{
    display:flex;

    align-items:center;
    justify-content:center;

    flex-direction:column;

    padding:30px 15px;

    text-align:center;

    color:#64748b;
}


.student-dashboard-empty div{
    font-size:30px;

    margin-bottom:10px;
}


.student-dashboard-empty p{
    margin:0;

    font-size:12px;
}


/* =========================================
   کارت امکانات
========================================= */

.student-dashboard-grid{
    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px,1fr)
        );

    gap:17px;
}


.student-dashboard-card{
    position:relative;

    display:flex;

    align-items:center;

    gap:14px;

    min-height:105px;

    padding:20px;

    box-sizing:border-box;

    color:white !important;

    text-decoration:none !important;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.90)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:19px;

    overflow:hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.17);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.student-dashboard-card::before{
    content:"";

    position:absolute;

    width:120px;
    height:120px;

    top:-65px;
    left:-65px;

    border-radius:50%;

    background:rgba(56,189,248,.08);

    filter:blur(20px);

    transition:.3s ease;
}


.student-dashboard-card:hover{
    transform:translateY(-6px);

    border-color:rgba(56,189,248,.24);

    box-shadow:
        0 18px 40px rgba(0,0,0,.28),
        0 0 25px rgba(56,189,248,.05);
}


.student-dashboard-card:hover::before{
    transform:scale(1.5);

    background:rgba(99,102,241,.12);
}


.student-card-icon{
    position:relative;

    z-index:1;

    min-width:54px;

    width:54px;
    height:54px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:16px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.13),
            rgba(99,102,241,.13)
        );

    border:1px solid rgba(56,189,248,.11);

    font-size:24px;

    transition:.3s ease;
}


.student-dashboard-card:hover
.student-card-icon{
    transform:scale(1.08) rotate(-3deg);
}


.student-card-content{
    position:relative;

    z-index:1;

    flex:1;

    min-width:0;
}


.student-card-content h3{
    margin:0 0 5px;

    color:#f8fafc;

    font-size:15px;
}


.student-card-content p{
    margin:0;

    color:#64748b;

    font-size:11px;

    line-height:1.8;
}


.student-card-arrow{
    position:relative;

    z-index:1;

    min-width:34px;

    width:34px;
    height:34px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:rgba(255,255,255,.04);

    color:#38bdf8;

    font-size:17px;

    transition:.3s ease;
}


.student-dashboard-card:hover
.student-card-arrow{
    transform:translateX(-4px);

    background:rgba(56,189,248,.10);
}


/* =========================================
   مدیر تکالیف
========================================= */

.homework-manager-section{
    border-color:rgba(139,92,246,.14);
}


.homework-manager-badge{
    padding:9px 13px;

    border-radius:11px;

    background:rgba(139,92,246,.08);

    border:1px solid rgba(139,92,246,.14);

    color:#c4b5fd;

    font-size:11px;

    font-weight:bold;

    white-space:nowrap;
}


.homework-manager-notice{
    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:17px;

    padding:13px 15px;

    border-radius:13px;

    background:rgba(139,92,246,.06);

    border:1px solid rgba(139,92,246,.10);

    color:#a78bfa;

    font-size:11px;
}


.homework-manager-notice p{
    margin:0;

    color:#94a3b8;

    line-height:1.8;
}


.manager-card{
    border-color:rgba(139,92,246,.12);
}


.manager-card:hover{
    border-color:rgba(139,92,246,.30);
}


/* =========================================
   خروج
========================================= */

.student-dashboard-logout-section{
    display:flex;

    justify-content:center;

    margin-top:30px;
}


.student-dashboard-logout{
    display:flex;

    align-items:center;
    justify-content:center;

    gap:9px;

    min-width:170px;

    padding:13px 22px;

    border-radius:14px;

    background:rgba(239,68,68,.06);

    border:1px solid rgba(239,68,68,.12);

    color:#fca5a5 !important;

    text-decoration:none !important;

    font-size:13px;

    font-weight:bold;

    transition:.3s ease;
}


.student-dashboard-logout:hover{
    transform:translateY(-3px);

    background:rgba(239,68,68,.11);

    border-color:rgba(239,68,68,.22);

    color:#fecaca !important;

    box-shadow:
        0 10px 25px rgba(239,68,68,.08);
}


/* =========================================
   موبایل
========================================= */

@media(max-width:768px){

    .student-dashboard{
        padding:15px 8px 40px;
    }


    .student-dashboard-header{
        flex-direction:column;

        align-items:stretch;

        text-align:center;

        padding:23px 18px;
    }


    .student-dashboard-welcome{
        flex-direction:column;

        text-align:center;
    }


    .student-dashboard-header h1{
        font-size:21px;
    }


    .student-dashboard-role-badge{
        width:100%;

        box-sizing:border-box;

        text-align:center;
    }


    .student-dashboard-stats{
        grid-template-columns:1fr;

        gap:10px;
    }


    .student-dashboard-section{
        padding:18px 14px;

        border-radius:20px;
    }


    .student-section-header{
        align-items:flex-start;

        flex-direction:column;

        gap:10px;
    }


    .student-dashboard-grid{
        grid-template-columns:1fr;
    }


    .student-dashboard-card{
        min-height:95px;

        padding:17px;
    }


    .homework-manager-badge{
        width:100%;

        box-sizing:border-box;

        text-align:center;
    }

}



/* =========================================
   داشبورد دبیر
========================================= */

.teacher-dashboard{
    width:100%;

    max-width:1250px;

    margin:0 auto;

    padding:30px 15px 60px;

    box-sizing:border-box;
}


/* =========================================
   سربرگ
========================================= */

.teacher-dashboard-header{
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    padding:27px 30px;

    margin-bottom:22px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.91)
        );

    border:1px solid rgba(148,163,184,.12);

    border-radius:25px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.28);

    backdrop-filter:blur(15px);
}


.teacher-dashboard-welcome{
    display:flex;

    align-items:center;

    gap:18px;

    min-width:0;
}


.teacher-dashboard-avatar{
    min-width:68px;

    width:68px;
    height:68px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:
        linear-gradient(
            135deg,
            rgba(245,158,11,.14),
            rgba(234,88,12,.12)
        );

    border:1px solid rgba(245,158,11,.13);

    font-size:32px;
}


.teacher-dashboard-label{
    color:#64748b;

    font-size:12px;
}


.teacher-dashboard-header h1{
    margin:5px 0 5px;

    color:#f8fafc;

    font-size:24px;
}


.teacher-dashboard-header h1 strong{
    color:#fbbf24;
}


.teacher-dashboard-header p{
    margin:0;

    color:#94a3b8;

    font-size:13px;
}


.teacher-dashboard-role-badge{
    padding:11px 16px;

    border-radius:13px;

    background:rgba(245,158,11,.07);

    border:1px solid rgba(245,158,11,.13);

    color:#fcd34d;

    font-size:12px;

    font-weight:bold;

    white-space:nowrap;
}


/* =========================================
   آمار
========================================= */

.teacher-dashboard-stats{
    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:18px;

    margin-bottom:25px;
}


.teacher-stat-card{
    display:flex;

    align-items:center;

    gap:15px;

    padding:19px 21px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.92),
            rgba(15,23,42,.88)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:19px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.20);
}


.teacher-stat-icon{
    min-width:48px;

    width:48px;
    height:48px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:15px;

    background:
        linear-gradient(
            135deg,
            rgba(245,158,11,.10),
            rgba(234,88,12,.09)
        );

    border:1px solid rgba(245,158,11,.10);

    font-size:21px;
}


.teacher-stat-card span{
    display:block;

    color:#64748b;

    font-size:11px;

    margin-bottom:4px;
}


.teacher-stat-card strong{
    color:#f8fafc;

    font-size:16px;
}


/* =========================================
   بخش درس‌ها
========================================= */

.teacher-dashboard-section{
    padding:25px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.92),
            rgba(15,23,42,.88)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.22);
}


.teacher-section-header{
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    padding-bottom:18px;

    margin-bottom:20px;

    border-bottom:1px solid rgba(148,163,184,.08);
}


.teacher-section-header span{
    color:#64748b;

    font-size:11px;
}


.teacher-section-header h2{
    margin:5px 0 0;

    color:#f8fafc;

    font-size:19px;
}


.teacher-section-badge{
    padding:8px 14px;

    border-radius:10px;

    background:rgba(34,197,94,.07);

    border:1px solid rgba(34,197,94,.12);

    color:#86efac;

    font-size:11px;

    font-weight:bold;
}


/* =========================================
   کارت‌های درس
========================================= */

.teacher-lessons-grid{
    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px,1fr)
        );

    gap:18px;
}


.teacher-lesson-card{
    position:relative;

    display:flex;

    flex-direction:column;

    padding:21px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.90)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:20px;

    overflow:hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.18);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.teacher-lesson-card::before{
    content:"";

    position:absolute;

    width:130px;
    height:130px;

    top:-70px;
    left:-60px;

    border-radius:50%;

    background:rgba(245,158,11,.07);

    filter:blur(22px);

    transition:.3s ease;
}


.teacher-lesson-card:hover{
    transform:translateY(-6px);

    border-color:rgba(245,158,11,.23);

    box-shadow:
        0 20px 40px rgba(0,0,0,.27);
}


.teacher-lesson-card:hover::before{
    transform:scale(1.5);

    background:rgba(245,158,11,.11);
}


/* =========================================
   بالای کارت
========================================= */

.teacher-lesson-top{
    position:relative;

    z-index:1;

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:18px;
}


.teacher-lesson-number{
    width:34px;
    height:34px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:10px;

    background:rgba(245,158,11,.08);

    border:1px solid rgba(245,158,11,.12);

    color:#fbbf24;

    font-size:12px;

    font-weight:bold;
}


.teacher-lesson-icon{
    width:48px;
    height:48px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:15px;

    background:
        linear-gradient(
            135deg,
            rgba(245,158,11,.11),
            rgba(234,88,12,.10)
        );

    border:1px solid rgba(245,158,11,.10);

    font-size:22px;

    transition:.3s ease;
}


.teacher-lesson-card:hover
.teacher-lesson-icon{
    transform:scale(1.08) rotate(-3deg);
}


/* =========================================
   محتوای درس
========================================= */

.teacher-lesson-content{
    position:relative;

    z-index:1;

    flex:1;
}


.teacher-lesson-label{
    color:#64748b;

    font-size:10px;
}


.teacher-lesson-content h3{
    margin:5px 0 15px;

    color:#f8fafc;

    font-size:18px;

    line-height:1.7;
}


.teacher-lesson-class{
    display:flex;

    align-items:center;

    gap:6px;

    padding:10px 11px;

    border-radius:11px;

    background:rgba(15,23,42,.55);

    border:1px solid rgba(148,163,184,.07);

    color:#94a3b8;

    font-size:11px;
}


.teacher-lesson-class strong{
    color:#cbd5e1;

    font-size:11px;
}


/* =========================================
   دکمه‌های درس
========================================= */

.teacher-lesson-actions{
    position:relative;

    z-index:1;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:9px;

    margin-top:18px;

    padding-top:17px;

    border-top:1px solid rgba(148,163,184,.08);
}


.teacher-add-homework-button,
.teacher-view-homework-button{
    display:flex;

    align-items:center;

    justify-content:center;

    gap:5px;

    padding:11px 8px;

    border-radius:11px;

    text-decoration:none !important;

    font-family:"Farhang2", sans-serif;

    font-size:11px;

    font-weight:bold;

    transition:.3s ease;
}


.teacher-add-homework-button{
    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );

    color:white !important;

    box-shadow:
        0 6px 18px rgba(56,189,248,.13);
}


.teacher-add-homework-button:hover{
    transform:translateY(-2px);

    color:white !important;

    box-shadow:
        0 10px 25px rgba(56,189,248,.22);
}


.teacher-view-homework-button{
    background:rgba(255,255,255,.05);

    border:1px solid rgba(148,163,184,.12);

    color:#cbd5e1 !important;
}


.teacher-view-homework-button:hover{
    transform:translateY(-2px);

    background:rgba(245,158,11,.07);

    border-color:rgba(245,158,11,.16);

    color:#fbbf24 !important;
}


/* =========================================
   حالت بدون درس
========================================= */

.teacher-empty-state{
    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:50px 20px;
}


.teacher-empty-icon{
    width:78px;
    height:78px;

    display:flex;

    align-items:center;
    justify-content:center;

    margin-bottom:18px;

    border-radius:23px;

    background:rgba(245,158,11,.07);

    border:1px solid rgba(245,158,11,.11);

    font-size:35px;
}


.teacher-empty-state h2{
    margin:0 0 9px;

    color:#f8fafc;

    font-size:19px;
}


.teacher-empty-state p{
    margin:0 0 18px;

    color:#64748b;

    font-size:12px;
}


.teacher-account-info{
    padding:9px 14px;

    border-radius:10px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(148,163,184,.08);

    color:#64748b;

    font-size:10px;
}


.teacher-account-info strong{
    color:#fbbf24;

    font-size:12px;
}


/* =========================================
   خروج
========================================= */

.teacher-dashboard-footer{
    display:flex;

    justify-content:center;

    margin-top:25px;
}


.teacher-logout-button{
    display:flex;

    align-items:center;
    justify-content:center;

    gap:8px;

    min-width:170px;

    padding:13px 22px;

    border-radius:14px;

    background:rgba(239,68,68,.06);

    border:1px solid rgba(239,68,68,.12);

    color:#fca5a5 !important;

    text-decoration:none !important;

    font-size:13px;

    font-weight:bold;

    transition:.3s ease;
}


.teacher-logout-button:hover{
    transform:translateY(-3px);

    background:rgba(239,68,68,.11);

    border-color:rgba(239,68,68,.22);

    color:#fecaca !important;

    box-shadow:
        0 10px 25px rgba(239,68,68,.08);
}


/* =========================================
   موبایل
========================================= */

@media(max-width:768px){

    .teacher-dashboard{
        padding:15px 8px 40px;
    }


    .teacher-dashboard-header{
        flex-direction:column;

        align-items:stretch;

        text-align:center;

        padding:23px 18px;
    }


    .teacher-dashboard-welcome{
        flex-direction:column;

        text-align:center;
    }


    .teacher-dashboard-header h1{
        font-size:21px;
    }


    .teacher-dashboard-role-badge{
        width:100%;

        box-sizing:border-box;

        text-align:center;
    }


    .teacher-dashboard-stats{
        grid-template-columns:1fr;
    }


    .teacher-dashboard-section{
        padding:18px 14px;

        border-radius:20px;
    }


    .teacher-section-header{
        align-items:flex-start;

        flex-direction:column;
    }


    .teacher-section-badge{
        width:100%;

        box-sizing:border-box;

        text-align:center;
    }


    .teacher-lessons-grid{
        grid-template-columns:1fr;
    }


    .teacher-lesson-actions{
        grid-template-columns:1fr;
    }

}



/* =========================================
   صفحه ثبت تکلیف دبیر
========================================= */

.teacher-homework-page{
    width:100%;

    max-width:1000px;

    margin:0 auto;

    padding:30px 15px 60px;

    box-sizing:border-box;
}


/* =========================================
   Header
========================================= */

.teacher-homework-header{
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    padding:25px 28px;

    margin-bottom:20px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.91)
        );

    border:1px solid rgba(148,163,184,.12);

    border-radius:24px;

    box-shadow:
        0 18px 45px rgba(0,0,0,.25);

    backdrop-filter:blur(15px);
}


.teacher-homework-title-area{
    display:flex;

    align-items:center;

    gap:17px;
}


.teacher-homework-icon{
    min-width:62px;

    width:62px;
    height:62px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:19px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.13),
            rgba(99,102,241,.13)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:29px;
}


.teacher-homework-label{
    color:#64748b;

    font-size:11px;
}


.teacher-homework-header h1{
    margin:4px 0 5px;

    color:#f8fafc;

    font-size:23px;
}


.teacher-homework-header p{
    margin:0;

    color:#94a3b8;

    font-size:12px;
}


.teacher-homework-badge{
    padding:10px 15px;

    border-radius:12px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.12);

    color:#7dd3fc;

    font-size:11px;

    font-weight:bold;

    white-space:nowrap;
}


/* =========================================
   پیام‌ها
========================================= */

.teacher-homework-success,
.teacher-homework-error{
    display:flex;

    align-items:center;

    gap:13px;

    padding:15px 18px;

    margin-bottom:18px;

    border-radius:15px;
}


.teacher-homework-success{
    background:rgba(34,197,94,.07);

    border:1px solid rgba(34,197,94,.13);

    color:#bbf7d0;
}


.teacher-homework-error{
    background:rgba(239,68,68,.07);

    border:1px solid rgba(239,68,68,.13);

    color:#fecaca;
}


.teacher-message-icon{
    min-width:35px;

    width:35px;
    height:35px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:11px;

    font-size:16px;

    font-weight:bold;
}


.teacher-homework-success
.teacher-message-icon{
    background:rgba(34,197,94,.12);

    color:#86efac;
}


.teacher-homework-error
.teacher-message-icon{
    background:rgba(239,68,68,.12);

    color:#fca5a5;
}


.teacher-homework-success strong,
.teacher-homework-error strong{
    display:block;

    margin-bottom:3px;

    font-size:12px;
}


.teacher-homework-success span,
.teacher-homework-error span{
    display:block;

    font-size:11px;

    opacity:.85;
}


/* =========================================
   اطلاعات درس
========================================= */

.teacher-homework-info-card{
    padding:23px;

    margin-bottom:20px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.93),
            rgba(15,23,42,.89)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:22px;

    box-shadow:
        0 14px 35px rgba(0,0,0,.21);
}


.teacher-homework-info-header{
    padding-bottom:17px;

    margin-bottom:17px;

    border-bottom:1px solid rgba(148,163,184,.08);
}


.teacher-homework-info-header span{
    color:#64748b;

    font-size:10px;
}


.teacher-homework-info-header h2{
    margin:5px 0 0;

    color:#f8fafc;

    font-size:19px;
}


.teacher-homework-info-grid{
    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:12px;
}


.teacher-homework-info-item{
    display:flex;

    align-items:center;

    gap:11px;

    padding:13px;

    border-radius:13px;

    background:rgba(15,23,42,.48);

    border:1px solid rgba(148,163,184,.07);
}


.teacher-info-icon{
    width:39px;
    height:39px;

    display:flex;

    align-items:center;
    justify-content:center;

    flex-shrink:0;

    border-radius:11px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.09);

    font-size:17px;
}


.teacher-homework-info-item span{
    display:block;

    color:#64748b;

    font-size:9px;

    margin-bottom:3px;
}


.teacher-homework-info-item strong{
    display:block;

    color:#cbd5e1;

    font-size:11px;
}


/* =========================================
   فرم
========================================= */

.teacher-homework-form-card{
    padding:25px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.93),
            rgba(15,23,42,.89)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:22px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.22);
}


.teacher-form-section-header{
    display:flex;

    align-items:center;

    gap:12px;

    padding-bottom:19px;

    margin-bottom:22px;

    border-bottom:1px solid rgba(148,163,184,.08);
}


.teacher-form-section-icon{
    width:44px;
    height:44px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:13px;

    background:
        linear-gradient(
            135deg,
            rgba(99,102,241,.12),
            rgba(56,189,248,.10)
        );

    border:1px solid rgba(99,102,241,.10);

    font-size:20px;
}


.teacher-form-section-header h2{
    margin:0 0 3px;

    color:#f8fafc;

    font-size:17px;
}


.teacher-form-section-header p{
    margin:0;

    color:#64748b;

    font-size:10px;
}


.teacher-homework-form{
    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:20px;
}


.teacher-form-group{
    display:flex;

    flex-direction:column;
}


.teacher-form-group.full-width{
    grid-column:1 / -1;
}


.teacher-form-group label{
    display:block;

    margin-bottom:9px;

    color:#cbd5e1;

    font-size:12px;

    font-weight:bold;
}


.teacher-form-group textarea,
.teacher-form-group input[type="date"]{
    width:100%;

    box-sizing:border-box;

    padding:13px 14px;

    border-radius:13px;

    background:rgba(15,23,42,.75);

    border:1px solid rgba(148,163,184,.12);

    color:#f8fafc;

    font-family:"Farhang2", sans-serif;

    font-size:12px;

    outline:none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.teacher-form-group textarea{
    min-height:155px;

    resize:vertical;

    line-height:1.9;
}


.teacher-form-group textarea::placeholder{
    color:#475569;
}


.teacher-form-group textarea:focus,
.teacher-form-group input[type="date"]:focus{
    border-color:rgba(56,189,248,.35);

    background:rgba(15,23,42,.92);

    box-shadow:
        0 0 0 3px rgba(56,189,248,.06);
}


.teacher-form-group input[type="date"]{
    color-scheme:dark;

    min-height:47px;
}


.teacher-form-group small{
    margin-top:7px;

    color:#475569;

    font-size:9px;

    line-height:1.7;
}


/* =========================================
   آپلود فایل
========================================= */

.teacher-file-upload{
    position:relative;

    display:flex;

    align-items:center;

    gap:12px;

    min-height:47px;

    padding:7px 10px;

    box-sizing:border-box;

    border-radius:13px;

    background:rgba(15,23,42,.75);

    border:1px solid rgba(148,163,184,.12);

    overflow:hidden;

    transition:.25s ease;
}


.teacher-file-upload:hover{
    border-color:rgba(56,189,248,.25);

    background:rgba(15,23,42,.9);
}


.teacher-file-upload-icon{
    width:35px;
    height:35px;

    display:flex;

    align-items:center;
    justify-content:center;

    flex-shrink:0;

    border-radius:10px;

    background:rgba(56,189,248,.08);

    border:1px solid rgba(56,189,248,.10);

    font-size:16px;
}


.teacher-file-upload-content{
    display:flex;

    flex-direction:column;

    gap:2px;
}


.teacher-file-upload-content strong{
    color:#cbd5e1;

    font-size:10px;
}


.teacher-file-upload-content span{
    color:#475569;

    font-size:9px;
}


.teacher-file-upload input[type="file"]{
    position:absolute;

    inset:0;

    width:100%;
    height:100%;

    opacity:0;

    cursor:pointer;
}


/* =========================================
   دکمه‌های فرم
========================================= */

.teacher-homework-form-actions{
    grid-column:1 / -1;

    display:flex;

    align-items:center;

    gap:10px;

    padding-top:5px;

    margin-top:2px;
}


.teacher-save-homework-button,
.teacher-cancel-homework-button{
    display:flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    min-height:46px;

    padding:0 20px;

    box-sizing:border-box;

    border-radius:13px;

    font-family:"Farhang2", sans-serif;

    font-size:12px;

    font-weight:bold;

    text-decoration:none !important;

    cursor:pointer;

    transition:.3s ease;
}


.teacher-save-homework-button{
    border:none;

    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );

    color:white !important;

    box-shadow:
        0 7px 20px rgba(56,189,248,.13);
}


.teacher-save-homework-button:hover{
    transform:translateY(-2px);

    box-shadow:
        0 12px 28px rgba(56,189,248,.22);
}


.teacher-cancel-homework-button{
    background:rgba(255,255,255,.04);

    border:1px solid rgba(148,163,184,.11);

    color:#94a3b8 !important;
}


.teacher-cancel-homework-button:hover{
    transform:translateY(-2px);

    background:rgba(255,255,255,.07);

    color:#cbd5e1 !important;
}


/* =========================================
   Footer
========================================= */

.teacher-homework-footer{
    display:flex;

    justify-content:center;

    margin-top:22px;
}


.teacher-homework-back-link{
    color:#64748b !important;

    text-decoration:none !important;

    font-size:11px;

    transition:.25s ease;
}


.teacher-homework-back-link:hover{
    color:#38bdf8 !important;
}


/* =========================================
   موبایل
========================================= */

@media(max-width:768px){

    .teacher-homework-page{
        padding:15px 8px 40px;
    }


    .teacher-homework-header{
        flex-direction:column;

        align-items:stretch;

        padding:21px 17px;
    }


    .teacher-homework-title-area{
        flex-direction:column;

        text-align:center;
    }


    .teacher-homework-badge{
        text-align:center;
    }


    .teacher-homework-info-card,
    .teacher-homework-form-card{
        padding:18px 14px;

        border-radius:19px;
    }


    .teacher-homework-info-grid{
        grid-template-columns:1fr;
    }


    .teacher-homework-form{
        grid-template-columns:1fr;

        gap:17px;
    }


    .teacher-form-group.full-width{
        grid-column:auto;
    }


    .teacher-homework-form-actions{
        grid-column:auto;

        flex-direction:column;
    }


    .teacher-save-homework-button,
    .teacher-cancel-homework-button{
        width:100%;
    }


    .teacher-homework-success,
    .teacher-homework-error{
        align-items:flex-start;
    }

}



/* =========================================
   صفحه تکالیف دبیر
========================================= */

.teacher-homeworks-page{
    width:100%;

    max-width:1150px;

    margin:0 auto;

    padding:30px 15px 60px;

    box-sizing:border-box;
}


/* =========================================
   Header
========================================= */

.teacher-homeworks-header{
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    padding:25px 28px;

    margin-bottom:20px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.91)
        );

    border:1px solid rgba(148,163,184,.12);

    border-radius:24px;

    box-shadow:
        0 18px 45px rgba(0,0,0,.25);

    backdrop-filter:blur(15px);
}


.teacher-homeworks-title-area{
    display:flex;

    align-items:center;

    gap:17px;
}


.teacher-homeworks-icon{
    min-width:62px;

    width:62px;
    height:62px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:19px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.13),
            rgba(99,102,241,.13)
        );

    border:1px solid rgba(56,189,248,.12);

    font-size:29px;
}


.teacher-homeworks-label{
    color:#64748b;

    font-size:11px;
}


.teacher-homeworks-header h1{
    margin:4px 0 5px;

    color:#f8fafc;

    font-size:23px;
}


.teacher-homeworks-header p{
    margin:0;

    color:#94a3b8;

    font-size:12px;
}


.teacher-homeworks-count-badge{
    display:flex;

    align-items:center;

    gap:6px;

    padding:11px 16px;

    border-radius:13px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.12);

    color:#7dd3fc;

    font-size:11px;

    font-weight:bold;

    white-space:nowrap;
}


/* =========================================
   اطلاعات درس
========================================= */

.teacher-homeworks-info-card{
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:25px;

    padding:21px 23px;

    margin-bottom:25px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.93),
            rgba(15,23,42,.89)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:21px;

    box-shadow:
        0 14px 35px rgba(0,0,0,.21);
}


.teacher-homeworks-info-main{
    display:flex;

    align-items:center;

    gap:13px;
}


.teacher-homeworks-book-icon{
    width:48px;
    height:48px;

    display:flex;

    align-items:center;
    justify-content:center;

    flex-shrink:0;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            rgba(245,158,11,.11),
            rgba(234,88,12,.10)
        );

    border:1px solid rgba(245,158,11,.10);

    font-size:22px;
}


.teacher-homeworks-info-main span{
    display:block;

    color:#64748b;

    font-size:9px;

    margin-bottom:3px;
}


.teacher-homeworks-info-main h2{
    margin:0;

    color:#f8fafc;

    font-size:17px;
}


.teacher-homeworks-info-details{
    display:flex;

    align-items:center;

    gap:10px;
}


.teacher-homework-detail{
    min-width:145px;

    padding:10px 13px;

    border-radius:12px;

    background:rgba(15,23,42,.50);

    border:1px solid rgba(148,163,184,.07);
}


.teacher-homework-detail span{
    display:block;

    color:#64748b;

    font-size:9px;

    margin-bottom:4px;
}


.teacher-homework-detail strong{
    color:#cbd5e1;

    font-size:10px;
}


/* =========================================
   عنوان لیست
========================================= */

.teacher-homeworks-section-header{
    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:15px;

    padding:0 3px;
}


.teacher-homeworks-section-header span{
    color:#64748b;

    font-size:10px;
}


.teacher-homeworks-section-header h2{
    margin:4px 0 0;

    color:#f8fafc;

    font-size:18px;
}


/* =========================================
   Grid
========================================= */

.teacher-homeworks-grid{
    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(310px,1fr)
        );

    gap:18px;
}


/* =========================================
   کارت تکلیف
========================================= */

.teacher-homework-card{
    position:relative;

    display:flex;

    flex-direction:column;

    padding:21px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.90)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:20px;

    overflow:hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.18);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.teacher-homework-card::before{
    content:"";

    position:absolute;

    width:140px;
    height:140px;

    top:-75px;
    left:-65px;

    border-radius:50%;

    background:rgba(56,189,248,.06);

    filter:blur(24px);

    transition:.3s ease;
}


.teacher-homework-card:hover{
    transform:translateY(-6px);

    border-color:rgba(56,189,248,.20);

    box-shadow:
        0 20px 42px rgba(0,0,0,.28);
}


.teacher-homework-card:hover::before{
    transform:scale(1.5);

    background:rgba(99,102,241,.11);
}


/* =========================================
   بالای کارت
========================================= */

.teacher-homework-card-top{
    position:relative;

    z-index:1;

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:17px;
}


.teacher-homework-number{
    width:34px;
    height:34px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:10px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.10);

    color:#7dd3fc;

    font-size:11px;

    font-weight:bold;
}


.teacher-homework-card-icon{
    width:47px;
    height:47px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,.10),
            rgba(99,102,241,.10)
        );

    border:1px solid rgba(56,189,248,.09);

    font-size:21px;

    transition:.3s ease;
}


.teacher-homework-card:hover
.teacher-homework-card-icon{
    transform:scale(1.08) rotate(-3deg);
}


/* =========================================
   محتوای کارت
========================================= */

.teacher-homework-card-content{
    position:relative;

    z-index:1;

    flex:1;
}


.teacher-homework-card-label{
    color:#64748b;

    font-size:9px;
}


.teacher-homework-card-content h3{
    margin:5px 0 15px;

    color:#f8fafc;

    font-size:17px;

    line-height:1.7;
}


/* =========================================
   توضیحات
========================================= */

.teacher-homework-description{
    padding:12px;

    margin-bottom:11px;

    border-radius:12px;

    background:rgba(15,23,42,.50);

    border:1px solid rgba(148,163,184,.07);
}


.teacher-homework-description span{
    display:block;

    margin-bottom:6px;

    color:#64748b;

    font-size:9px;

    font-weight:bold;
}


.teacher-homework-description p{
    margin:0;

    color:#cbd5e1;

    font-size:11px;

    line-height:1.9;

    word-break:break-word;
}


/* =========================================
   تاریخ تحویل
========================================= */

.teacher-homework-due-date{
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;

    padding:10px 12px;

    border-radius:11px;

    background:rgba(245,158,11,.05);

    border:1px solid rgba(245,158,11,.09);
}


.teacher-homework-due-date span{
    color:#94a3b8;

    font-size:9px;
}


.teacher-homework-due-date strong{
    color:#fbbf24;

    font-size:10px;
}


/* =========================================
   فایل
========================================= */

.teacher-homework-file{
    position:relative;

    z-index:1;

    display:flex;

    align-items:center;

    gap:10px;

    margin-top:16px;

    padding-top:15px;

    border-top:1px solid rgba(148,163,184,.08);
}


.teacher-homework-file-icon{
    width:37px;
    height:37px;

    display:flex;

    align-items:center;
    justify-content:center;

    flex-shrink:0;

    border-radius:11px;

    background:rgba(34,197,94,.07);

    border:1px solid rgba(34,197,94,.10);

    font-size:16px;
}


.teacher-homework-file-content{
    display:flex;

    flex-direction:column;

    gap:3px;

    flex:1;
}


.teacher-homework-file-content span{
    color:#64748b;

    font-size:8px;
}


.teacher-homework-file-content strong{
    color:#cbd5e1;

    font-size:10px;
}


.teacher-homework-download{
    display:flex;

    align-items:center;

    justify-content:center;

    gap:4px;

    padding:8px 11px;

    border-radius:10px;

    background:rgba(34,197,94,.07);

    border:1px solid rgba(34,197,94,.11);

    color:#86efac !important;

    text-decoration:none !important;

    font-size:9px;

    font-weight:bold;

    transition:.25s ease;
}


.teacher-homework-download:hover{
    transform:translateY(-2px);

    background:rgba(34,197,94,.12);

    border-color:rgba(34,197,94,.20);

    color:#bbf7d0 !important;
}


/* =========================================
   حالت خالی
========================================= */

.teacher-homeworks-empty{
    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:55px 20px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,.93),
            rgba(15,23,42,.89)
        );

    border:1px solid rgba(148,163,184,.10);

    border-radius:22px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.20);
}


.teacher-homeworks-empty-icon{
    width:78px;
    height:78px;

    display:flex;

    align-items:center;
    justify-content:center;

    margin-bottom:17px;

    border-radius:23px;

    background:rgba(56,189,248,.07);

    border:1px solid rgba(56,189,248,.11);

    font-size:34px;
}


.teacher-homeworks-empty h2{
    margin:0 0 8px;

    color:#f8fafc;

    font-size:18px;
}


.teacher-homeworks-empty p{
    margin:0 0 20px;

    color:#64748b;

    font-size:11px;
}


.teacher-empty-add-button{
    display:flex;

    align-items:center;
    justify-content:center;

    gap:7px;

    padding:11px 18px;

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );

    color:white !important;

    text-decoration:none !important;

    font-size:11px;

    font-weight:bold;

    box-shadow:
        0 7px 20px rgba(56,189,248,.13);

    transition:.3s ease;
}


.teacher-empty-add-button:hover{
    transform:translateY(-2px);

    color:white !important;

    box-shadow:
        0 11px 25px rgba(56,189,248,.22);
}


/* =========================================
   عملیات پایین
========================================= */

.teacher-homeworks-actions{
    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    margin-top:25px;
}


.teacher-homeworks-add-button,
.teacher-homeworks-dashboard-button{
    display:flex;

    align-items:center;
    justify-content:center;

    gap:7px;

    min-height:45px;

    padding:0 20px;

    box-sizing:border-box;

    border-radius:13px;

    text-decoration:none !important;

    font-size:11px;

    font-weight:bold;

    transition:.3s ease;
}


.teacher-homeworks-add-button{
    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #6366f1
        );

    color:white !important;

    box-shadow:
        0 7px 20px rgba(56,189,248,.13);
}


.teacher-homeworks-add-button:hover{
    transform:translateY(-2px);

    color:white !important;

    box-shadow:
        0 11px 27px rgba(56,189,248,.22);
}


.teacher-homeworks-dashboard-button{
    background:rgba(255,255,255,.04);

    border:1px solid rgba(148,163,184,.11);

    color:#94a3b8 !important;
}


.teacher-homeworks-dashboard-button:hover{
    transform:translateY(-2px);

    background:rgba(255,255,255,.07);

    color:#cbd5e1 !important;
}


/* =========================================
   موبایل
========================================= */

@media(max-width:768px){

    .teacher-homeworks-page{
        padding:15px 8px 40px;
    }


    .teacher-homeworks-header{
        flex-direction:column;

        align-items:stretch;

        padding:21px 17px;
    }


    .teacher-homeworks-title-area{
        flex-direction:column;

        text-align:center;
    }


    .teacher-homeworks-count-badge{
        justify-content:center;
    }


    .teacher-homeworks-info-card{
        flex-direction:column;

        align-items:stretch;

        padding:18px 14px;
    }


    .teacher-homeworks-info-main{
        justify-content:center;

        text-align:center;
    }


    .teacher-homeworks-info-details{
        flex-direction:column;
    }


    .teacher-homework-detail{
        width:100%;

        box-sizing:border-box;
    }


    .teacher-homeworks-grid{
        grid-template-columns:1fr;
    }


    .teacher-homeworks-actions{
        flex-direction:column;
    }


    .teacher-homeworks-add-button,
    .teacher-homeworks-dashboard-button{
        width:100%;
    }

}


