*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f8fafc;
}

::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:20px;
    border:2px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover{
    background:#94a3b8;
}

body{

   background:
        radial-gradient(circle at top left,#dbeafe 0%,transparent 35%),
        radial-gradient(circle at bottom right,#bfdbfe 0%,transparent 30%),
        linear-gradient(180deg,#f8fbff,#eef4ff);
    color:#1e293b;
    min-height:100vh;
    display:flex;
    flex-direction:column;

}

header{
    position:relative;
    top:0;
    z-index:999;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 8%;

    background:rgba(255,255,255,.72);

    backdrop-filter:blur(18px);

    border-bottom:1px solid rgba(255,255,255,.45);

    box-shadow:
        0 8px 35px rgba(15,23,42,.06);
}


.logo{

    display:flex;
    align-items:center;
    gap:15px;

    font-size:26px;

    font-weight:700;

    color:#1e3a8a;

}

.logo i{

    width:48px;
    height:48px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:14px;

    background:linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    color:#fff;

    font-size:24px;

    box-shadow:
        0 8px 25px rgba(37,99,235,.35);

}

.logo span{

    letter-spacing:.5px;

}

nav{

    display:flex;

    align-items:center;

    gap:12px;

}
 
nav a.active{

    color:white;

    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    box-shadow:

        0 8px 20px rgba(37,99,235,.30);

}

nav a{

    position:relative;

    text-decoration:none;

    color:#475569;

    font-weight:600;

    padding:11px 18px;

    border-radius:14px;

    transition:.35s;

}

nav a:hover{

    color:#2563eb;

    background:#eff6ff;

}

nav a::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:5px;

    width:0;

    height:2px;

    background:#2563eb;

    transition:.3s;

    transform:translateX(-50%);

}

nav a:hover::after{

    width:60%;

}

nav a.active::after{

    display:none;

}

.container{
    width:100%;
    max-width:1450px;
    margin:35px auto;
    padding:0 20px;
    display:grid;
    gap:25px;
    flex:1;
}

.card{

    background:linear-gradient(
        180deg,
        #ffffff 0%,
        #f8fbff 100%
    );

    border-radius:22px;

    border:1px solid rgba(226,232,240,.8);

    padding:25px;

    box-shadow:
        0 12px 35px rgba(15,23,42,.06);

    transition:.3s;

    animation:fadeUp .5s ease;

}

.search-box{

    position:relative;

}

.search-box .form-control{

    padding-right:48px;

}

.clear-search{

    position:absolute;

    top:35%;

    right:12px;

    transform:translateY(-50%);

    width:30px;

    height:30px;

    border:none;

    border-radius:50%;

    background:transparent;

    color:#64748b;

    display:none;

    cursor:pointer;

    transition:.25s;

}

.clear-search:hover{

    background:#eff6ff;

    color:#2563eb;

}

.clear-search i{

    font-size:14px;

}

@keyframes fadeUp{
    from{
    opacity:0;
    transform:translateY(25px);
    }

    to{
    opacity:1;
    transform:none;

    }
}


.form-control, .form-select{

    border-radius:14px;

    height:52px;

    border:1px solid #dbeafe;

    box-shadow:none;

}

.form-control:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 .2rem rgba(37,99,235,.12);

}

.btn-primary{

    height:52px;

    border-radius:14px;

    font-weight:600;

    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    border:none;

    box-shadow:
        0 10px 20px rgba(37,99,235,.25);

}

.btn-primary:hover{

    transform:translateY(-2px);

}

.student-info{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:15px;

    margin:25px 0;

}

.info-item{

    background:#fff;

    border:1px solid #e2e8f0;

    border-radius:16px;

    padding:18px;

}

.student-info div{

    background:#fff;

    border:1px solid #e2e8f0;

    border-radius:16px;

    padding:18px;

    box-shadow:0 4px 12px rgba(15,23,42,.04);

}

.student-info small{

    display:block;

    color:#64748b;

    font-size:13px;

    margin-bottom:6px;

}

.student-info strong{

    display:block;

    color:#1e293b;

    font-size:18px;

    font-weight:600;

    word-break:break-word;

}

.card h3{
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 20px;
    color:#1e293b;
}
.card h4{
   font-size: 16px;
   color:#1e293b;
}

button{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#00d084;
    color:white;
    font-size:17px;
    cursor:pointer;
    transition:.3s;

}

.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin:0;
    padding-bottom: 10px;
}

.stats .card{

    border-radius:20px;

     padding:18px 12px;

    text-align:center;

    background:
    linear-gradient(
        180deg,
        #ffffff,
        #f8fbff
    );

}

.stats h4{
    font-size:14px;
    margin-bottom:8px;
    white-space:nowrap;
    text-align:center;
    width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
}


.stats h2{
    margin-top:10px;
    font-size:20px;
    font-weight:700;
    color:#2563eb;

}

.table{

    border-radius:18px;

    overflow:hidden;

}

.table thead th{

    background:#2563eb !important;

    color:white;

    border:none;

}

.table tbody td{
    white-space: nowrap;
}

.table tbody tr:hover{

    background:#eff6ff;

}

.badge{

    padding:8px 14px;

    border-radius:999px;

    font-weight:600;

    font-size:13px;

}

.stats .card:nth-child(1){

border-top:4px solid #22c55e;

}

.stats .card:nth-child(2){

border-top:4px solid #f59e0b;

}

.stats .card:nth-child(3){

border-top:4px solid #3b82f6;

}

.stats .card:nth-child(4){

border-top:4px solid #ef4444;

}

.ok{

    background:#dcfce7;

    color:#15803d;

    padding:6px 12px;

    border-radius:999px;

    font-weight:600;

}

.ok{

    background:#dcfce7;

    color:#15803d;

    padding:6px 12px;

    border-radius:999px;

    font-weight:600;

}


.text-primary{

    background:#dbeafe;

    color:#2563eb;

    padding:6px 12px;

    border-radius:999px;

}

.text-danger{

    background:#fee2e2;

    color:#dc2626;

    padding:6px 12px;

    border-radius:999px;

}

/* Tablet */

@media(max-width:900px){

.container{

grid-template-columns:1fr;

}

}

/* Mobile */

@media(max-width:600px){

header{

flex-direction:column;
gap:15px;

}

.logo span{
    font-size: 23px;

}

nav a.active{
    background:transparent !important;
    color:#334155 !important;
    box-shadow:none !important;
}

nav a{
padding:0;
font-size: 15px;
}

nav{

flex-wrap:wrap;
justify-content:center;

}

nav i{

    margin-right:6px;

}

.card h3{
   text-align: center;
   margin-top: -10px;
}


.stats{
    grid-template-columns:repeat(2,1fr);
    gap:10px;

}

.stats .card{
    padding:15px 10px;

}

.stats h4{
    font-size:13px;

}

.stats h2{
    font-size:20px;
    margin-top:6px;
  }

}

.btn-primary{

    background:#2563eb;
    border:none;

}

.pagination{
    justify-content:center !important;
    flex-wrap:wrap;
    gap:6px;
}

.pagination .page-item.active .page-link{
    background:#2563eb;
    border-color:#2563eb;
}

/* tombol pagination */
.pagination .page-link{
    border-radius:10px;
    min-width:38px;
    text-align:center;
}

/* ==========================
   FIX KHUSUS HP
========================== */
@media (max-width:576px){

.pagination{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:4px;
    padding:0 10px;
}

/* batasi ukuran tombol */
.pagination .page-link{
    padding:6px 10px;
    font-size:13px;
    min-width:34px;
}

.pagination .page-item{
    margin:2px 0;
  }
}

/* ==========================
   FOOTER
========================== */

footer{

    margin-top:auto;

    background:#ffffff;

    border-top:1px solid #e2e8f0;

    box-shadow:
        0 -8px 25px rgba(15,23,42,.05);

    padding:18px 8%;

}

.footer-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

}

.footer-content p{
    margin:5px 0 0;
    color:#64748b;

}

.footer-content div:last-child{

    text-align:right;
    color:#64748b;

}

@media (max-width:576px){

  .student-info{

    grid-template-columns:repeat(2,1fr);

    grid-template-areas:
        "nama nama"
        "nisn kelas";

    gap:12px;

    }

    .student-info strong{
        font-size: 15px;
    }

    .info-nama{

        grid-area:nama;

    }

    .info-nisn{

        grid-area:nisn;

    }

    .info-kelas{

        grid-area:kelas;

    }

}

/* Responsive */

@media(max-width:768px){

    ::-webkit-scrollbar{
       display: none;
      }

      .container{

        width:100%;

        padding:10px;

        margin:0 auto;

        gap:15px;

    }

     footer{
        padding:15px 8%;
        line-height: 10px;
        font-size: 15px;
     }

    .footer-content{

        flex-direction:column;
        text-align:center;

    }

    .footer-content div:last-child{
        text-align:center;

    }

     header{

       padding:15px 12px;

   }

   .card h3{
      padding-top: 15px;
      font-size: 16px;
   }

   .student-info{

      grid-template-columns:repeat(2,1fr);

      gap:12px;
  
    }

    .logo{

        font-size:22px;

    }

    .logo i{

        width:42px;

        height:42px;

        font-size:20px;

    }

    nav{

        width:100%;

        justify-content:center;

        gap:8px;

    }

    nav a{

        padding:10px 10px;

        font-size:14px;

    }

}

