/* Global CSS Variables & Theme Setup */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Primary & Accent Colors */
  --bg-color: #0b0f19;
  --bg-sidebar: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(31, 41, 55, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --primary-color: #0d9488;
  --primary-hover: #0f766e;
  --primary-glow: rgba(13, 148, 136, 0.25);
  
  --accent-indigo: #6366f1;
  --accent-indigo-soft: rgba(99, 102, 241, 0.15);
  --accent-teal: #14b8a6;
  --accent-teal-soft: rgba(20, 184, 166, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.15);
  --accent-rose: #f43f5e;
  --accent-rose-soft: rgba(244, 63, 94, 0.15);
  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.15);

  /* Typography Colors */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* UI Constants */
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --glass-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 15px 35px -5px rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables Override */
body.light-theme {
  --bg-color: #f1f5f9; /* Slate 100 */
  --bg-sidebar: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(241, 245, 249, 0.8);
  --border-color: rgba(0, 0, 0, 0.08);
  
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94a3b8; /* Slate 400 */
  
  --glass-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Outer layout */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Top Header */
.main-header {
  height: 70px;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  position: relative;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--accent-teal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

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



.role-selector-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.user-dropdown {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  outline: none;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.user-dropdown:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.notification-bell {
  position: relative;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
}

.notification-bell:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.notification-bell .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--accent-rose);
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 10px;
  line-height: 1;
}

/* Sidebar and Main Layout */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.user-profile-brief {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.avatar-container {
  position: relative;
}

.avatar-container img,
.avatar-container .avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-teal);
}

.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-indigo));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.mock-account-card .avatar-initials {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.user-tag .avatar-initials {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-sidebar);
}

.status-indicator.online {
  background-color: var(--accent-emerald);
}

.user-meta h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.user-meta span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sidebar-nav {
  flex: 1;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.nav-item i {
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
  background-color: rgba(13, 148, 136, 0.08);
}

.nav-item:hover a, .nav-item.active a {
  color: var(--accent-teal);
}

.nav-item.active i {
  color: var(--accent-teal);
  transform: scale(1.1);
}

.nav-badge {
  margin-left: auto;
  background-color: var(--accent-rose);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(244, 63, 94, 0.2);
}

/* Sidebar Footer */
.sidebar-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* Main Content Panes */
.content-pane-container {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  position: relative;
}

.content-pane {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.pane-header {
  margin-bottom: 28px;
}

.pane-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.pane-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Stats Row Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.bg-teal-soft { background-color: var(--accent-teal-soft); }
.bg-indigo-soft { background-color: var(--accent-indigo-soft); }
.bg-amber-soft { background-color: var(--accent-amber-soft); }
.bg-rose-soft { background-color: var(--accent-rose-soft); }

.text-teal { color: var(--accent-teal); }
.text-indigo { color: var(--accent-indigo); }
.text-amber { color: var(--accent-amber); }
.text-rose { color: var(--accent-rose); }

.stat-info span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text-primary);
}

/* Attendance Control Area */
.attendance-card-wrapper {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .attendance-card-wrapper {
    grid-template-columns: 1fr;
  }
}

.attendance-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(13, 24, 45, 0.9));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
}

.attendance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.clock-display-large {
  text-align: center;
  padding: 16px 0;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.date-large {
  font-size: 0.9rem;
  color: var(--accent-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.time-large {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.clock-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn {
  padding: 12px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-clock {
  flex-direction: column;
  padding: 16px;
  height: 90px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.btn-clock:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-clock .btn-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 4px;
}

.btn-clock .btn-subtext {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.btn-masuk {
  border-color: rgba(20, 184, 166, 0.3);
}
.btn-masuk:hover {
  background: var(--accent-teal);
  color: #fff;
  border-color: var(--accent-teal);
}
.btn-masuk:hover .btn-subtext { color: rgba(255, 255, 255, 0.8); }

.btn-keluar-siang {
  border-color: rgba(245, 158, 11, 0.3);
}
.btn-keluar-siang:hover {
  background: var(--accent-amber);
  color: #fff;
  border-color: var(--accent-amber);
}
.btn-keluar-siang:hover .btn-subtext { color: rgba(255, 255, 255, 0.8); }

.btn-masuk-siang {
  border-color: rgba(99, 102, 241, 0.3);
}
.btn-masuk-siang:hover {
  background: var(--accent-indigo);
  color: #fff;
  border-color: var(--accent-indigo);
}
.btn-masuk-siang:hover .btn-subtext { color: rgba(255, 255, 255, 0.8); }

.btn-pulang {
  border-color: rgba(244, 63, 94, 0.3);
}
.btn-pulang:hover {
  background: var(--accent-rose);
  color: #fff;
  border-color: var(--accent-rose);
}
.btn-pulang:hover .btn-subtext { color: rgba(255, 255, 255, 0.8); }

/* Disabling Clock Buttons when clicked */
.btn-clock.disabled, .btn-clock:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.01) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-color) !important;
}

/* Timeline Log */
.attendance-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
}

.today-timeline {
  flex: 1;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  margin: auto;
  padding: 20px 0;
}

.timeline-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 8px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 30px;
  bottom: -6px;
  width: 1px;
  background: var(--border-color);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-item.Masuk .timeline-marker { background-color: var(--accent-teal-soft); color: var(--accent-teal); border-color: var(--accent-teal); }
.timeline-item.Keluar_Siang .timeline-marker { background-color: var(--accent-amber-soft); color: var(--accent-amber); border-color: var(--accent-amber); }
.timeline-item.Masuk_Siang .timeline-marker { background-color: var(--accent-indigo-soft); color: var(--accent-indigo); border-color: var(--accent-indigo); }
.timeline-item.Pulang .timeline-marker { background-color: var(--accent-rose-soft); color: var(--accent-rose); border-color: var(--accent-rose); }

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--accent-teal);
  font-weight: 700;
}

.timeline-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 2px 0;
}

.timeline-info {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Sections and Tables */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
}

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

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
}

/* Selfie Thumbnails */
.selfie-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.selfie-thumb:hover {
  transform: scale(1.1);
  border-color: var(--accent-teal);
}

/* Badge styling */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.badge-success { background-color: var(--accent-emerald-soft); color: var(--accent-emerald); }
.badge-warning { background-color: var(--accent-amber-soft); color: var(--accent-amber); }
.badge-danger { background-color: var(--accent-rose-soft); color: var(--accent-rose); }
.badge-info { background-color: var(--accent-indigo-soft); color: var(--accent-indigo); }

/* Task Layout */
.tasks-grid {
  display: grid;
  grid-template-columns: 4fr 3fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .tasks-grid {
    grid-template-columns: 1fr;
  }
}

.tasks-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-card-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.task-card-item:hover, .task-card-item.active {
  background: rgba(20, 184, 166, 0.03);
  border-color: var(--accent-teal);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.task-header h4 {
  font-size: 1rem;
  font-weight: 600;
}

.task-progress-box {
  margin-top: 12px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-teal));
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Forms & UI Elements */
.styled-form .form-group {
  margin-bottom: 18px;
}

.styled-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .styled-form .form-row {
    grid-template-columns: 1fr;
  }
}

.styled-form label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
}

.styled-form input[type="text"],
.styled-form input[type="number"],
.styled-form input[type="date"],
.styled-form select,
.styled-form textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-smooth);
}

.styled-form input:focus,
.styled-form select:focus,
.styled-form textarea:focus {
  border-color: var(--accent-teal);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.read-only-box {
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  color: var(--accent-teal);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Slider Design */
.slider-wrapper {
  margin-top: 10px;
}

.slider-wrapper input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-teal);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: var(--transition-smooth);
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* File Upload Zone */
.file-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
}

.file-dropzone:hover {
  border-color: var(--accent-teal);
  background-color: rgba(20, 184, 166, 0.02);
}

.dropzone-icon {
  font-size: 1.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dropzone-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dropzone-text span {
  color: var(--accent-teal);
  font-weight: 600;
}

.file-rules {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.file-preview-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.file-preview-area i {
  color: var(--accent-teal);
}

.file-preview-area .file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-file-btn {
  background: none;
  border: none;
  color: var(--accent-rose);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* History lists (Cuti, Reimburse) */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 450px;
  overflow-y: auto;
}

.history-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition-smooth);
}

.history-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.history-card-header h4 {
  font-size: 0.95rem;
}

.history-card-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.history-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.view-receipt-link {
  color: var(--accent-teal);
  text-decoration: none;
  cursor: pointer;
}
.view-receipt-link:hover {
  text-decoration: underline;
}

/* Modal Window Layout */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  display: flex;
  opacity: 1;
}

.modal-box {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.modal-backdrop.show .modal-box {
  transform: scale(1);
}

.modal-box-large {
  width: 600px;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}

/* Camera and Verification elements */
.media-container {
  width: 100%;
  height: 200px;
  background-color: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
}

.live-clock-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.live-clock-card:hover {
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.clock-icon-wrapper {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 184, 166, 0.15);
  flex-shrink: 0;
}

.clock-icon {
  color: var(--accent-teal);
  font-size: 0.8rem;
  animation: clock-tick 1s infinite alternate;
}

.live-pulse {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  border: 1px solid var(--bg-sidebar);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.clock-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.clock-time {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.clock-date {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 1px;
  text-transform: capitalize;
}

.webcam-preview-feed, .captured-image-result {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-fallback-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(17, 24, 39, 0.9);
  color: var(--text-secondary);
  font-size: 0.85rem;
  gap: 8px;
}

.camera-actions-row {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.location-verification-box {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.location-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.location-status-badge.info { background-color: rgba(99, 102, 241, 0.1); color: var(--accent-indigo); border: 1px solid rgba(99, 102, 241, 0.2); }
.location-status-badge.success { background-color: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.2); }
.location-status-badge.error { background-color: rgba(244, 63, 94, 0.1); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.2); }

.gps-coordinates-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.01);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

/* Supervisor sub-tabs design */
.sub-tabs-container {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.sub-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sub-tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.02);
}

.sub-tab-btn.active {
  color: #fff;
  background-color: var(--accent-teal);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.sub-tab-content {
  display: none;
}

.sub-tab-content.active {
  display: block;
}

/* Form layout splits */
.split-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

.flex-2 { flex: 2; }
.flex-3 { flex: 3; }

/* Supervisor approvals card list */
.approval-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.approval-item-card {
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.approval-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.user-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-tag img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-tag-info {
  display: flex;
  flex-direction: column;
}

.user-tag-info h5 {
  font-size: 0.85rem;
  font-weight: 600;
}

.user-tag-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.approval-item-body {
  font-size: 0.88rem;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.approval-item-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Helpers */
.hidden { display: none !important; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Animations */
@keyframes clock-tick {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Leaflet dark theme override */
.leaflet-container {
  background: #0f172a !important;
}
.leaflet-bar a {
  background-color: var(--bg-sidebar) !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-color) !important;
}
.leaflet-tile {
  filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3);
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--bg-sidebar) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

/* Light Theme Overrides */
body.light-theme .attendance-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(226, 232, 240, 0.95));
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .time-large {
  background: linear-gradient(180deg, #0f172a 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .approval-item-card {
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-theme .leaflet-tile {
  filter: none;
}

body.light-theme .leaflet-container {
  background: #e2e8f0 !important;
}

body.light-theme .timeline-content {
  background: rgba(255, 255, 255, 0.8);
}

body.light-theme .task-card-item {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

body.light-theme .history-card {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

body.light-theme .btn-clock {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .btn-clock .btn-subtext {
  color: var(--text-secondary);
}

body.light-theme .btn-clock:disabled,
body.light-theme .btn-clock.disabled {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  opacity: 0.55 !important;
}

body.light-theme .btn-clock:disabled .btn-title,
body.light-theme .btn-clock.disabled .btn-title {
  color: var(--text-muted) !important;
}

body.light-theme .btn-clock:disabled .btn-subtext,
body.light-theme .btn-clock.disabled .btn-subtext {
  color: var(--text-muted) !important;
}

body.light-theme .btn-clock:disabled i,
body.light-theme .btn-clock.disabled i {
  color: var(--text-muted) !important;
}

/* Login & Register Premium Split Layout Styling */

.login-wrapper {
  display: none;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: var(--bg-color);
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-image: 
    radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.12) 0px, transparent 50%);
  overflow-y: auto;
}

.login-theme-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10000;
}

body.user-logged-out .login-wrapper {
  display: flex;
}

body.user-logged-out .app-container {
  display: none !important;
}

/* Split container card */
.login-split-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: split-container-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes split-container-enter {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* LEFT SIDE: Branding and Mission */
.login-branding-side {
  flex: 1.2;
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?q=80&w=800&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  border-right: 1px solid var(--border-color);
}

/* Soft dark green overlay for high-contrast text and beautiful tint */
.login-branding-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.85), rgba(17, 24, 39, 0.92));
  z-index: 1;
}

.branding-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.branding-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.branding-logo-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #14b8a6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.4);
}

.branding-logo-text h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.branding-logo-text span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #14b8a6;
  font-weight: 600;
}

.branding-middle {
  margin: auto 0;
}

.branding-slogan {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(120deg, #ffffff, #a7f3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.branding-desc {
  font-size: 0.92rem;
  color: rgba(229, 231, 235, 0.85);
  line-height: 1.6;
}

.branding-stats {
  display: flex;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.brand-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-stat-icon {
  font-size: 1.4rem;
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.15);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-stat-info {
  display: flex;
  flex-direction: column;
}

.brand-stat-info strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.brand-stat-info span {
  font-size: 0.72rem;
  color: rgba(229, 231, 235, 0.7);
}

/* RIGHT SIDE: Auth Card Holder */
.login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  background: rgba(17, 24, 39, 0.2);
}

.login-form-side .login-card {
  width: 100%;
  max-width: 400px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  text-align: left;
  animation: form-fade-in 0.4s ease-out;
}

@keyframes form-fade-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-logo-header {
  display: none;
  text-align: center;
  margin-bottom: 24px;
}

.mobile-logo-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 2px;
}

.mobile-logo-header p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.auth-header {
  margin-bottom: 24px;
}

.auth-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Custom form groups and inputs with integrated icons */
.form-group-custom {
  margin-bottom: 18px;
}

.form-group-custom label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.input-icon-wrapper input,
.input-icon-wrapper select {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 12px 14px 12px 42px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-smooth);
}

.input-icon-wrapper select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
}

.input-icon-wrapper input:focus,
.input-icon-wrapper select:focus {
  border-color: var(--accent-teal);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-icon-wrapper input:focus + .input-icon,
.input-icon-wrapper select:focus + .input-icon {
  color: var(--accent-teal);
  transform: translateY(-50%) scale(1.05);
}

.form-row-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.password-hint {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 6px;
}

.login-btn {
  margin-top: 8px;
  height: 46px;
  width: 100%;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.login-btn:hover {
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

.auth-alternative {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

.auth-alternative a {
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: var(--transition-smooth);
}

.auth-alternative a:hover {
  text-decoration: underline;
  color: #14b8a6;
}

/* Sandbox accounts drawer */
.sandbox-auth-section {
  margin-top: 24px;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.login-divider:not(:empty)::before { margin-right: .8em; }
.login-divider:not(:empty)::after { margin-left: .8em; }

.mock-accounts-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mock-account-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-account-card img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-color);
  transition: var(--transition-smooth);
}

.mock-account-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mock-account-info strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.mock-account-info span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.mock-play-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.mock-account-card:hover {
  background: rgba(20, 184, 166, 0.04);
  border-color: rgba(20, 184, 166, 0.3);
  transform: translateX(4px);
}

.mock-account-card:hover img {
  border-color: var(--accent-teal);
}

.mock-account-card:hover .mock-play-indicator {
  background: var(--accent-teal);
  color: #ffffff;
  border-color: var(--accent-teal);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Sidebar Logout Hover Styling */
.sidebar-nav .nav-logout-item:hover {
  background-color: var(--accent-rose-soft) !important;
}

.sidebar-nav .nav-logout-item:hover a {
  color: var(--accent-rose) !important;
}

/* -------------------------------------------------------------
   LIGHT THEME OVERRIDES FOR LOGIN & REGISTER
   ------------------------------------------------------------- */
body.light-theme .login-wrapper {
  background-image: 
    radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);
}

body.light-theme .login-split-container {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--glass-shadow), 0 20px 40px rgba(0, 0, 0, 0.05);
}

body.light-theme .login-form-side {
  background: rgba(255, 255, 255, 0.1);
}

body.light-theme .input-icon-wrapper input,
body.light-theme .input-icon-wrapper select {
  background-color: rgba(255, 255, 255, 0.8);
}

body.light-theme .input-icon-wrapper input:focus,
body.light-theme .input-icon-wrapper select:focus {
  background-color: #ffffff;
}

body.light-theme .mock-account-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .mock-account-card:hover {
  background: rgba(20, 184, 166, 0.05);
}

body.light-theme .mock-play-indicator {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

/* -------------------------------------------------------------
   RESPONSIVENESS / MEDIA QUERIES
   ------------------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  margin-right: 4px;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

body.light-theme .mobile-menu-btn {
  background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 820px) {
  .login-split-container {
    max-width: 480px;
    min-height: auto;
    flex-direction: column;
  }
  
  .login-branding-side {
    display: none;
  }
  
  .mobile-logo-header {
    display: block;
  }
  
  .login-form-side {
    padding: 32px 24px;
  }
  
  .form-row-custom {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.35);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
  }
  
  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
  
  .live-clock-card {
    display: none; /* Hide mini clock on mobile header */
  }
  
  .main-header {
    padding: 0 16px;
  }
  
  .logo-text h1 {
    font-size: 1rem;
  }
  
  .logo-text span {
    font-size: 0.65rem;
  }
  
  .logo-area {
    gap: 8px;
  }
  
  .content-pane-container {
    padding: 20px 16px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  
  .stat-card {
    padding: 12px;
    gap: 10px;
    flex-direction: column;
    text-align: center;
  }
  
  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .stat-info h3 {
    font-size: 1.05rem;
    margin-top: 2px;
  }
  
  .stat-info span {
    font-size: 0.65rem;
  }
  
  .attendance-card-wrapper {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .tasks-grid, .split-layout {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .header-right {
    gap: 12px;
  }
  
  .theme-toggle-btn, .notification-bell {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  
  .stat-card {
    padding: 10px;
  }
  
  .clock-actions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .btn-clock {
    height: 78px;
    padding: 8px;
  }
  
  .btn-clock .btn-title {
    font-size: 0.8rem;
  }
  
  .btn-clock .btn-subtext {
    font-size: 0.58rem;
  }
  
  .time-large {
    font-size: 2.2rem;
  }
  
  .date-large {
    font-size: 0.8rem;
  }
  
  .modal-box {
    max-width: 95%;
  }
  
  .media-container {
    height: 160px;
  }
  
  #attendance-leaflet-map {
    height: 120px !important;
  }
}

