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

body {
  /* background-color:whitesmoke */
    background: linear-gradient(135deg, #eef2ff, #86cfff);
    min-height: 100vh;
}

/* Navbar */
.navbar {
  height: 60px;
  background: #343de1;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  margin-right: 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  background-color: #334155;
}

.nav-right {
  display: flex;
  align-items: center;
}

.navbar input {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
}

/* .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
} */

.avatar {
  width: 35px;
  height: 35px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Main Content */
.container {
  padding: 30px;
}






/* Attendance Page */
.attendance-actions {
  margin: 20px 0;
  display: flex;
  gap: 20px;
}

.btn {
  padding: 5px 16px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  color: black;
}

.checkin {
  background-color: #16a34a;
}

.checkout {
  background-color: #dc2626;
}

#statusMsg {
  margin: 15px 0;
  font-weight: bold;
}

/* Table */
.attendance-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.attendance-table th,
.attendance-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.attendance-table th {
  background: #f1f5f9;
}


/* ===== NEW ATTENDANCE ADDITIONS ===== */

.attendance-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.date-box{
  background:#fff;
  padding:10px 20px;
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

/* Employee attendance card */
.attendance-card{
  background:#fff;
  padding:25px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  max-width:500px;
  margin:auto;
  text-align:center;
}

.timer-box{
  background:#f4f6f9;
  padding:15px;
  border-radius:10px;
  margin-top:15px;
}

/* Status badges for ADMIN table */
.status-present{
  background:#d4edda;
  color:#155724;
  padding:4px 10px;
  border-radius:12px;
  font-size:12px;
}

.status-absent{
  background:#f8d7da;
  color:#721c24;
  padding:4px 10px;
  border-radius:12px;
  font-size:12px;
}





/* Leave Form */
.leave-form {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  margin-bottom: 30px;
}

.leave-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.leave-form input,
.leave-form select,
.leave-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.apply {
  background: #2563eb;
  margin-top: 15px;
}


.attendance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-box {
  background: white;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.date-box span {
  font-size: 12px;
  color: gray;
}

/* Disabled button style */
.btn:disabled {
  background-color: #9ca3af;  /* grey */
  cursor: not-allowed;
}




/* Dashboard Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card{
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card h3{
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 10px;
}

.card p{
  font-size: 32px;
  font-weight: bold;
  color: #111827;
}


/* Chart Box */
.chart-box {
  margin-top: 30px;
  background: white;
  padding: 20px;
  border-radius: 10px;
}


.charts-container {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.chart-box {
  flex: 1;
  background: white;
  
  padding: 20px;
  border-radius: 10px;
  height: 260px;   /* ⭐ add this line */
}


/* Auth background with fade */
.auth-body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(120deg,#0f172a,#1e293b);
  position: relative;
}

/* Dark overlay fade */
.auth-body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}

.auth-box {
  position: relative;
  z-index: 2;
  width: 330px;
  padding: 35px;
  border-radius: 12px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-box input,
.auth-box select {
  padding: 12px;
  border-radius: 6px;
  border: none;
  outline: none;
}

.auth-box button {
  padding: 12px;
  background: #facc15;
  color: black;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}


/* ============================= */
/* RESET */
/* ============================= */

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

.landing-body{
  background: radial-gradient(circle at 20% 20%, #16213e, #0f172a 70%);
  color:white;
  min-height:100vh;
  overflow-x:hidden;
}


/* ============================= */
/* NAVBAR */
/* ============================= */

.landing-nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:25px 10%;
}

.nav-logo{
  font-size:70px;
  font-weight:700;
  letter-spacing:1px;
}

.nav-actions a{
  margin-left:25px;
  text-decoration:none;
  font-weight:600;
  transition:0.3s ease;
}

/* Login */
.nav-login{
  color:black;
  cursor: pointer;
  padding:10px 20px;
  border-radius:30px;
  box-shadow:0 8px 20px rgba(250,204,21,0.4);
  background: #facc15;
}



/* Sign up button */
.nav-signup{
  color:white;
  cursor: pointer;
}

.nav-signup:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 25px rgba(250,204,21,0.6);
}


/* ============================= */
/* HERO SECTION */
/* ============================= */

.hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:60px 10%;
  height:85vh;
}


/* LEFT SIDE */
.hero-left{
  max-width:600px;
  animation:fadeUp 1s ease forwards;
}

.hero-left h1{
  font-size:54px;
  line-height:1.2;
  font-weight:700;
}

.hero-left h1 span{
  color:#facc15;
}

.hero-left p{
  margin-top:25px;
  font-size:18px;
  color:#cbd5e1;
  line-height:1.6;
}

.hero-btn{
  display:inline-block;
  margin-top:35px;
  padding:15px 32px;
  background:#facc15;
  color:black;
  font-weight:600;
  text-decoration:none;
  border-radius:40px;
  box-shadow:0 10px 25px rgba(250,204,21,0.4);
  transition:0.3s ease;
  cursor: pointer;
}

.blink-button {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-btn:hover{
  transform:translateY(-4px);
  box-shadow:0 15px 30px rgba(250,204,21,0.6);
}


/* ============================= */
/* RIGHT SIDE IMAGE */
/* ============================= */

.hero-right{
  position:relative;
  animation:fadeRight 1s ease forwards;
}

.hero-right img{
  width:310px;
  border-radius:20px;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.5),
    0 0 0 8px rgba(255,255,255,0.03);
  transition:0.4s ease;
  cursor: pointer;
}

.hero-right img:hover{
  transform:rotate(0deg) scale(1.06);
}

/* Glow effect behind image */
.hero-right::before{
  content:"";
  position:absolute;
  width:350px;
  height:350px;
  background:#facc15;
  filter:blur(120px);
  opacity:0.25;
  top:60px;
  right:40px;
  z-index:-1;
}


.status-Cancelled{
  background:#ffe2e2;
  color:#c0392b;
}

.cancel-btn{
  background:#e74c3c;
  color:white;
  border:none;
  padding:6px 12px;
  border-radius:6px;
  cursor:pointer;
}


/* ============================= */
/* ANIMATIONS */
/* ============================= */

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(40px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes fadeRight{
  from{
    opacity:0;
    transform:translateX(60px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}



/* MODAL BACKGROUND */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* show modal */
.modal.active {
  display: flex;
}

/* Glass login box */
.auth-box {
  width: 360px;
  padding: 35px 30px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Form layout */
.auth-box h2 {
  margin-bottom: 18px;
}

.auth-box input,
.auth-box select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: none;
}

.auth-box button {
  width: 100%;
  padding: 12px;
  background: #facc15;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 5px;
}

.auth-box p {
  text-align: center;
  margin-top: 10px;
}

.auth-box input {
  background: white;
}

/* Modal bottom links */
.auth-box p a {
  color: #facc15;
  font-weight: bold;
  cursor: pointer;   /* ⭐ makes hand cursor */
  text-decoration: none;
}

.auth-box p a:hover {
  text-decoration: underline;
}

/* Close (X) button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 18px;
  cursor: pointer;
  color: white;
}


/* ===== ROLE TOGGLE  ===== */
.role-toggle {
  width: 220px;
  margin: 0 auto 20px auto;
  background: rgba(255,255,255,0.15);
  border-radius: 30px;
  padding: 8px;
  display: flex;
}

.role-toggle button {
  flex: 1;
  border: none;
  padding: 8px 0;
  border-radius: 25px;
  background: transparent;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.role-toggle button.active {
  background: #facc15;
  color: black;
}


/* =========================
   LEAVE TRACKER NEW DESIGN
========================= */

.page-title{
  font-size:28px;
  margin-bottom:20px;
}

/* Tabs */
.leave-tabs{
  display:flex;
  gap:30px;
  border-bottom:1px solid #e5e7eb;
  margin-bottom:20px;
}

.tab{
  background:none;
  border:none;
  padding:12px 0;
  font-size:16px;
  cursor:pointer;
  color:#64748b;
}

.tab.active{
  color:#2563eb;
  border-bottom:3px solid #2563eb;
  font-weight:bold;
}

/* Top bar */
.leave-topbar{
  display:flex;
  justify-content:flex-end; /* button stays right */
  margin-bottom:20px;
}

.leave-filter{
  padding:8px 14px;
  border-radius:6px;
  border:1px solid #cbd5e1;
}

.apply-leave-btn{
  background:#2563eb;
  color:white;
  border:none;
  padding:10px 18px;
  border-radius:6px;
  cursor:pointer;
  font-weight:bold;
}

.apply-leave-btn:hover{
  background:#1d4ed8;
}

/* Main card */
.leave-main-card{
  background:white;
  border-radius:12px;
  padding:40px;
  min-height:350px;
  box-shadow:0 2px 8px rgba(0,0,0,0.05);
  display:flex;
  justify-content:center;
  align-items:center;
}

/* .leave-main-card h2{
  padding-bottom: 170px;
} */

/* Empty state */
.empty-state{
  text-align:center;
}

.empty-img{
  width:160px;
  margin-bottom:20px;
  opacity:0.9;
}

.primary-btn{
  margin-top:15px;
  padding:10px 20px;
  background:#2563eb;
  color:white;
  border:none;
  border-radius:6px;
  font-weight:bold;
  cursor:pointer;
}




/* Close button inside modal */
.modal-content{
  position: relative;   /* important */
}

.close-modal{
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 20px;
  cursor: pointer;
  color: #64748b;
  font-weight: bold;
}

.close-modal:hover{
  color: #ef4444;
}

.modal-content{
  background:white;
  padding:30px;
  width:750px;              /* ⭐ wider */
  border-radius:12px;
  box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

/* grid layout for form */
.modal-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:15px;
}

/* full width row */
.full-width{
  grid-column:span 2;
}

.modal-content input,
.modal-content select,
.modal-content textarea{
  width:100%;
  padding:10px;
  border-radius:6px;
  border:1px solid #ccc;
}

.modal-content textarea{
  height:90px;
}

.leave-table{
  width:100%;
  border-collapse:collapse;
}

.leave-table th,
.leave-table td{
  padding:12px;
  border-bottom:1px solid #e5e7eb;
  text-align:center;
}

.leave-table th{
  background:#d9dbeb;
}

/* Status badge */
.status-pending{
  background:#fef3c7;
  color:#92400e;
  padding:5px 10px;
  border-radius:20px;
  font-size:12px;
  font-weight:bold;
}


.balance-cards{
  display:flex;
  gap:20px;
}

.balance-card{
  flex:1;
  background:#f8fafc;
  padding:25px;
  border-radius:10px;
  text-align:center;
}

.balance-card h3{
  margin-bottom:10px;
}


.requests-topbar{
  display:flex;
  justify-content:flex-end;
  margin-bottom:15px;
}

#statusFilter{
  padding:8px 14px;
  border-radius:6px;
  border:1px solid #cbd5e1;
  cursor:pointer;
}


.status-badge{
  padding:5px 12px;
  border-radius:20px;
  font-size:12px;
  font-weight:bold;
}

/* Pending */
.status-Pending{
  background:#fef3c7;
  color:#92400e;
}

/* Approved */
.status-Approved{
  background:#dcfce7;
  color:#166534;
}

/* Rejected */
.status-Rejected{
  background:#fee2e2;
  color:#991b1b;
}

/* Cancelled */
.status-Cancelled{
  background:#e5e7eb;
  color:#374151;
}


.approve-btn{
  background:#22c55e;
  color:white;
  border:none;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
  margin-right:5px;
}

.reject-btn{
  background:#ef4444;
  color:white;
  border:none;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
}


/* REPORT PAGE */

.report-card{
  background:white;
  padding:25px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  margin-bottom:30px;
}

.report-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.filters{
  display:flex;
  gap:10px;
}

.report-table{
  width:100%;
  border-collapse:collapse;
}

.report-table th,
.report-table td{
  padding:12px;
  border-bottom:1px solid #eee;
  text-align:center;
}

.report-table th{
  background:#d9dbeb;
}

/* Loading spinner */
.loading{
  text-align:center;
  padding:40px;
}

.spinner{
  width:40px;
  height:40px;
  border:4px solid #e5e7eb;
  border-top:4px solid #3b82f6;
  border-radius:50%;
  margin:auto;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}

.hidden{ display:none; }

.error{
  background:#fee2e2;
  color:#b91c1c;
  padding:15px;
  border-radius:8px;
  margin-bottom:20px;
}

.empty{
  text-align:center;
  padding:30px;
  background:#f1f5f9;
  border-radius:12px;
}

.badge-green { color:#16a34a; font-weight:600; }
.badge-blue { color:#2563eb; font-weight:600; }
.badge-yellow { color:#ca8a04; font-weight:600; }
.badge-red { color:#dc2626; font-weight:600; }

/* ===== Mini analytics cards ===== */

.mini-cards{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:20px;
  margin:20px 0;
}

.mini-card{
  background:#f8fafc;
  padding:18px;
  border-radius:10px;
  text-align:center;
  box-shadow:0 3px 8px rgba(0,0,0,0.06);
}

.mini-card h4{
  color:#64748b;
  margin-bottom:8px;
}

.mini-card p{
  font-size:22px;
  font-weight:bold;
}

/* Loading spinner */
.loading{
  text-align:center;
  margin:20px 0;
}

.spinner{
  width:40px;
  height:40px;
  border:4px solid #e5e7eb;
  border-top:4px solid #3b82f6;
  border-radius:50%;
  animation:spin 1s linear infinite;
  margin:0 auto 10px;
}

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

.hidden{ display:none; }

.error{
  background:#fee2e2;
  color:#b91c1c;
  padding:12px;
  border-radius:8px;
  margin:15px 0;
}

.empty{
  text-align:center;
  padding:30px;
  color:#64748b;
}

/* ================= ADMIN ATTENDANCE ================= */

.attendance-admin-tabs{
  display:flex;
  gap:15px;
  margin-bottom:20px;
}

.attendance-admin-tabs button{
  padding:10px 18px;
  border:none;
  border-radius:8px;
  background:#e5e7eb;
  cursor:pointer;
  font-weight:600;
  transition:0.3s;
}

.attendance-admin-tabs button:hover{
  background:#3b82f6;
  color:white;
}

/* tab content */
.admin-tab{
  background:white;
  padding:25px;
  border-radius:12px;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

/* hide inactive tabs */
.hidden{
  display:none;
}

/* form layout */
#adminMarkTab select,
#adminMarkTab input{
  padding:10px;
  margin:8px 8px 8px 0;
  border-radius:6px;
  border:1px solid #d1d5db;
}

#adminMarkTab button{
  padding:10px 20px;
  background:#10b981;
  border:none;
  color:white;
  border-radius:8px;
  cursor:pointer;
  margin-top:10px;
}

/* tables inside admin tabs */
#adminDailyTab table,
#adminMonthlyTab table{
  width:100%;
  margin-top:15px;
  border-collapse:collapse;
  background:white;
}

#adminDailyTab th,
#adminDailyTab td,
#adminMonthlyTab th,
#adminMonthlyTab td{
  padding:12px;
  border-bottom:1px solid #eee;
  text-align:center;
}

/* status colors */
.status-present{ color:#16a34a; font-weight:bold; }
.status-absent{ color:#dc2626; font-weight:bold; }
.status-half{ color:#f59e0b; font-weight:bold; }



/* ================= EMPLOYEE ATTENDANCE SUMMARY ================= */

.attendance-summary{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:20px;
  margin-top:30px;
}

.summary-card{
  background:white;
  padding:20px;
  border-radius:12px;
  box-shadow:0 3px 10px rgba(0,0,0,0.08);
  text-align:center;
  transition:0.3s;
}

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

.summary-card h4{
  color:#64748b;
  font-size:13px;
}

.summary-card p{
  font-size:16px;
  font-weight:bold;
  margin-top:10px;
  color:#1e293b;
}



/* ================= EMPLOYEE ATTENDANCE NEW LAYOUT ================= */

.employee-attendance-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:40px;
  margin-top:30px;
}

/* Big main card */
.attendance-card.big{
  padding:30px;
}

.card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.card-header p{
  color:#64748b;
  font-weight:600;
}

.attendance-right{
  background:white;
  padding:25px;
  border-radius:14px;
  box-shadow:0 3px 12px rgba(0,0,0,0.08);
}

.section-title{
  margin-bottom:20px;
  color:#334155;
}

/* Summary cards grid */
.attendance-summary{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}

.summary-card{
  background:#f8fafc;
  padding:25px;
  border-radius:14px;
  text-align:center;
  transition:0.3s;
}

.summary-card:hover{
  transform:translateY(-5px);
  box-shadow:0 6px 15px rgba(0,0,0,0.08);
}

.summary-card h4{
  color:#64748b;
  font-size:12px;
}

.summary-card p{
  font-size:16px;
  font-weight:bold;
  margin-top:10px;
  color:#1e293b;
}

/* Progress bar */
.month-progress{
  margin-top:25px;
}

.progress-bar{
  width:100%;
  height:12px;
  background:#e2e8f0;
  border-radius:10px;
  overflow:hidden;
  margin-top:10px;
}

#attendanceProgress{
  height:100%;
  width:0%;
  background:#22c55e;
  transition:0.5s;
}

/* ===== EMPLOYEE ATTENDANCE NEW UI ===== */

.emp-attendance-grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:30px;
  margin-top:25px;
}

/* Profile card */
.emp-profile-card{
  background:white;
  padding:25px;
  border-radius:18px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.emp-profile{
  display:flex;
  align-items:center;
  gap:15px;
  margin:20px 0;
}

.emp-avatar-big{
  width:70px;
  height:70px;
  background:#3b82f6;
  color:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  font-weight:bold;
}

.status-green{
  color:#16a34a;
  font-weight:600;
}

.live-time{
  background:#f3f6fb;
  padding:20px;
  border-radius:12px;
  text-align:center;
}

/* Checkin card */
.emp-checkin-card{
  background:white;
  padding:25px;
  border-radius:18px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-row{
  display:flex;
  justify-content:space-between;
  margin:25px 0;
  width: 100%;
}

.big-check-btn{
  width:290px;
  padding:14px;
  border:none;
  border-radius:10px;
  background:#0ea5e9;
  color:white;
  font-size:16px;
  font-weight:bold;
  cursor:pointer;
  margin-top:10px;
  transition:.3s;
}

.big-check-btn:hover{
  background:#0284c7;
}

.big-check-btn.logout{
  background:#64748b;
}

/* Recent attendance */
.recent-attendance-card{
  margin-top:30px;
  background:white;
  padding:25px;
  border-radius:18px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  width: 100%;
  grid-column: 1 / -1;
}

.recent-attendance-card table{
  width: 100%;
}

/* ADMIN ATTENDANCE GRID */
.admin-attendance-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:30px;
  margin-top:20px;
}

.daily-card,.monthly-card{
  background:white;
  padding:25px;
  border-radius:18px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

.card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.admin-table{
  width:100%;
  border-collapse:collapse;
}
.admin-table th,.admin-table td{
  padding:12px;
  border-bottom:5px solid #eee;
  text-align:center;
}

.status-present{color:#16a34a;font-weight:bold;}
.status-absent{color:#dc2626;font-weight:bold;}
.status-half{color:#f59e0b;font-weight:bold;}

/* CALENDAR */
.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:10px;
  margin-top:20px;
}

.day-box{
  background:#f8fafc;
  padding:12px;
  border-radius:10px;
  text-align:center;
}

.present-dot{color:#16a34a;}
.absent-dot{color:#dc2626;}
.half-dot{color:#f59e0b;}

.month-stats{
  display:flex;
  gap:15px;
  margin-top:20px;
}
.stat{
  flex:1;
  padding:12px;
  border-radius:10px;
  text-align:center;
  font-weight:bold;
}
.present{background:#dcfce7;}
.absent{background:#fee2e2;}
.half{background:#fef3c7;}



/* ===== ADMIN CONTROL STYLING ===== */

.control-group{
  display:flex;
  gap:10px;
  align-items:center;
}

/* inputs + dropdown */
.control-group input,
.control-group select{
  padding:10px 14px;
  border-radius:8px;
  border:1px solid #d1d5db;
  background:#f8fafc;
  font-size:14px;
  outline:none;
  transition:0.3s;
}

.control-group input:focus,
.control-group select:focus{
  border-color:#3b82f6;
  background:white;
  box-shadow:0 0 0 3px rgba(59,130,246,0.15);
}

/* Load button */
.load-btn{
  padding:10px 18px;
  background:#3b82f6;
  color:white;
  border:none;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.load-btn:hover{
  background:#2563eb;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

/* calendar day dot */
.day-status-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  margin:6px auto 0;
}

.dot-present{ background:#16a34a; }
.dot-absent{ background:#dc2626; }
.dot-half{ background:#f59e0b; }


/* calendar status border */
.status-present-border{
  border-bottom:4px solid #16a34a;
}

.status-absent-border{
  border-bottom:4px solid #dc2626;
}

.status-half-border{
  border-bottom:4px solid #f59e0b;
}

/* ===== DASHBOARD STAT CARDS ===== */

.stat-card{
  position:relative;
  padding-top:35px;
}

.card h3{
  color:#64748b;   /* new heading color */
  font-size:16px;
  font-weight:600;
}

.card p{
  font-size:34px;
  margin-top:10px;
}

/* icon circle */
.card-icon{
  position:absolute;
  top:-18px;
  left:20px;
  width:45px;
  height:45px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:18px;
  box-shadow:0 6px 15px rgba(0,0,0,0.15);
}

/* icon colors */
.blue{ background:#3b82f6; }
.green{ background:#16a34a; }
.orange{ background:#f59e0b; }
.red{ background:#ef4444; }

/* ================= NEW SIDEBAR (ZOHO STYLE) ================= */

.sidebar{
  width:120px;
  height:100vh;
  background:#092d68;
  color:white;
  padding:25px 12px;
  position:fixed;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Logo */
.sidebar-logo{
  font-size:30px;
  margin-bottom:20px;
}

/* Menu container */
.sidebar-menu{
  display:flex;
  flex-direction:column;
  gap:22px;
  margin-top:20px;
}

/* Menu item */
.sidebar-menu a{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
  color:#cbd5e1;
  font-size:14px;
  gap:8px;
  padding:10px 8px;
  border-radius:12px;
  width:100%;
  transition:0.3s;
}

.sidebar-menu a i{
  font-size:22px;
}

/* Hover + Active */
.sidebar-menu a:hover,
.sidebar-menu a.active{
  background:#334155;
  color:white;
}

/* Main content shift */
.main-content{
  margin-left:120px;
  padding:30px 40px;
}

/* Profile bottom */
.sidebar-profile{
  margin-top:auto;      /* ⭐ pushes profile to bottom correctly */
  margin-bottom:25px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  position:relative;
}

.sidebar-profile span{
  font-size:12px;
  text-align:center;
}

/* PROFILE DROPDOWN FOR SIDEBAR */
.profile-dropdown{
  position:absolute;
  left:130px;
  top:0;
  width:180px;                 /* ⭐ make it bigger */
  background:white;
  border-radius:12px;
  box-shadow:0 20px 40px rgba(0,0,0,0.35);
  display:none;
  z-index:9999;
  padding:15px;
}
/* profile header inside dropdown */
/* .profile-dropdown::before{
  content:"Profile";
  display:block;
  font-size:12px;
  color:#64748b;
  margin-bottom:10px;
}

.profile-dropdown button{
  background:#ef4444;
  border:none;
  color:white;
  padding:8px 14px;
  border-radius:6px;
  cursor:pointer;
} */

.profile-dropdown button{
  width:100%;
  background:#ef4444;
  border:none;
  color:white;
  padding:10px;
  border-radius:8px;
  font-size:14px;
  cursor:pointer;
  transition:0.3s;
}

.profile-dropdown button:hover{
  background:#dc2626;
}

.profile-card{
  margin-top:30px;
  background:white;
  padding:30px;
  border-radius:18px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  display:flex;
  gap:40px;
  align-items:center;
}

.profile-left{
  text-align:center;
}

.profile-left img{
  width:150px;
  height:150px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:15px;
}

.profile-right{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.profile-right input{
  padding:10px;
  border-radius:8px;
  border:1px solid #ccc;
}

.profile-right button{
  width:200px;
  padding:12px;
  background:#3b82f6;
  color:white;
  border:none;
  border-radius:8px;
  cursor:pointer;
  margin-top:10px;
}

.role-badge{
  margin-top:10px;
  padding:6px 12px;
  border-radius:20px;
  font-size:12px;
  font-weight:bold;
  display:inline-block;
  background:#e0f2fe;
  color:#0369a1;
}

.sidebar-avatar-img{
  width:45px;
  height:45px;
  border-radius:50%;
  object-fit:cover;
}

.dashboard-card{
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
}

.view-all-link{
  color:#2563eb;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
}

/* .holiday-preview{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
} */

/* Holiday Container - Horizontal */
.holiday-preview {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    flex-wrap: wrap; /* responsive */
}

/* Each Holiday Box */
.holiday-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    position: relative;
}

/* Vertical Divider */
.holiday-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 10%;
    height: 80%;
    width: 1.7px;
    background: #5e6c80;
}

/* Date Block */
.holiday-date {
    text-align: center;
}

.holiday-date span {
    font-size: 13px;
    color: #151516;
}

.holiday-date h3 {
    margin: 0;
    font-size: 18px;
}

/* Holiday Name */
.holiday-info h4 {
    margin: 0;
    font-weight: 600;
}






/* ============================= */
/* RESPONSIVE */
/* ============================= */

/* @media(max-width:992px){
  .hero{
    flex-direction:column;
    text-align:center;
    height:auto;
  }

  .hero-right{
    margin-top:50px;
  }

  .hero-right img{
    width:90%;
    transform:none;
  }
} */












