
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

.text_danger{
    color:rgb(113, 22, 22)
}

body{
    background:#f4f7fb;
}

/* HEADER */

header{
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    color:#fff;
    padding:15px 25px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 4px 15px rgba(0,0,0,.15);
}

.deco_non{
    text-decoration: none;
}

.logo{
    font-size:24px;
    font-weight:bold;
    display:flex;
    align-items:center;
    gap:10px;
    
}

.logo a{
  text-decoration: none;
  color:#ddd;
}

nav{
    display:flex;
    gap:25px;
    align-items:center;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

nav a:hover{
    opacity:.8;
}

.user-profile{
    display:flex;
    align-items:center;
    gap:12px;
}

.user-profile img{
    width:45px;
    height:45px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.4);
    object-fit:cover;
}

.user-name{
    font-weight:bold;
}

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:white;
    font-size:24px;
    cursor:pointer;
}

/* BODY */

.container{
    padding:20px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
}

a .deco_non{
     text-decoration: none;
}

.card{
    position: relative;
    padding:20px;
    border-radius:18px;
    color:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    transition:.3s;
}

.card:hover{
    transform:translateY(-6px);
}

.green{
    background:linear-gradient(135deg,#10b981,#34d399);
}

.purple{
    background:linear-gradient(135deg,#7c3aed,#a78bfa);
}

.orange{
    background:linear-gradient(135deg,#f59e0b,#fbbf24);
}

.red{
    background:linear-gradient(135deg,#ef4444,#f87171);
}

.blue{
    background:linear-gradient(135deg,#2563eb,#60a5fa);
}

.value{
    font-size:30px;
    font-weight:bold;
    margin-top:10px;
}

.actions{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:12px;
    margin-top:20px;
}

button{
    border:none;
    padding:14px;
    border-radius:12px;
    color:#fff;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    opacity:.9;
} 


.b1{background:#10b981;}
.b2{background:#7c3aed;}
.b3{background:#f59e0b;}
.b4{background:#ef4444;}
.b5{background:#2563eb;} 

.btn-view {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-view:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-view:active {
    transform: translateY(1px);
}

/* for animation */
 .bounce-text {
    font-size: 2.5rem;
    color:#0056b3;
    font-weight: bold;
    display: inline-block;
    animation: bounce 3s ease-in-out infinite; /* Slow bounce */
  }

  /* Keyframes for bounce effect */
  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-20px); /* Move up */
    }
  }

  /* Animated text */
    .zoom-text {
        font-size: 2rem;
        animation: zoomInOut 4s ease-in-out infinite;
    }

    /* Keyframes for zoom in and out */
    @keyframes zoomInOut {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.5);
        }
    }
/* .front_name{
    color:#0056b3;
} */

.grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
    margin-top:20px;
}

.panel{
    background:#fff;
    border-radius:18px;
    padding:20px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    
}

.scroller{
    height: 400px;        /* Strict height constraints are required */
    overflow-y: auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

th,td{
    padding:12px;
    border-bottom:1px solid #eee;
    text-align:left;
}

th{
    background:#f3f4f6;
}

.modal{
    /* display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    justify-content:center;
    align-items:center; */

     display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center; /* Flexbox center horizontally */
    align-items: center;     /* Flexbox center vertically */
    z-index: 1000;

}

.box{
    /* background:#f34;
    padding:25px;
    border-radius:18px;
    width:90%;
    max-width:420px; */
     /* background: #fff;
    padding: 50px;
    width: 400px;
    max-width: 90%; 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s ease-in-out; */ 
     position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Center horizontally & vertically */
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        width: 420px;
        max-width: 90%;
   
} 

.box input{
    width:100%;
    padding:12px;
    margin:8px 0;
    border:1px solid #ddd;
    border-radius:10px;
}

.box1{
    background:#fff;
    padding:25px;
    border-radius:18px;
    width:90%;
    max-width:920px;
     display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:20px;
}

.box1 input{
    width:100%;
    padding:12px;
    margin:8px 0;
    border:1px solid #ddd;
    border-radius:10px;
}

.notice{
    position:fixed;
    right:20px;
    top:20px;
    background:#10b981;
    color:#fff;
    padding:14px 18px;
    border-radius:10px;
    display:none;
} 

.close{
    position:absolute;
    right:15px;
    top:10px;
    font-size:25px;
    cursor:pointer;
}

.auth-container{
    width:100%;
    max-width:1200px;
}

.auth-header{
    text-align:center;
    margin-bottom:25px;
}

.auth-header h1{
    color:#2563eb;
    margin-bottom:10px;
}

.auth-header p{
    color:#6b7280;
}

.auth-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
}

.panel{
    background:#fff;
    border-radius:18px;
    padding:30px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}



.register-panel{
    border-top:6px solid #10b981;
}

.form-title{
    margin-bottom:20px;
    color:#111827;
}

.form-group{
    margin-bottom:10px;
}

.form-group label{
    display:block;
    margin-bottom:4px;
    font-weight:600;
    color:#374151;
}

.form-group input,
.form-group select{
    width:100%;
    padding:7px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
}

.form-group input:focus,
.form-group select:focus{
    border-color:#2563eb;
}






.footer{
    margin-top:30px;
    background:linear-gradient(135deg,#1e3a8a,#7c3aed);
    color:#fff;
}

.footer-content{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    padding:30px 20px;
}

.footer-brand h3{
    margin-bottom:10px;
}

.footer-links{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.footer-links a{
    color:#fff;
    text-decoration:none;
    transition:.3s;
    /* text-align: center; */
}

.footer-links a:hover{
    padding-left:5px;
}

.footer-contact p{
    margin-bottom:10px;
}

.footer-bottom{
    text-align:center;
    padding:15px;
    border-top:1px solid rgba(255,255,255,.15);
    background:rgba(0,0,0,.15);
    font-size:14px;
} 

.profile-card {
        text-align: center;
    }

    .profile-card img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 15px;
        border: 5px solid #2563eb;
    }

    .info-item {
        background: #f8fafc;
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .chart-box {
        height: 350px;
    }

    @media(max-width:900px) {

        .grid {
            grid-template-columns: 1fr;
        }

        table {
            display: block;
            overflow-x: auto;
            white-space: nowrap;
        }

        .chart-box {
            height: 300px;
        } 

        .panel{
             display: block;
            overflow-x: auto;
            white-space: nowrap;
        } 
        .box1{ 
            background:#fff;
            padding:25px;
            border-top: 0px;
            border-radius:18px;
            width:90%;
        /* grid-template-columns:1fr; */
            max-width:420px;
   
        }

    }

@media(max-width:768px){
    .footer-content{
        text-align:center;
    }

    .footer-links{
        align-items:center;
    }
}

/* MOBILE */



    



@media(max-width:900px){

    header{
        flex-wrap:wrap;
    }

    .menu-toggle{
        display:block;
    }

    nav{
        display:none;
        width:100%;
        flex-direction:column;
        margin-top:15px;
        gap:10px;
        background:rgba(255,255,255,.1);
        padding:15px;
        border-radius:12px;
    }

    .box1{
    background:#fff;
    padding:25px;
    border-radius:18px;
    width:90%;
    max-width:420px;
   
    } 

    .auth-grid{
        grid-template-columns:1fr;
    }

    nav.active{
        display:flex;
    }

    nav a{
        width:100%;
        padding:10px;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .actions{
        grid-template-columns:1fr;
    }

    /* table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    } */

    .user-profile{
        margin-left:auto;
    }
}



.count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #292929;
    color: #fff;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}