/* =========================================================
   PREMIUM ATTENDANCE PANEL CSS
   Responsive + Dynamic Student List Ready
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =========================================================
   RESET
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;

    background:
        radial-gradient(circle at top left,#312e81 0%,transparent 28%),
        radial-gradient(circle at bottom right,#0f172a 0%,transparent 30%),
        linear-gradient(
            135deg,
            #020617,
            #030712,
            #020617
        );

    color:white;

    overflow:hidden;
}

/* =========================================================
   APP LAYOUT
========================================================= */

.app-shell{
    display:flex;
    width:100%;
    height:100vh;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar{
    width:280px;
    min-width:280px;

    background:
        rgba(5,10,25,0.96);

    backdrop-filter:blur(18px);

    border-right:
        1px solid rgba(255,255,255,0.06);

    display:flex;
    flex-direction:column;
    justify-content:space-between;

    transition:0.35s ease;

    z-index:1000;
}

/* =========================================================
   BRAND
========================================================= */

.sidebar-brand{
    padding:28px 24px;

    display:flex;
    align-items:center;
    gap:16px;

    border-bottom:
        1px solid rgba(255,255,255,0.05);
}

.brand-icon{
    width:64px;
    height:64px;

    border-radius:22px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #4f46e5
        );

    box-shadow:
        0 0 28px rgba(139,92,246,0.45);
}

.brand-name{
    display:block;

    font-size:32px;
    font-weight:800;

    background:
        linear-gradient(
            90deg,
            #8b5cf6,
            #06b6d4,
            #38bdf8
        );
    background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.brand-tagline{
    color:#94a3b8;

    font-size:12px;

    text-transform:uppercase;

    letter-spacing:2px;
}

/* =========================================================
   NAVIGATION
========================================================= */

.nav-section{
    padding:24px 18px;
}

.nav-section-label{
    color:#64748b;

    font-size:12px;

    letter-spacing:2px;

    margin-bottom:20px;

    padding-left:12px;
}

.nav-item{
    display:flex;
    align-items:center;
    gap:15px;

    text-decoration:none;

    color:#cbd5e1;

    padding:16px 18px;

    border-radius:18px;

    margin-bottom:12px;

    transition:0.35s ease;
}

.nav-item:hover{
    transform:translateX(5px);

    background:
        linear-gradient(
            135deg,
            rgba(99,102,241,0.14),
            rgba(139,92,246,0.14)
        );

    border:
        1px solid rgba(255,255,255,0.06);
}

.nav-item.active{
    background:
        linear-gradient(
            135deg,
            rgba(99,102,241,0.35),
            rgba(139,92,246,0.28)
        );

    border:
        1px solid rgba(139,92,246,0.28);

    box-shadow:
        0 0 22px rgba(139,92,246,0.2);

    color:white;
}

.nav-icon{
    font-size:20px;
}

.nav-label{
    font-weight:500;
}

.sidebar-footer{
    padding:18px;
}

/* =========================================================
   MAIN WRAPPER
========================================================= */

.main-wrapper{
    flex:1;
    overflow-y:auto;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar{
    height:90px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 30px;

    background:
        rgba(3,7,18,0.75);

    backdrop-filter:blur(16px);

    border-bottom:
        1px solid rgba(255,255,255,0.05);

    position:sticky;
    top:0;

    z-index:100;
}

.navbar-left{
    display:flex;
    align-items:center;
    gap:18px;
}

.sidebar-toggle{
    width:50px;
    height:50px;

    border:none;

    border-radius:16px;

    background:
        rgba(255,255,255,0.06);

    color:white;

    font-size:18px;

    cursor:pointer;

    transition:0.3s;
}

.sidebar-toggle:hover{
    background:
        rgba(139,92,246,0.18);

    transform:scale(1.05);
}

.navbar-title{
    font-size:36px;
    font-weight:700;
}

.navbar-breadcrumb{
    color:#64748b;
    font-size:14px;
}

.navbar-right{
    display:flex;
    align-items:center;
    gap:18px;
}

/* =========================================================
   SEARCH BAR
========================================================= */

.navbar-search{
    position:relative;
}

.navbar-search input{
    width:300px;

    padding:14px 18px 14px 48px;

    border-radius:18px;

    border:
        1px solid rgba(255,255,255,0.08);

    background:
        rgba(255,255,255,0.05);

    color:white;

    outline:none;

    transition:0.3s;
}

.navbar-search input:focus{
    border-color:#8b5cf6;

    box-shadow:
        0 0 18px rgba(139,92,246,0.2);
}

.navbar-search-icon{
    position:absolute;

    left:16px;
    top:13px;

    color:#94a3b8;
}

.navbar-avatar{
    width:52px;
    height:52px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #4f46e5
        );

    box-shadow:
        0 0 18px rgba(139,92,246,0.35);
}

/* =========================================================
   PAGE CONTENT
========================================================= */

.page-content{
    padding:30px;
}

/* =========================================================
   CARD
========================================================= */

.card{
    background:
        linear-gradient(
            145deg,
            rgba(15,23,42,0.9),
            rgba(17,24,39,0.95)
        );

    border:
        1px solid rgba(255,255,255,0.06);

    border-radius:30px;

    padding:32px;

    margin-bottom:28px;

    box-shadow:
        0 0 35px rgba(99,102,241,0.08);
}

/* =========================================================
   TOP SECTION
========================================================= */

.top-flex{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
}

.text-gradient{
    font-size:50px;
    font-weight:800;

    margin-bottom:8px;

    background:
        linear-gradient(
            90deg,
            #8b5cf6,
            #06b6d4,
            #38bdf8
        );
background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.top-flex p{
    color:#94a3b8;
    font-size:16px;
}

.top-flex input{
    background:
        rgba(255,255,255,0.05);

    border:
        1px solid rgba(255,255,255,0.08);

    color:white;

    padding:14px 18px;

    border-radius:16px;

    outline:none;
}

/* =========================================================
   STUDENT HEADER
========================================================= */

.student-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:20px;

    margin-bottom:28px;

    flex-wrap:wrap;
}

.student-header h2{
    font-size:36px;
}

.submit-btn{
    border:none;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #4f46e5
        );

    color:white;

    padding:15px 24px;

    border-radius:16px;

    font-weight:600;

    cursor:pointer;

    transition:0.3s;

    box-shadow:
        0 0 24px rgba(139,92,246,0.3);
}

.submit-btn:hover{
    transform:translateY(-2px);

    box-shadow:
        0 0 28px rgba(139,92,246,0.5);
}

/* =========================================================
   STUDENT LIST
========================================================= */

.student-grid{
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* =========================================================
   STUDENT CARD
========================================================= */

.student-card{
    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:18px;

    padding:18px 22px;

    border-radius:24px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.02)
        );

    border:
        1px solid rgba(255,255,255,0.07);

    transition:0.35s ease;
}

.student-card:hover{
    transform:translateY(-3px);

    border-color:
        rgba(139,92,246,0.35);

    box-shadow:
        0 0 28px rgba(139,92,246,0.14);
}

/* =========================================================
   LEFT
========================================================= */

.student-left{
    display:flex;
    align-items:center;
    gap:18px;

    min-width:0;
}

.student-avatar{
    width:68px;
    height:68px;

    min-width:68px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:24px;
    font-weight:700;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #4f46e5
        );

    box-shadow:
        0 0 20px rgba(139,92,246,0.4);
}

.student-info{
    min-width:0;
}

.student-info h4{
    font-size:24px;
    margin-bottom:4px;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.student-info p{
    color:#94a3b8;
    font-size:14px;
}

/* =========================================================
   ACTIONS
========================================================= */

.student-actions{
    display:flex;
    align-items:center;
    gap:14px;
}

.student-actions select{
    background:
        rgba(255,255,255,0.06);

    border:
        1px solid rgba(255,255,255,0.08);

    color:white;

    padding:12px 18px;

    border-radius:14px;

    outline:none;

    font-weight:600;

    cursor:pointer;

    min-width:140px;
}

.student-actions select option{
    background:#111827;
    color:white;
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#4f46e5;
    border-radius:30px;
}

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media(max-width:992px){

    body{
        overflow:auto;
    }

    .sidebar{
        position:fixed;

        left:-100%;
        top:0;

        height:100vh;

        transition:0.35s ease;
    }

    .sidebar.showSidebar{
        left:0;
    }

    .main-wrapper{
        width:100%;
    }

    .navbar{
        padding:0 18px;
    }

    .page-content{
        padding:18px;
    }

    .navbar-title{
        font-size:28px;
    }

    .navbar-search input{
        width:180px;
    }

    .text-gradient{
        font-size:36px;
    }

    .student-header h2{
        font-size:28px;
    }

    .card{
        padding:22px;
    }

    .student-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .student-actions{
        width:100%;
    }

    .student-actions select{
        width:100%;
    }

}

/* =========================================================
   EXTRA SMALL DEVICES
========================================================= */

@media(max-width:576px){

    .navbar{
        height:auto;
        padding:16px;
        gap:14px;

        flex-direction:column;
        align-items:flex-start;
    }

    .navbar-right{
        width:100%;
        justify-content:space-between;
    }

    .navbar-search{
        flex:1;
    }

    .navbar-search input{
        width:100%;
    }

    .text-gradient{
        font-size:30px;
    }

    .student-avatar{
        width:58px;
        height:58px;
        min-width:58px;
    }

    .student-info h4{
        font-size:20px;
    }

    .submit-btn{
        width:100%;
    }

}/* =========================================
   STUDENT CARD FIX
   YE PURANA CSS KE NICHE ADD KAR
========================================= */

/* CARD */
.student-card{
    width:100%;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:20px 24px;

    border-radius:24px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.02)
        );

    border:
        1px solid rgba(139,92,246,0.12);

    transition:0.35s ease;
}

.student-card:hover{
    transform:translateY(-3px);

    border-color:
        rgba(139,92,246,0.45);

    box-shadow:
        0 0 30px rgba(139,92,246,0.16);
}

/* LEFT SIDE */
.student-left{
    display:flex;
    align-items:center;
    gap:18px;
}

/* AVATAR */
.student-avatar{
    width:66px;
    height:66px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:24px;
    font-weight:700;

    color:white;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #4f46e5
        );

    box-shadow:
        0 0 20px rgba(139,92,246,0.35);
}

/* INFO */
.student-info h4{
    font-size:24px;
    margin-bottom:4px;
    color:white;
}

.student-info p{
    color:#94a3b8;
    font-size:14px;
    line-height:1.6;
}

/* RIGHT SIDE */
.student-actions{
    margin-left:auto;

    display:flex;
    align-items:center;
    justify-content:flex-end;
}

/* SELECT BOX */
.student-actions select{

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    min-width:160px;

    padding:12px 42px 12px 18px;

    border-radius:14px;

    border:
        1px solid rgba(139,92,246,0.22);

    background:
        linear-gradient(
            135deg,
            rgba(20,25,45,0.95),
            rgba(15,23,42,0.95)
        );

    color:white;

    font-size:15px;
    font-weight:600;

    outline:none;

    cursor:pointer;

    transition:0.3s;

    background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='white'%3e%3cpath d='M5 7l5 5 5-5'/%3e%3c/svg%3e");

    background-repeat:no-repeat;

    background-position:right 14px center;

    background-size:16px;
}

/* HOVER */
.student-actions select:hover{
    border-color:#8b5cf6;

    box-shadow:
        0 0 16px rgba(139,92,246,0.18);
}

/* OPTIONS */
.student-actions select option{
    background:#111827;
    color:white;
}

/* MOBILE */
@media(max-width:768px){

    .student-card{
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
    }

    .student-actions{
        width:100%;
    }

    .student-actions select{
        width:100%;
    }

}