/* ===============================
   GLOBAL RESET
=================================*/
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:whitesmoke;
    color:#0f172a;
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

/* ===============================
   HEADER
=================================*/
/* TOP HEADER */
.top-header {
    height: 65px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background: linear-gradient(to right, #0072ff, #00c1f7);
    z-index: 1000;
}

/* LOGO AREA */
.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;                /* Important */
    min-width: 0;           /* Prevent overflow */
}

/* LOGO */
.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    flex-shrink: 0;         /* Prevent logo shrinking */
}

/* TITLE */
.logo-area h1 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* LOGOUT BUTTON */
.logout-btn {
    background: #ef4444;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

/* MENU BUTTON */
.menu-toggle {
    font-size: 22px;
    background: none;
    border: none;
    color: white;
    margin-right: 10px;
}

/* MOBILE FIX */
@media (max-width: 480px) {

    .top-header {
        padding: 0 10px;
    }

    .logo-img {
        height: 35px;
        width: 35px;
    }

    .logo-area h1 {
        font-size: 15px;
    }

    .logout-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ===============================
   SIDEBAR
=================================*/
.sidebar{
    width:250px;
    position:fixed;
    top:70px;
    bottom:50px;
    left:0;
background: linear-gradient(to right,  #0072ff ,#00c6ff);

    padding-top:20px;
    transition:0.3s ease;
    color:#cbd5e1;
    z-index:999;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    margin:8px 0;
}

.sidebar a{
    display:block;
    padding:12px 20px;
    color:#cbd5e1;
    text-decoration:none;
    border-radius:6px;
    margin:0 10px;
    transition:0.3s;
}

.sidebar a:hover{
    background:#ffffff;
    color:#0072ff;
}
/* ===============================
   MENU TOGGLE
=================================*/
.menu-toggle{
    display:none;
    background:none;
    border:none;
    font-size:24px;
    color:#fff;
    cursor:pointer;
    margin-right:10px;
}

/* ===============================
   CONTENT WRAPPER
=================================*/
.content-wrapper{
    margin-left:250px;
    padding:100px 30px 80px 30px;
    flex:1;
    display:flex;
    justify-content:center;
}

.content-inner{
    width:100%;
    max-width:900px;
}

/* ===============================
   CARD
=================================*/
.glass-card{
    width:100%;
    padding:30px;
    background:#ffffff;
    border-radius:12px;
    box-shadow:0 8px 25px rgba(0,0,0,0.15);
}

.glass-card h1,
.glass-card h2{
    margin-bottom:20px;
    color:#0056cc
    
}

.glass-card h3{
    color:#0056cc
}
.glass-card p{
    color:#0072ff;
    line-height:1.6;
    margin-bottom:20px;
}
@media (max-width: 768px) {
    h2 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }
}
/* ===============================
   INPUTS
=================================*/
.glass-card input{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border-radius:6px;
    border:1px solid #134e4a;
    background:whitesmoke;
    color:#000;
}

.glass-card input:focus{
    outline:none;
   border-color:#0072ff;
box-shadow:0 0 10px rgba(0,114,255,0.5);
}

/* ===============================
   BUTTONS
=================================*/
.btn-primary{
    background: linear-gradient(to right, #00c6ff, #0072ff);

    border:none;
    padding:10px 20px;
    border-radius:6px;
    color:#fff;
    cursor:pointer;
    transition:0.3s;
}

.btn-primary:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 15px rgba(15,118,110,0.4);
}

.btn-secondary{
    background:white;
    color:#0072ff;
    border:none;
    padding:10px 20px;
    border-radius:6px;
    cursor:pointer;
    transition:0.3s;
}

.btn-secondary:hover{
    background:#f1f5f9;
}


.btn-thirdary{
    background:#d1d5db;
    color:#0f172a;
    border:none;
    padding:10px 20px;
    border-radius:6px;
    cursor:pointer;
    transition:0.3s;
}

.btn-thirdary:hover{
    background:#9ca3af;
}
 .btn-fourthary{
    background:#ef4444;
    color:#fff;
    border:none;
    padding:10px 20px;
    border-radius:6px;
    cursor:pointer;
    transition:0.3s;
}
.btn-fourthary:hover{
    background:#dc2626;
}
/* ===============================
   TABLE
=================================*/
.table-responsive{
    width:100%;
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    color: #0072ff;
}

table th{
    background: linear-gradient(to right, #0072ff, #0056cc);
    color:#fff;
    padding:12px;
    text-align:left;
}

table td{
    padding:12px;
    border-bottom:1px solid #eee;
}

table tr:hover{
    background:#f1f5f9;
}

/* ===============================
   FOOTER
=================================*/
.footer{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    background: linear-gradient(to right, #0072ff, #00c6ff);
    color: #fff;
    font-size: 13px;

    white-space: nowrap;        /* 🔥 Prevent line break */
    overflow: hidden;           
    text-overflow: ellipsis;    /* Show ... if small screen */
}

.footer a{
    color: #000;
    margin-left: 5px;
    font-weight: 600;
    text-decoration: none;
}

.footer a:hover{
    color: #1f2937;
}

@media(max-width:480px){
    .footer{
        font-size: 11px;
    }
}
/* ===============================
   RESPONSIVE
=================================*/
@media(max-width:992px){

    .menu-toggle{
        display:block;
    }

    .sidebar{
        left:-250px;
    }

    .sidebar.active{
        left:0;
    }

    .content-wrapper{
        margin-left:0;
        padding:100px 15px 80px 15px;
        justify-content:center;
    }
}

@media(max-width:480px){

    .logo-area h1{
        display:block;
        font-size:14px;
        line-height:1.2;
    }

}
/*===================login page====================/

/* HEADER */
.main-header {
    background: linear-gradient(to right, #0072ff, #00c6ff);
    padding: 15px 30px;
}

/* HEADER CONTAINER */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO SECTION */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LOGO IMAGE */
.logo {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
}

/* COMPANY NAME */
.company-name {
    color: #fff;
    font-size: 20px;
    font-weight:450;
    margin: 0;        /* Important: removes default h1 margin */
    white-space: nowrap;  /* Prevents line break */
}


/* Login Center */
.login-container{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
    margin-bottom: 80px;
}

/* Glass Login Card */
.login-card{
    width:100%;
    max-width:420px;
    padding:40px;
    border-radius:12px;
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.15);
    box-shadow:0 10px 40px rgba(0,0,0,0.5);
    animation:fadeSlide 0.8s ease;
   
}

@keyframes fadeSlide{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.login-card h2{
    text-align:center;
    margin-bottom:25px;
    font-weight:600;
    color:#0072ff;



 
}

/* Inputs */
.login-card input{
    width:100%;
    padding:12px 14px;
    margin-bottom:15px;
    border-radius:8px;
    border:1px solid #134e4a;
    background:whitesmoke;
    color:black;
    transition:0.3s;
       
        
        
}

.login-card input::placeholder{
    color:rgba(10, 2, 2, 0.6);
    
}

.login-card input:focus{
    outline:none;
    border-color:#0072ff;
box-shadow:0 0 10px rgba(0,114,255,0.5);

}

/* Buttons */
.button-group{
    display:flex;
    gap:10px;
    
}

.login-btn{
    flex:1;
    padding:10px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:500;
    transition:0.3s;
    color: white;
     
}


.login-btn:first-child{
    background: linear-gradient(to right, #00c6ff, #0072ff);
}

.login-btn:first-child:hover{
    transform:translateY(-2px);
    border-color:#0072ff;
box-shadow:0 0 10px rgba(0,114,255,0.5);
}

.login-btn:last-child{
    background: linear-gradient(to right, #0072ff, #0056cc);
}

.login-btn:last-child:hover{
    border-color:#0072ff;
box-shadow:0 0 10px rgba(0,114,255,0.5);
}
/* Error message */
.login-card div{
    color:#f87171;
    font-size:14px;
}
/* ===============================
   GLOBAL POPUP ANIMATION
=================================*/
.popup-message{
    position:fixed;
    top:25px;
    left:50%;
    transform:translateX(-50%) translateY(-80px);
    background:#ef4444;
    color:#fff;
    padding:12px 25px;
    border-radius:8px;
    font-size:14px;
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
    opacity:0;
    transition:all 0.4s ease;
    z-index:5000;
}

.popup-message.show{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}

/* Smooth animation */
button,
.logout-btn,
.glass-card,
.menu-toggle {
    transition: all 0.2s ease;
}

/* Click animation */
button:active,
.logout-btn:active,
.glass-card:active,
.menu-toggle:active {
    transform: scale(0.95);
}
