:root {
  /* Colors */
  --color-midnight-navy: #0b3558;
  --color-signal-blue: #006bff;
  --color-slate-blue: #476788;
  --color-carbon: #0a0a0a;
  --color-paper: var(--color-paper);
  --color-mist: #f8f9fb;
  --color-fog: #e7edf6;
  --color-mist-border: #d4e0ed;
  --color-silver: #e6e6e6;
  --color-steel-blue: #a6bbd1;
  --color-info-blue: #004eba;
  --color-magenta-bloom: #e55cff;
  --color-ultraviolet: #8247f5;
  --color-amber-spark: #ffa600;
  --color-cyan-pop: #0099ff;

  /* Typography */
  --font-gilroy: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Border Radius */
  --radius-inputs: 4px;
  --radius-buttons: 4px;
  --radius-cards: 8px;
  --radius-badges: 50px;
  --radius-productmockups: 16px;

  /* Shadows */
  --shadow-sm: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 4px 10px 0px, rgba(71, 103, 136, 0.05) 0px 10px 20px 0px;
  --shadow-md: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 8px 15px 0px, rgba(71, 103, 136, 0.08) 0px 30px 50px 0px;
  --shadow-lg: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 8px 15px 0px, rgba(71, 103, 136, 0.06) 0px 15px 30px 0px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-gilroy);
  color: var(--color-carbon);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-midnight-navy);
}

body.admin-page {
  display: flex;
  min-height: 100vh;
  background: var(--color-mist);
  color: var(--color-carbon);
}

/* SIDEBAR */
.sidebar {  background: var(--color-paper);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  border-right: 1px solid var(--color-mist-border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 40px;
}

.brand-circle img {
  width: 34px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-nav a {
  text-decoration: none;
  color: var(--color-carbon);
  font-size: 16px;
  font-weight: 550;
  padding-left: 10px;
  position: relative;
}

.sidebar-nav a.active::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: var(--color-signal-blue);
  border-radius: 4px;
}

.logout-btn {
  margin-top: auto;
  border: none;
  padding: 12px;
  border-radius: var(--radius-cards);
  background: #eaeaea;
  cursor: pointer;
}

/* MAIN */
.main-content {
  flex: 1;
  padding: 40px 50px;
}

/* HEADER */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.top-header h1 {
  font-size: 32px;
  font-weight: 700;
}
.header-controls{
display:flex;
align-items:center;
gap:12px;
margin-left:auto;
margin-right:20px;
}

.header-search{
padding:6px 12px;
border-radius: var(--radius-cards);
border:1px solid var(--color-mist-border);
font-size:13px;
width:180px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* NOTIFICATION */
.notification {
  position: relative;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-mist-border);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: var(--radius-productmockups);
  font-weight: 600;
}

.notif-item {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
}

.notif-item:hover {
  background: var(--color-fog);
}

/* PROFILE */
.profile-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-paper);
  padding: 8px 18px;
  border-radius: 40px;
  border: 1px solid var(--color-mist-border);
}

.profile-avatar {
  width: 38px;
  height: 38px;
  background: var(--color-signal-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-weight: 600;
  font-size: 14px;
}

.profile-email {
  font-size: 12px;
  color: var(--color-slate-blue);
}

/* APPROVAL SUMMARY */
.approval-summary {
  background: #fff7ed;
  border: 1px solid #fde68a;
  padding: 12px 18px;
  border-radius: var(--radius-cards);
  font-size: 14px;
  margin-bottom: 25px;
  color: #92400e;
}

/* STATS */
.stats-container {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 220px;
  background: var(--color-paper);
  padding: 20px 22px;
  border-radius: var(--radius-cards);
  border: 1px solid var(--color-mist-border);
}

.stat-card h3 {
  font-size: 13px;
  color: var(--color-slate-blue);
  margin-bottom: 8px;
}

.stat-card .stat-number {
  font-size: 26px;
  font-weight: 700;
}

.date-input {
width: 100%;
padding: 12px 14px;
border: 1px solid var(--color-mist-border);
border-radius: var(--radius-cards);
font-size: 14px;
background: white;
cursor: pointer;
}

/* SECTIONS */
.dashboard-section {
  background: var(--color-paper);
  padding: 25px;
  border-radius: var(--radius-cards);
  border: 1px solid var(--color-mist-border);
  margin-bottom: 30px;
}

.dashboard-section h2 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
}

th {
  background: #eef0f5;
  font-weight: 600;
}

tbody tr {
  border-bottom: 1px solid var(--color-mist-border);
}

tbody tr:hover {
  background: #f8f9fc;
}

/* STATUS BADGES */
.status-badge {
  padding: 4px 10px;
  border-radius: var(--radius-productmockups);
  font-size: 12px;
  font-weight: 600;
}

.status-approved {
  background: #dcfce7;
  color: #166534;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* ACTIONS */
.actions span {
  cursor: pointer;
  font-size: 18px;
  color: var(--color-slate-blue);
}

.actions span:hover {
  color: var(--color-signal-blue);
}

.actions button{
padding:5px 10px;
font-size:12px;
}

/* ANIMATION */
/* Fade animation reused */
.fade-in {
  animation: fadeUp 0.5s ease forwards;
}

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

/* EMPLOYEE TABLE ACTION ICON */
.actions span {
  cursor: pointer;
  font-size: 18px;
  color: var(--color-slate-blue);
}

.actions span:hover {
  color: var(--color-signal-blue);
}

/* TABLE IMPROVEMENT */
.dashboard-section table th:last-child,
.dashboard-section table td:last-child {
  width: 160px;
  text-align: right;
}

.actions{
display:flex;
justify-content:flex-end;
align-items:center;
gap:8px;
}

.approve-btn{
padding:6px 10px;
}

.reject-btn{
padding:6px 10px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  width: 750px;
  background: var(--color-paper);
  padding: 35px;
  border-radius: var(--radius-productmockups);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.modal-content {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 600;
  color: var(--color-signal-blue);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--color-slate-blue);
}

.form-group input {
  padding: 10px 12px;
  border-radius: var(--radius-cards);
  border: 1px solid var(--color-mist-border);
  font-size: 14px;
}

.modal-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.primary-btn {
  padding: 10px 20px;
  background: var(--color-signal-blue);
  color: white;
  border: none;
  border-radius: var(--radius-cards);
  cursor: pointer;
}

.secondary-btn {
  padding: 10px 20px;
  background: var(--color-mist-border);
  border: none;
  border-radius: var(--radius-cards);
  cursor: pointer;
}

/* EDIT BUTTON */
.edit-btn {
  padding: 6px 14px;
  background: #eef2ff;
  color: var(--color-signal-blue);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-cards);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.edit-btn:hover {
  background: var(--color-signal-blue);
  color: white;
}

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

.multi-select {
  position: relative;
  width: 100%;
}

.select-box {
  padding: 10px 12px;
  border-radius: var(--radius-cards);
  border: 1px solid var(--color-mist-border);
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid var(--color-mist-border);
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.checkbox-dropdown label {
  font-size: 14px;
  cursor: pointer;
  display: flex;
  gap: 8px;
}

.client-search {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid var(--color-mist-border);
  font-size: 13px;
}

.checkbox-dropdown {
  max-height: 250px;
  overflow-y: auto;
}

.client-code {
  background: #e0e7ff;
  color: var(--color-signal-blue);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-inactive {
  background: #fee2e2;
  color: #991b1b;
}

/* =========================
   CLIENT MODAL (ISOLATED)
========================= */

.client-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.client-modal-overlay.active {
  display: flex;
}

.modern-client-modal {
  width: 650px;
  background: var(--color-paper);
  border-radius: var(--radius-productmockups);
  padding: 30px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
  animation: clientModalFade 0.25s ease;
}

@keyframes clientModalFade {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* HEADER */
.client-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.client-modal-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.client-modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
}

.client-modal-close:hover {
  opacity: 1;
}

/* GRID */
.client-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 25px;
}

.client-input-group {
  display: flex;
  flex-direction: column;
}

.client-input-group label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #475569;
}

.client-input-group input,
.client-input-group select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  transition: all 0.2s ease;
}

.client-input-group input:focus,
.client-input-group select:focus {
  outline: none;
  border-color: var(--color-signal-blue);
  box-shadow: 0 0 0 3px rgba(31,78,216,0.1);
}

/* FOOTER */
.client-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.client-btn-primary {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: var(--color-signal-blue);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.client-btn-primary:hover {
  background: #163bb3;
}

.client-btn-secondary {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: var(--color-mist-border);
  font-weight: 600;
  cursor: pointer;
}

/* EMPLOYEE MODAL LOADING */

.modal-loading {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(3px);
  border-radius: var(--radius-productmockups);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}

.modal-loading.active {
  display: flex;
}

.loader {
  width: 35px;
  height: 35px;
  border: 4px solid var(--color-mist-border);
  border-top: 4px solid var(--color-signal-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* TABLE LOADING */

.table-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 0;
}

.table-loading.hidden {
  display: none;
}

#employeeTable.hidden {
  display: none;
}

/* Flatpickr smooth open */

.flatpickr-calendar {
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  animation: calendarFade 0.18s ease;
}

@keyframes calendarFade {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--color-signal-blue) !important;
  border-color: var(--color-signal-blue) !important;
}

.flatpickr-day.today {
  border-color: var(--color-signal-blue) !important;
}

.client-btn-primary.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.client-btn-primary.success {
  background: #16a34a;
}

.client-btn-primary .btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.hidden {
  display: none !important;
}

#clientsTable {
  transition: opacity 0.2s ease;
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.pagination button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-mist-border);
  background: white;
  cursor: pointer;
}

.pagination .active-page {
  background: var(--color-signal-blue);
  color: white;
  border-color: var(--color-signal-blue);
}

.table-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.search-input {
  padding: 8px 14px;
  border-radius: var(--radius-cards);
  border: 1px solid var(--color-mist-border);
  width: 240px;
  font-size: 14px;
  transition: 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-signal-blue);
  box-shadow: 0 0 0 3px rgba(31,78,216,0.1);
}

.header-search {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  width: 160px;
  transition: 0.2s ease;
}

.header-search:focus {
  outline: none;
  border-color: var(--color-signal-blue);
  box-shadow: 0 0 0 2px rgba(31,78,216,0.1);
}

/* TABS */
.leave-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.leave-actions{
display:flex;
gap:8px;
align-items:center;
justify-content:flex-end;
white-space:nowrap;
}

.leave-table td:last-child{
width:160px;
text-align:right;
}

.tab {
  padding: 8px 18px;
  border-radius: var(--radius-productmockups);
  border: 1px solid var(--color-mist-border);
  background: white;
  cursor: pointer;
  font-weight: 600;
}

.tab.active {
  background: var(--color-signal-blue);
  color: white;
  border-color: var(--color-signal-blue);
}

/* SIDEBAR BADGE */
.sidebar-badge {
  background: #ef4444;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-productmockups);
  margin-left: 6px;
}

/* GRID */
.leave-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* CARD */
.request-card {
  background: #f8fafc;
  border: 1px solid var(--color-mist-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  transition: 0.3s ease;
}

.approved-glow {
  box-shadow: 0 0 0 3px rgba(22,163,74,0.4);
  border-color: #16a34a;
}

.request-body { flex: 1; }

.request-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.employee-name {
  font-weight: 600;
  font-size: 16px;
}

.meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.pill {
  background: #eef2ff;
  color: var(--color-signal-blue);
  padding: 4px 10px;
  border-radius: var(--radius-productmockups);
  font-size: 12px;
  font-weight: 600;
}

.request-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: var(--color-slate-blue);
  font-weight: 500;
}

.request-card.approved {
  animation: glowGreen 0.5s ease;
}

@keyframes glowGreen {
  0% { box-shadow: 0 0 0 rgba(34,197,94,0); }
  50% { box-shadow: 0 0 20px rgba(34,197,94,0.6); }
  100% { box-shadow: 0 0 0 rgba(34,197,94,0); }
}

/* Fade out animation */
.fade-out {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-cards);
  color: white;
  font-weight: 500;
  min-width: 220px;
  animation: slideIn 0.3s ease;
}

.toast.success {
  background: #16a34a;
}

.toast.error {
  background: #dc2626;
}

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

.leave-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.leave-table th {
  background: var(--color-fog);
  text-align: left;
  padding: 12px;
  font-weight: 600;
  color: #374151;
}

.leave-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-mist-border);
}

.leave-table tr:hover {
  background: #f9fafb;
}

.approve-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.reject-btn {
  background: var(--color-mist-border);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

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

.reject-btn:hover {
  background: #d1d5db;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.confirm-overlay.hidden {
  display: none;
}

.confirm-box {
  background: white;
  padding: 28px;
  border-radius: 16px;
  width: 380px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  animation: scaleIn 0.2s ease;
}

.confirm-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.confirm-box p {
  margin-bottom: 20px;
  color: var(--color-slate-blue);
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-cancel {
  background: var(--color-mist-border);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-cards);
  cursor: pointer;
}

.confirm-ok {
  background: var(--color-signal-blue);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-cards);
  cursor: pointer;
}

.confirm-ok:hover {
  background: #1d4ed8;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0 }
  to { transform: scale(1); opacity: 1 }
}

.notification-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  background: white;
  width: 260px;
  border-radius: var(--radius-cards);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  padding: 10px 0;
  z-index: 999;
}

.notification-dropdown.show {
  display: block;
}

.notif-item {
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
}

.notif-item:hover {
  background: var(--color-fog);
}

.notif-item.clickable {
  cursor: pointer;
}

.mini-approve {
  background: #16a34a;
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 5px;
}

.mini-reject {
  background: #dc2626;
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

/* LEAVE FORM GRID */

.leave-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  background: rgba(30, 35, 50, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-productmockups);
  padding: 35px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--color-slate-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-mist-border);
  font-size: 14px;
}

.form-group textarea {
  height: 120px;
  resize: none;
}

.hours-toggle {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hour-btn {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  cursor: pointer;
  font-weight: 600;
}

.hour-btn.active {
  background: var(--color-signal-blue);
  color: white;
  border-color: var(--color-signal-blue);
}

.submit-wrapper {
  margin-top: 35px;
  text-align: center;
}

/* Smooth hover card */
.leave-form-grid {
  transition: all 0.3s ease;
}
.leave-form-grid:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.15);
}

.ot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 25px;
}

#otDate,
#otHours,
#otDescription {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-mist-border);
  font-size: 14px;
}

#otDescription {
  min-height: 140px;
  resize: none;
  line-height: 1.5;
}

#otDate:focus,
#otHours:focus,
#otDescription:focus {
  outline: none;
  border-color: var(--color-signal-blue);
  box-shadow: 0 0 0 3px rgba(31,78,216,0.1);
}

/* =========================
   OT TOAST
========================= */

.ot-toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.ot-toast {
  min-width: 260px;
  padding: 14px 18px;
  border-radius: var(--radius-cards);
  font-weight: 500;
  color: white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  animation: otSlideIn 0.3s ease;
}

.ot-toast.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.ot-toast.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

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

/* =========================
   ADD EMPLOYEE MODAL
========================= */

.add-employee-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.add-employee-modal.active {
  display: flex;
}

.add-employee-box {
  width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: addEmployeePop 0.25s ease;
}

.add-employee-box h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.add-employee-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

@keyframes addEmployeePop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* =========================
EDIT EMPLOYEE MODAL
========================= */

/* =========================
EDIT EMPLOYEE MODAL
========================= */

.edit-employee-modal{
position:fixed;
top:0;
left:0;
width:100vw;
height:100vh;
background:rgba(0,0,0,0.35);
display:none;
align-items:center;
justify-content:center;
z-index:99999;
}

.edit-employee-modal.active{
display:flex;
}

.edit-employee-box{
width: 700px;
  max-height: 90vh;
  overflow-y: auto;
background:white;
padding:30px;
border-radius:16px;
box-shadow:0 30px 60px rgba(0,0,0,0.18);
display:flex;
flex-direction:column;
gap:16px;

position:relative;
margin:auto;
}

/* =========================
   MODERN DARK UI OVERRIDES 
   ========================= */
:root {
  --bg-dark: #0f172a;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
}

body, body.admin-page, body.employee-page {
  background-color: #f8fafc !important;
  background-image: 
    radial-gradient(at 0% 0%, hsla(210, 100%, 95%, 1) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(240, 100%, 97%, 1) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(280, 100%, 95%, 1) 0, transparent 50%) !important;
  background-attachment: fixed !important;
  color: #1e293b !important;
}

.sidebar {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 2px 0 10px rgba(0,0,0,0.02) !important;
}

.sidebar-brand {
  color: #0f172a !important;
}

.sidebar-nav a {
  color: #64748b !important;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  color: #0f172a !important;
}

.sidebar-nav a.active::before {
  background: #3b82f6 !important;
}

.stat-card, .dashboard-section, .profile-box, .notification, .modal-box, .modern-client-modal, .notification-dropdown, .leave-form-grid, .ot-form-card, .add-employee-box, .edit-employee-box, .confirm-box {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  color: #1e293b !important;
  border-radius: 20px !important;
}

.stat-card h3, .profile-email, .form-group label, .client-input-group label, th {
  color: #475569 !important;
}

/* ==========================================================================
   MODERN MAX UI OVERHAUL (V2)
   ========================================================================== */

body.admin-page {
  background: radial-gradient(at 0% 0%, hsla(220,100%,96%,1) 0, transparent 40%), 
              radial-gradient(at 100% 0%, hsla(280,100%,97%,1) 0, transparent 40%), 
              #f8fafc !important;
  color: #0f172a !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}

.sidebar {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.sidebar-nav a {
  transition: all 0.25s ease;
  border-radius: var(--radius-cards);
  padding: 12px 16px !important;
  margin-left: 0 !important;
  margin-bottom: 4px;
}

.sidebar-nav a:hover {
  background: rgba(241, 245, 249, 0.6);
  transform: translateX(4px);
}

.sidebar-nav a.active {
  background: #1d4ed8 !important;
  color: var(--color-paper) !important;
  box-shadow: 0 8px 16px rgba(29, 78, 216, 0.25) !important;
  transform: translateY(-2px);
}

.sidebar-nav a.active::before {
  display: none !important; /* hide the old bar */
}

/* CARDS / SECTIONS */
.dashboard-section, .stat-card, .profile-box, .notification {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 1) !important;
  box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.05) !important;
}

.dashboard-section {
  padding: 35px 40px !important;
}

/* TABS (Segmented Control) */
.leave-tabs {
  display: inline-flex !important;
  background: rgba(241, 245, 249, 0.8) !important;
  padding: 6px !important;
  border-radius: 99px !important;
  gap: 4px !important;
  margin-bottom: 30px !important;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.leave-tabs .tab {
  background: transparent !important;
  border: none !important;
  padding: 10px 24px !important;
  border-radius: 99px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 14px !important;
}

.leave-tabs .tab:hover {
  color: #1e293b !important;
}

.leave-tabs .tab.active {
  background: #1d4ed8 !important;
  color: var(--color-paper) !important;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3) !important;
}

/* TABLES */
table {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
  width: 100% !important;
}

th {
  background: transparent !important;
  border-bottom: none !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-weight: 700 !important;
  padding: 0 24px 12px 24px !important;
}

tbody tr {
  background: var(--color-paper) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02) !important;
  border-radius: 16px !important;
  border: 1px solid #f8fafc !important;
  transition: all 0.2s ease !important;
}

tbody tr:hover {
  transform: translateY(-2px) scale(1.002) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  z-index: 2;
  position: relative;
}

tbody td {
  padding: 18px 24px !important;
  border: none !important;
  color: #334155 !important;
  font-weight: 500;
}

tbody td:first-child {
  border-top-left-radius: 16px !important;
  border-bottom-left-radius: 16px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

tbody td:last-child {
  border-top-right-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

/* STATUS BADGES */
.status-badge {
  padding: 6px 14px !important;
  border-radius: 99px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-approved, .status-active {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
}

.status-pending {
  background: #fffbeb !important;
  color: #d97706 !important;
  border: 1px solid #fde68a !important;
}

.status-rejected, .status-inactive {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
}

/* BUTTONS */
.approve-btn, .reject-btn {
  padding: 8px 16px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.approve-btn {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

.approve-btn:hover {
  background: #0284c7 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.reject-btn {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.reject-btn:hover {
  background: #dc2626 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}



/* Calendly Decorative Blobs */
body.admin-page {
  position: relative;
  overflow-x: hidden;
  z-index: 0;
}

body.admin-page::before,
body.admin-page::after {
    content: '';
    position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

body.admin-page::before {
  top: -100px;
  right: -200px;
  background: radial-gradient(circle, var(--color-magenta-bloom), var(--color-ultraviolet));
}

body.admin-page::after {
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, var(--color-cyan-pop), var(--color-amber-spark));
}

button {
  border-radius: var(--radius-buttons) !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

button:hover {
  box-shadow: var(--shadow-md);
}

.stat-card, .dashboard-section, .leave-card {
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.stat-card:hover, .dashboard-section:hover, .leave-card:hover {
  box-shadow: var(--shadow-md);
}

.modal-box, .profile-box {
  box-shadow: var(--shadow-lg);
}

input, select, textarea {
  border-radius: var(--radius-inputs) !important;
}



a { text-decoration: none !important; }


