﻿/* General Reset */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:linear-gradient(135deg,#e0ecff,#f5f9ff);
    min-height:105vh;
}


.login-wrapper{
display:flex;
justify-content:center;
align-items:center;
min-height:100vh;
}


/* Main Container */
.main-container{
    width:900px;
    max-width:95%;
    display:flex;
    border-radius:30px;
    overflow:hidden;
    background:white;
    box-shadow:
    0 25px 60px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Sidebar */
.sidebar{
    width:60%;
    padding:50px 40px;
    color:white;
    text-align:center;
    position:relative;

    background:linear-gradient(145deg,#094561,#094561);

    box-shadow:
    inset -10px 0 30px rgba(0,0,0,0.25),
    inset 5px 5px 15px rgba(255,255,255,0.1);
}

.branding-content{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:50px;
}

.welcome-text {
    font-size: 35px;
    letter-spacing: 4px;
    opacity: 1.9;
    color: #f55c2a;
    font-weight: 600;
}

/* Logo 3D */
.logo-circle{
    width:200px;
    height:200px;
    background:white;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;

    box-shadow:
    0 10px 25px rgba(0,0,0,0.25),
    inset 0 2px 5px rgba(255,255,255,0.8);
        
}

.logo-circle img{
    width:150px;
    height:156px;
    object-fit:contain;
}
/* Brand name */
.brand-name{
    font-size:32px;
    font-weight:600;
    letter-spacing:1px;
}

.brand-description{
    font-size:13px;
    line-height:1.7;
    opacity:0.9;
    max-width:260px;
}

/* Sidebar footer */
.sidebar-footer{
    position:absolute;
    bottom:20px;
    font-size:11px;
    letter-spacing:0px;
    opacity:0.6;
}

.separator{
    margin:0 8px;
}

/* Wavy divider */
.cloud-divider{
    position:absolute;
    right:-1px;
    top:0;
    height:100%;
    width:80px;
    fill:white;
}

/* Form Container */
.form-container{
    width:60%;
    padding:60px;
}

/* Title */
.form-title{
    font-size:26px;
    font-weight:600;
    margin-bottom:40px;
    color:#094561;
}

/* Input Group */
.input-group{
    margin-bottom:30px;
}

.input-group label{
    font-size:13px;
    color:#000;
    margin-bottom:5px;
    display:block;
}

/* 3D Inputs */
.input-group input{
    width:100%;
    padding:12px 15px;
    border-radius:10px;
    border:none;

    background:#f1f5f9;

    box-shadow: inset 2px 2px 6px #094561, inset -2px -2px 6px rgba(255, 255, 255, 0.9);

    outline:none;
    font-size:14px;
}

/* tick icon */
.tick-icon{
    position:absolute;
    right:15px;
    margin-top:-28px;
    color:#60a5fa;
    font-size:13px;
}



/* Button Group */
.button-group{
    display:flex;
    gap:20px;
}

/* Primary Button 3D */
.btn-primary{
    padding:12px 40px;
    border:none;
    border-radius:40px;
    background:linear-gradient(145deg,#094561,#1e40af);
    color:white;
    font-weight:600;
    cursor:pointer;

    box-shadow:
    0 10px 20px rgba(37,99,235,0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);

    transition:0.3s;
}

.btn-primary:hover
{
    background: #f55c2a;
    color:#fff;
    transform:translateY(-2px);
}

.forgot-password{
    text-align:right;
    margin-bottom:20px;
}

.forgot-password a{
    font-size:13px;
    color:#094561;
    text-decoration:none;
}

.forgot-password a:hover{
    text-decoration:underline;
}

.register-link{
    margin-top:20px;
    font-size:13px;
    text-align:center;
    color:#000;
}

.register-link a{
    color:#094561;
    font-weight:600;
    text-decoration:none;
}

.register-link a:hover{
    text-decoration:underline;
}

/* ===============================
   TABLET VIEW
================================*/
@media (max-width:992px){

.main-container{
    width:95%;
}

.sidebar{
    padding:40px 30px;
}

.form-container{
    padding:40px;
}

.logo-circle{
    width:160px;
    height:160px;
}

.logo-circle img{
    width:120px;
    height:120px;
}

.brand-name{
    font-size:26px;
}

.welcome-text{
    font-size:28px;
}

}


/* ===============================
   MOBILE VIEW
================================*/
@media (max-width:768px){

.login-wrapper{
    padding:20px;
}

.main-container{
    flex-direction:column;
    border-radius:20px;
}

.sidebar{
    width:100%;
    padding:35px 20px;
}

.form-container{
    width:100%;
    padding:35px 25px;
}

.branding-content{
    gap:25px;
}

.logo-circle{
    width:140px;
    height:140px;
}

.logo-circle img{
    width:100px;
    height:100px;
}

.brand-name{
    font-size:22px;
}

.welcome-text{
    font-size:24px;
}

.cloud-divider{
    display:none;
}

.button-group{
    flex-direction:column;
}

.btn-primary{
    width:100%;
}

}


/* ===============================
   SMALL MOBILE
================================*/
@media (max-width:480px){

.form-title{
    font-size:22px;
}

.input-group input{
    font-size:13px;
}

.brand-description{
    font-size:12px;
}

.sidebar-footer{
    font-size:10px;
}

}












/* HEADER */
.main-header{
width:100%;
font-family:'Poppins',sans-serif;
}

/* TOP BAR */
.top-bar{
background:#094561;
color:#fff;
display:flex;
justify-content:space-between;
padding:8px 40px;
font-size:13px;
}

.top-bar i{
margin-right:5px;
}

.top-bar span{
margin:0 10px;
opacity:0.5;
}

/* MIDDLE HEADER */

.middle-header {
    background: #ffffff;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: center; /* Keeps your content centered */
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    height: 80px; /* Fixed height as per your current setup */
}

/* Base Style for Shape Containers */
.header-shape-left, .header-shape-right {
    position: absolute;
    top: 0;
    width: 300px;
    height: 100%;
    pointer-events: none;
}

.header-shape-left { left: 0; }
.header-shape-right { right: 0; }

/* LEFT SIDE SHAPES */
.header-shape-left .shape-main {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #094561;
    clip-path: polygon(0 0, 70% 0, 40% 100%, 0% 100%);
}

.header-shape-left .shape-accent {
    position: absolute;
    width: 80%;
    height: 100%;
    background: #1cb5e0;
    clip-path: polygon(0 0, 30% 0, 60% 70%, 20% 70%);
    opacity: 0.9;
}

/* RIGHT SIDE SHAPES (Mirrored) */
.header-shape-right .shape-main {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    background: #094561;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 60% 100%);
}

.header-shape-right .shape-accent {
    position: absolute;
    right: 0;
    width: 80%;
    height: 100%;
    background: #1cb5e0;
    clip-path: polygon(70% 0, 100% 0, 80% 70%, 40% 70%);
    opacity: 0.9;
}

/* Content Protection */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 5; /* Ensures logo stays on top of shapes */
}

.logo-section img {
    height: 200px;
}

.logo-section h2 {
    color: #094561;
    font-size: 42px;
    font-weight: 600;
}
/* ================== RESPONSIVE HEADER WITH SHAPES ================== */

/* Small tablets / large devices */
@media (max-width: 1024px) {
    .middle-header {
        padding: 12px 25px;
        height: 70px;
    }

    .header-shape-left,
    .header-shape-right {
        width: 220px; /* shrink shape width */
    }

    .header-shape-left .shape-main,
    .header-shape-left .shape-accent,
    .header-shape-right .shape-main,
    .header-shape-right .shape-accent {
        transform: scale(0.9);
        transform-origin: center;
    }

    .logo-section img {
        height: 45px;
    }

    .logo-section h2 {
        font-size: 20px;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .middle-header {
        padding: 10px 15px;
        height: 60px;
        justify-content: center;
    }

    .header-shape-left,
    .header-shape-right {
        width: 150px; /* smaller shapes for mobile */
    }

    .header-shape-left .shape-main,
    .header-shape-left .shape-accent,
    .header-shape-right .shape-main,
    .header-shape-right .shape-accent {
        transform: scale(0.7); /* scale shapes proportionally */
        transform-origin: center;
    }

    .logo-section {
        gap: 10px;
    }

    .logo-section img {
        height: 38px;
    }

    .logo-section h2 {
        font-size: 18px;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .middle-header {
        padding: 8px 10px;
        height: 55px;
        justify-content: center;
    }

    .header-shape-left,
    .header-shape-right {
        width: 120px; /* tiny shapes */
    }

    .header-shape-left .shape-main,
    .header-shape-left .shape-accent,
    .header-shape-right .shape-main,
    .header-shape-right .shape-accent {
        transform: scale(1.55); /* scale down smaller phones */
        transform-origin: center;
    }

    .logo-section {
        gap: 8px;
    }

    .logo-section img {
        height: 32px;
    }

    .logo-section h2 {
        font-size: 16px;
    }
}
/* NAVBAR */

.navbar{
background:#094561;
}

.nav-menu{
display:flex;
justify-content:center;
list-style:none;
}

.nav-menu li{
margin:0;
}

.nav-menu a{
display:block;
padding:15px 30px;
color:#fff;
text-decoration:none;
font-size:14px;
font-weight:500;
transition:0.3s;
}

.nav-menu a i{
margin-right:8px;
}

.nav-menu a:hover{
background:#f55c2a;
color:#fff;
}

/* ACTIVE MENU */

.nav-menu a.active{
background:#f55c2a;
color:#fff;
}



/* HAMBURGER BUTTON */

.menu-toggle{
display:none;
font-size:22px;
color:#fff;
cursor:pointer;
padding:12px 20px;
}

/* MOBILE VIEW */

@media(max-width:768px){

.navbar{
position:relative;
}

/* show hamburger */

.menu-toggle{
display:block;
text-align:right;
}

/* hide menu */

.nav-menu{
display:none;
flex-direction:column;
background:#094561;
width:100%;

/* important */
position:absolute;
top:100%;
left:0;

z-index:9999;
}

/* show menu */

.nav-menu.active{
display:flex;
}

/* menu items */

.nav-menu a{
padding:15px 20px;
border-top:1px solid rgba(255,255,255,0.1);
}

}




/* DROPDOWN MENU */

.dropdown{
position:relative;
}

/* hide submenu */

.submenu{
display:none;
position:absolute;
top:100%;
left:0;
background:#094561;
list-style:none;
min-width:180px;
z-index:999;
}

/* submenu links */

.submenu li a{
display:block;
padding:12px 20px;
color:#fff;
font-size:14px;
border-top:1px solid rgba(255,255,255,0.1);
}

/* hover effect */

.submenu li a:hover{
background:#f55c2a;
}

/* show dropdown */

.dropdown:hover .submenu{
display:block;
}



/* Sub-dropdown wrapper */
.sub-dropdown {
    position: relative;
}

/* Sub-submenu hidden by default */
.sub-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #094561;
    list-style: none;
    min-width: 180px;
    z-index: 999;
}

/* Sub-submenu links */
.sub-submenu li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Hover effect for sub-submenu links */
.sub-submenu li a:hover {
    background: #f55c2a;
}

/* Show sub-submenu on hover */
.sub-dropdown:hover .sub-submenu {
    display: block;
}

/* Right arrow icon for sub-dropdown */
.sub-dropdown > a i {
    float: right;
}

@media(max-width:768px){

.submenu{
position:static;
width:100%;
}

}

@media(max-width:768px){
    .submenu,
    .sub-submenu {
        position: static;
        width: 100%;
        display: none; /* hide initially */
    }

    .submenu.active,
    .sub-submenu.active {
        display: block;
    }
}
@media(max-width:768px){
    .sub-submenu li a {
        padding-left: 40px; /* indent second-level menu */
    }
}











/* FORM CONTAINER */

.student-form-container{

width:90%;
max-width:1200px;
margin:50px auto;
background:#ffffff;
border-radius:12px;

position:relative;
transform-style:preserve-3d;

box-shadow:
0 15px 25px rgba(0,0,0,0.10),
0 30px 60px rgba(0,0,0,0.08),
inset 0 1px 0 rgba(255,255,255,0.9);

transition:0.4s;

overflow:hidden;

}


/* 3D HOVER FLOAT */

.student-form-container:hover{

transform:translateY(-8px);

box-shadow:
0 25px 45px rgba(0,0,0,0.15),
0 40px 80px rgba(0,0,0,0.12);

}


/* HEADER BAR */

.form-heading{

background:#094561;
color:#fff;
padding:18px;
margin:0;
font-size:22px;
font-weight:600;
letter-spacing:0.5px;
text-align:left;
border-radius:10px 10px 0px 0px;
box-shadow:
0 4px 10px rgba(0,0,0,0.2),
inset 0 1px 0 rgba(255,255,255,0.2);
margin-bottom: 20px;
}


/* ICON */

/* ICON */

.form-heading i{
margin-right:8px;
font-size:22px;
}


/* FORM */

.student-form{
padding:35px;
}


/* ROW */

.form-row{
display:flex;
gap:20px;
margin-bottom:20px;
}


/* FORM GROUP */

.form-group{
flex:1;
display:flex;
flex-direction:column;
}


/* LABEL */

.form-group label{

font-size:13px;
font-weight:500;
margin-bottom:6px;
color:#000;

}


/* 3D INPUT FIELDS */

.form-group input,
.form-group select,
.form-group textarea{

padding:10px;
border-radius:6px;
border:1px solid #dfe3ea;
font-size:14px;

background:#f8f9fc;

box-shadow:
inset 3px 3px 6px rgba(0,0,0,0.08),
inset -3px -3px 6px rgba(255,255,255,0.9);

transition:0.3s;

}


/* INPUT HOVER */

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover{

border-color:#1e88e5;
background:#fff;

}


/* INPUT FOCUS */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{

border-color:#1e88e5;

box-shadow:
0 0 0 2px rgba(30,136,229,0.15),
inset 2px 2px 4px rgba(0,0,0,0.05);

background:#fff;
outline:none;

transform:scale(1.02);

}


/* TEXTAREA */

.form-group textarea{
height:90px;
resize:none;
}


/* FULL WIDTH */

.full-width{
flex:100%;
}


/* BUTTON AREA */

.form-button{
text-align:center;
margin-top:30px;
}


/* 3D BUTTON */

.save-btn{

border-style: none;
    border-color: inherit;
    border-width: medium;
    background: #094561;
    color:#fff;
    padding:12px 40px;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    letter-spacing:0.5px;

    position:relative;

    box-shadow:
0 6px 0 #f55c2a,
0 12px 20px rgba(0,0,0,0.2);

    transition:0.2s;
    top: 0px;
    left: -38px;
    width: 138px;
}


/* BUTTON HOVER */

.save-btn:hover{

transform:translateY(-3px);

box-shadow:
0 9px 0 #f55c2a,
0 18px 30px rgba(0,0,0,0.25);

}


/* BUTTON PRESS */

.save-btn:active{

transform:translateY(4px);

box-shadow:
0 2px 0 #1565c0;

}





.save-btn1 {
    border-style: none;
    border-color: inherit;
    border-width: medium;
    background: #1cb5e0;
    color: #fff;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    box-shadow: 0 6px 0 #f55c2a, 0 12px 20px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
    top: -78px;
    left: -38px;
    width: 138px;
}


/* BUTTON HOVER */

.save-btn1:hover{

transform:translateY(-3px);

box-shadow:
0 9px 0 #f55c2a,
0 18px 30px rgba(0,0,0,0.25);

}


/* BUTTON PRESS */

.save-btn1:active{

transform:translateY(4px);

box-shadow:
0 2px 0 #1565c0;

}

/* Default button styling already provided above */

/* Media Query for tablets (max-width: 992px) */
@media (max-width: 992px) {
    .save-btn1 {
        padding: 10px 35px;
        font-size: 13px;
        width: 120px;
        top: -60px;
        left: -30px;
    }
}

/* Media Query for mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .save-btn1 {
        padding: 8px 30px;
        font-size: 12px;
        width: 110px;
        top: -73px;
        left: -20px;
    }
}

/* Media Query for small mobile screens (max-width: 480px) */
@media (max-width: 480px) {
    .save-btn1 {
        padding: 6px 25px;
        font-size: 11px;
        width: 100px;
        top: -65px;
        left: -6px;
    }
    .form-heading {
    font-size: 16px;
    }
    
}









/* MOBILE */

@media(max-width:768px){

.form-row{
flex-direction:column;
}

}


.input, .select {
    width: 100% !important;
}
.select, .input {
    width: 100%;
    padding: 10px 12px;      /* equal padding for both */
    height: 40px;            /* same height */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}
.form-group label {
    margin-bottom: 6px;  /* increase or decrease */
    display: block;
}














/* TABLE CONTAINER */

.student-table-container{
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;

    padding: 0;              /* FIX */
    padding-bottom: 30px;    /* KEEP SPACE BELOW */

    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.6);

    transition: 0.3s;
}

.student-table-container:hover{
transform:translateY(-5px);
box-shadow:0 30px 60px rgba(0,0,0,0.18);
}

/* TABLE TITLE */

/* SAME AS TOP BLUE HEADER */
.table-title {
   background: #094561;
    color: #fff;
    padding: 18px;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;

    /* EXACT SAME SHADOW */
    box-shadow:
        0 4px 10px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);

    
    border-radius: 10px 10px 0 0;

    /* REMOVE PILL EFFECT */
    display: block;
    width: 100%;
    margin-bottom: 35px;
}
/* TABLE */

.student-table{
width:100%;
border-collapse:collapse;
font-family:'Poppins',sans-serif;
}

/* HEADER */

.student-table thead{
background:#094561;
color:#fff;
}

.student-table th{
padding:14px;
text-align:center;
font-weight:500;
}

/* BODY */

.student-table td{
padding:14px;
text-align:center;
background:#f5f7fb;

box-shadow:
inset 1px 1px 3px rgba(0,0,0,0.1),
inset -1px -1px 3px rgba(255,255,255,0.9);

transition:0.3s;
}

/* ROW HOVER */

.student-table tbody tr:hover td{
background:#fff3ed;
transform:scale(1.01);
}

/* ROW BORDER */

.student-table tr{
border-bottom:1px solid #e5e7eb;
}

.student-table {
    width: auto;            /* Table width fits content */
    max-width: 90%;         /* Ensure table doesn’t get too wide */
    margin: 0 auto;         /* Center horizontally inside container */
}










/* Make the icon stylish */
.table-title i {
    background: #0a6ebd;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}



@media (max-width: 768px) {

    /* Make container scrollable, not the table itself */
    .student-table-container {
        overflow-x: auto;   /* scroll horizontally if needed */
        padding: 10px 20px; /* spacing inside container */
    }

    /* Table behaves normally inside scrollable container */
    .student-table {
        width: 100%;        /* table fills container */
        min-width: 600px;   /* adjust based on table content */
        border-collapse: collapse;
        
    }

    /* Adjust title for mobile */
    .table-title {
        font-size: 18px;
        padding: 10px 16px;
        width: fit-content;
        margin: 0 auto;         /* center inside container */
        letter-spacing: 0.3px;
        transform: none;        /* remove transform for proper centering */
    }

    .table-title i {
        padding-right: 6px;
        font-size: 14px;
    }

    /* Reduce cell padding & font size */
    .student-table th,
    .student-table td {
        font-size: 13px;
        padding: 8px 10px;
        text-align: center;
    }
}


@media (max-width: 768px) {

    /* Table title for mobile */
    .table-title {
        font-size: 18px;               /* Slightly smaller */
        padding: 12px 16px;            /* Top/bottom and left/right spacing */
        width: auto;                    /* Fit content width */
        max-width: 100%;                /* Don't overflow container */
        margin: 0 auto 20px auto;       /* Center + bottom spacing */
        text-align: center;             /* Always center text */
        letter-spacing: 0.3px;
        border-radius: 10px 10px 0 0;  /* Keep rounded corners */
        box-sizing: border-box;         /* Ensure padding included in width */
    }

    /* Adjust icon inside title */
    .table-title i {
        font-size: 16px;
        padding: 8px;
        margin-right: 6px;
        background: #0a6ebd;
        border-radius: 50%;
        color: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
}







.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding:10px;
}

.stat-card {
    height: 150px;
    border-radius: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

/* LEFT CONTENT */
.stat-left h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-left h2 {
    font-size: 32px;
    margin: 0;
}

/* ICON */
.stat-icon i {
    font-size: 45px;
    opacity: 0.9;
}

/* BLUE CARD */
.card-blue {
    background: linear-gradient(135deg, #094561);
}
.card-blue::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    top: -80px;
    right: -100px;
}

/* PURPLE CARD */
.card-purple {
    background: linear-gradient(135deg, #f55c2a);
}
.card-purple::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    top: -80px;
    right: -100px;
}

/* ORANGE CARD */
.card-orange {
    background: linear-gradient(135deg, #094561 );
}
.card-orange::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    top: -80px;
    right: -100px;
}

/* GREEN CARD */
.card-green {
    background: linear-gradient(135deg,#f55c2a);
}
.card-green::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    top: -80px;
    right: -100px;
}
/* ============================
   RESPONSIVE MEDIA QUERIES
   ============================ */

/* -------- 1024px (Tablets Landscape) -------- */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .stat-card {
        height: 140px;
        padding: 20px;
    }

    .stat-icon i {
        font-size: 40px;
    }

    .stat-left h2 {
        font-size: 28px;
    }
}

/* -------- 768px (Tablets Portrait & small devices) -------- */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        height: 130px;
        padding: 18px;
    }

    .stat-icon i {
        font-size: 35px;
    }

    .stat-left h2 {
        font-size: 26px;
    }

    .stat-left h4 {
        font-size: 16px;
    }
}

/* -------- 480px (Mobile Phones) -------- */
@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        height: 120px;
        padding: 16px;
        border-radius: 15px;
    }

    .stat-icon i {
        font-size: 32px;
    }

    .stat-left h2 {
        font-size: 24px;
    }

    .stat-left h4 {
        font-size: 14px;
    }
}

/* ============================
   ANIMATIONS
============================ */

/* Fade-in + slide-up when loading */
.stat-card {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeUp {
    0% {
        transform: translateY(25px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stagger effect for each card */
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Hover Lift Effect */
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    transition: 0.3s ease-in-out;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

/* Icon Floating Animation */
.stat-icon i {
    animation: floatIcon 2s infinite ease-in-out;
}

@keyframes floatIcon {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}




/* BOX */
.fees-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #d9e4ea;
    margin: 20px auto;
    max-width: 1200px;
}

/* HEADING */
.fees-heading {
    font-size: 22px;
    font-weight: 700;
    color: #094561;
    margin-bottom: 25px;
    border-left: 4px solid #094561;
    padding-left: 10px;
}

/* ONE SINGLE ROW */
.fees-row {
    display: flex;
    gap: 20px;
    width: 100%;
    overflow-x: auto; /* safe on mobile */
    padding-bottom: 10px;
}

/* FIELD BOX (Height Reduced Version) */
.fees-field {
    width: 100%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    background: #d4e5f2;
    border-bottom: 2px solid #0945618c;
    border-radius: 6px 6px 0 0;

    /* ↓ Reduced Height ↓ */
    padding: 6px 12px; 
    height: 48px;

    position: relative;
    box-sizing: border-box;
}

/* LABEL */
.fees-field label {
    font-size: 12px;
    color: #5b7a8c;
    font-weight: 600;
    margin-bottom: 2px;
}

/* INPUT / SELECT */
.fees-text,
.fees-drop {
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 700;
    color: #094561;
    outline: none !important;
    width: 100%;
    appearance: none;
}

/* ICONS (× / ▼) */
.field-action {
    position: absolute;
    right: 10px;

    /* ↓ Adjusted for reduced height ↓ */
    bottom: 8px;

    background: #094561;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ON FOCUS */
.fees-field:focus-within {
    background: #c5dbe9;
    border-bottom: 2px solid #000;
}