*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:linear-gradient(
        135deg,
        #0f172a,
        #111827,
        #1e293b
    );
    color:white;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container{
    width:95%;
    margin:auto;
}
.sidebar{
    width:260px;
    height:100vh;
    position:fixed;
    left:0;
    top:0;

    background:rgba(255,255,255,0.05);

    backdrop-filter:blur(12px);

    border-right:1px solid rgba(255,255,255,0.1);

    padding:20px;
}

.logo{
    font-size:28px;
    font-weight:bold;
    margin-bottom:40px;

    color:#06b6d4;
}

.nav-links{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.nav-links a{
    text-decoration:none;
    color:white;
    padding:14px;
    border-radius:12px;
    transition:0.3s;
}

.nav-links a:hover{
    background:#7c3aed;
    transform:translateX(5px);
}

.main-content{
    margin-left:260px;
    padding:30px;
    width: calc(100%-260px);
    min-height: 100vh;
    
}

.card{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(
            255,255,255,0.1
        );
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 25px;
    box-shadow: inset0 4px 20px rgba(
                0,0,0,0.25
            );
    margin-bottom: 20px;
    overflow: hidden;
   
}

.student-card{
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:12px;
    padding:15px;
    margin-bottom:15px;
}

.student-card p{
    margin:8px 0;
}

@media(min-width:769px){

    #marksCards,
    #feesCards{
        display:none;
    }
}

@media(max-width:768px){

    .table-container{
        display:none;
    }

    #marksCards,
    #feesCards{
        display:block;
    }
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.dashboard-card{
    padding:30px;
    border-radius:20px;

    background:linear-gradient(
        135deg,
        rgba(124,58,237,0.2),
        rgba(6,182,212,0.2)
    );

    border:1px solid rgba(255,255,255,0.1);

    transition:0.3s;
}

.dashboard-card:hover{
    transform:translateY(-5px);
}

.table-container{
    width: 100%;
    overflow-x:auto;
}

.table{
    width:100%;
    min-width: 700px;
    border-collapse:collapse;
}

.table th{
    background: #7c3aed;
    color: white;
    padding: 16px;
    text-align: left;
    font-size: 15px;
}
.table td{
    padding: 16px;
    text-align: left;
    border-bottom:
    1px solid rgba(
        255,255,255,0.08
    );
}

.table tr:hover{
    background: rgba(
        255,255,255,0.03
    );
    

}

.btn{
    background:#7c3aed;
    border:none;
    padding:12px 20px;
    color:white;
    border-radius:10px;
    cursor:pointer;
    transition:0.3s;
}

.btn:hover{
    background:#06b6d4;
}

input,
select,
textarea{
    width:100%;
    padding:14px;
    margin-top:10px;
    margin-bottom:20px;

    background:rgba(255,255,255,0.05);

    border:1px solid rgba(255,255,255,0.1);

    color:white;

    border-radius:12px;
}

.present{

    color:#22c55e;
    font-weight:bold;
}

.absent{

    color:#ef4444;
    font-weight:bold;
}

.toast{

    position:fixed;

    top:20px;
    right:20px;

    background:#7c3aed;

    padding:16px 22px;

    border-radius:12px;

    color:white;

    z-index:9999;

    animation:slideIn 0.3s ease;
}

@keyframes slideIn{

    from{
        transform:translateX(100%);
    }

    to{
        transform:translateX(0);
    }
}

.loader{

    width:50px;
    height:50px;

    border:5px solid rgba(
        255,255,255,0.1
    );

    border-top:5px solid #06b6d4;

    border-radius:50%;

    animation:spin 1s linear infinite;

    margin:auto;
}

@keyframes spin{

    100%{
        transform:rotate(360deg);
    }
}

.active-link{

    background:#7c3aed;
}

@media(max-width:768px){
    .card{
        padding: 15px;
    }
    .btn,
    .present-btn,
    .absent-btn{
        padding: 8px 10px;
        font-size: 12px;
    }

    .sidebar{

        width:100%;
        height:auto;
        padding: 15px;
        position: relative;


      
    }
    .nav-links{
        display: grid;
        grid-template-columns:
        repeat(2,1fr);
        gap: 10px;
    }
    .nav-links a{
        padding: 12px;
        font-size: 14px;
        text-align: center;
    }
    .table-container{
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-content{
        margin-left: 0;

        width: 100%;
        padding: 15px;
        
    }

    .dashboard-grid{

        grid-template-columns:1fr;
    }

    .table{
        min-width: 700px;
        
    }
    input,
    select,
    textarea,
    button{
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px;

    }
    h1{
        font-size: 24px;
    }
    h2{
        font-size: 18px;
    }
    .table td,
    .table th{
        font-size: 13px;
        padding: 10px;
    }
}

.present-btn{

    background:#22c55e;

    border:none;

    padding:10px 14px;

    border-radius:8px;

    color:white;

    cursor:pointer;

    margin-right:5px;
}

.absent-btn{

    background:#ef4444;

    border:none;

    padding:10px 14px;

    border-radius:8px;

    color:white;

    cursor:pointer;
}
#messagesContainer .card h3{
    font-size: 25px;
}

#messagesContainer .card p{
    font-size: 18px;
}
.table td{
    font-size: 14px;
}
.table th{
    font-size: 15px;
}
.table-container{
    overflow-x: auto;
}
.img{
    max-width: 100%;
    height: auto;
    display: block;
}
iframe{
    max-width: 100%;
}
body{
    overflow-x: hidden;
}
.menu-btn{
    display:none;
}

@media(max-width:768px){

    .menu-btn{

        display:block;

        position:fixed;

        top:15px;

        left:15px;

        z-index:9999;

        border:none;

        background:#7c3aed;

        color:white;

        font-size:24px;

        padding:10px 14px;

        border-radius:10px;

        cursor:pointer;
    }

    .sidebar{

        position:fixed;

        left:-280px;

        top:0;

        width:260px;

        height:100vh;

        z-index:9998;

        transition:.3s;
    }

    .show-sidebar{

        left:0;
    }

    .main-content{

        margin-left:0;

        width:100%;

        padding-top:70px;
    }

    .nav-links{

        display:flex;

        flex-direction:column;
    }

    .nav-links a{

        width:100%;
    }
}
.bottom-nav{
    display:none;
}

@media(max-width:768px){

    .sidebar{
        display:none;
    }

    .main-content{
        margin-left:0;
        width:100%;
        padding:15px;
        padding-bottom:90px;
    }

    .bottom-nav{

        position:fixed;

        bottom:0;
        left:0;

        width:100%;

        height:65px;

        background:#111827;

        border-top:1px solid rgba(
            255,255,255,0.1
        );

        display:flex;

        justify-content:space-around;

        align-items:center;

        z-index:9999;
    }

    .bottom-nav a{

        color:white;

        text-decoration:none;

        display:flex;

        flex-direction:column;

        align-items:center;

        font-size:12px;

        gap:2px;
    }

    .bottom-nav a:hover{

        color:#06b6d4;
    }

    .bottom-nav span{

        font-size:11px;
    }
}
#monthSelect{
    width: 220px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: rgb(30, 33, 72);
}

#monthSelect option{
    font-size: 16px;
    font-weight: 600;
    padding: 10px;
}

#monthRevenue{
    font-size: 36px;
    font-weight:bold ;
    margin-top: 10px;
}

.mobile-students{
    display:none;
}

@media(max-width:768px){

    .table-container{
        display:none;
    }

    .mobile-students{
        display:block;
    }

    .student-card{

        background:rgba(
            255,255,255,0.05
        );

        border:1px solid rgba(
            255,255,255,0.1
        );

        border-radius:12px;

        padding:15px;

        margin-bottom:15px;
    }

    .student-card h3{

        margin-bottom:10px;

        color:#06b6d4;
    }

    .student-card p{

        margin:6px 0;
    }
}

.dashboard-card{
    cursor: pointer;
    text-align: center;

}

.dashboard-card h2{
    margin: 0;
}
@media(max-width:768px){
    .dashboard-card{
        padding: 25px;
    }
    .dashboard-card h2{
        font-size: 20px;
    }
}
.dashboard-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;
}

.dashboard-header .present-btn{

    width:auto;
}

@media(max-width:768px){

    .dashboard-header{

        flex-direction:column;

        align-items:flex-start;
    }

    .dashboard-header .present-btn{

        width:100%;
    }
}
.dashboard-header .absent-btn,
.dashboard-header .present-btn{

    width:auto;
    margin-bottom:0;
}

@media(max-width:768px){

    .dashboard-header{

        display:flex;

        flex-direction:row;

        justify-content:space-between;

        align-items:center;
    }

    .dashboard-header .absent-btn,
    .dashboard-header .present-btn{

        width:auto !important;

        padding:10px 15px;

        font-size:14px;
    }
}