/* ====================================================
   GLOBAL RESET & BASE
   ==================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ====================================================
   KIOSK STYLES
   ==================================================== */
body.kiosk-body {
  background: #0a0a0f;
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Loading Screen --- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 5px solid rgba(99, 179, 237, 0.2);
  border-top-color: #63b3ed;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 1px;
}

.loading-text {
  color: #94a3b8;
  font-size: 1rem;
}

.loading-bar-wrap {
  width: 280px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, #63b3ed, #4299e1);
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s ease;
}

/* --- Admin Link --- */
.admin-link {
  position: fixed;
  top: 14px;
  right: 16px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 5px 10px;
  z-index: 100;
  transition: all 0.2s;
}
.admin-link:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
}

/* --- Kiosk Main --- */
#kiosk-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-bottom: 40px;
}

/* --- Header --- */
.kiosk-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 110px 18px 32px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 30px;
}

.company-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #63b3ed;
  letter-spacing: 0.5px;
}

.clock-area {
  text-align: right;
}

.live-clock {
  font-size: 2rem;
  font-weight: 700;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

.live-date {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* --- Video Container --- */
#video-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(99, 179, 237, 0.3);
  box-shadow: 0 0 40px rgba(99, 179, 237, 0.12), 0 0 80px rgba(99, 179, 237, 0.06);
  background: #000;
}

#video {
  width: 100%;
  display: block;
  border-radius: 14px;
  transform: scaleX(-1); /* mirror */
}

#overlay-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: scaleX(-1); /* mirror to match video */
}

/* --- Scan Prompt --- */
.scan-prompt {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #e2e8f0;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #68d391;
  border-radius: 50%;
  animation: pulse-glow 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* --- Unknown Face Message --- */
.unknown-msg {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(229, 62, 62, 0.85);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: pulse-red 1.5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* --- Info Panel --- */
.info-panel {
  width: 100%;
  max-width: 640px;
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(22, 33, 62, 0.95), rgba(17, 25, 40, 0.95));
  border: 1px solid rgba(99, 179, 237, 0.25);
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
}

.info-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.employee-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4299e1, #667eea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.employee-details {
  flex: 1;
}

.employee-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
}

.employee-dept {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 2px;
}

.employee-shift {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 2px;
}

.status-area {
  flex-shrink: 0;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-badge.on-time {
  background: rgba(72, 187, 120, 0.2);
  color: #68d391;
  border: 1px solid rgba(72, 187, 120, 0.4);
}

.status-badge.late {
  background: rgba(236, 153, 75, 0.2);
  color: #f6ad55;
  border: 1px solid rgba(236, 153, 75, 0.4);
}

/* --- Standby Screen --- */
.standby-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 20px;
  padding: 60px 20px;
  animation: fadeIn 0.5s ease;
}

.standby-icon {
  font-size: 6rem;
  opacity: 0.5;
  margin-bottom: 10px;
}

.standby-title {
  font-size: 2rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.standby-subtitle {
  font-size: 1.05rem;
  color: #718096;
}

.mark-btn {
  margin-top: 20px;
  padding: 18px 60px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #3182ce, #2b6cb0);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(49,130,206,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mark-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(49,130,206,0.55);
}

.mark-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(49,130,206,0.3);
}

.mark-btn:disabled {
  background: #4a5568;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Action Area --- */
.action-area {
  width: 100%;
  max-width: 640px;
  margin-top: 20px;
  text-align: center;
}

.action-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* --- Countdown Ring --- */
.countdown-wrap {
  position: relative;
}

.countdown-ring {
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 7;
}

.ring-progress {
  fill: none;
  stroke: #63b3ed;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.ring-text {
  fill: #e2e8f0;
  font-size: 28px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  transform: rotate(90deg);
  transform-origin: 60px 60px;
  font-family: 'Segoe UI', sans-serif;
}

/* --- Action Buttons --- */
.action-btn {
  padding: 18px 48px;
  font-size: 1.3rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  min-width: 200px;
}

.action-btn.clockin {
  background: linear-gradient(135deg, #38a169, #2f855a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(56, 161, 105, 0.4);
}

.action-btn.clockin:hover {
  background: linear-gradient(135deg, #48bb78, #38a169);
  box-shadow: 0 6px 28px rgba(56, 161, 105, 0.6);
  transform: translateY(-2px);
}

.action-btn.clockout {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: #fff;
  box-shadow: 0 4px 20px rgba(229, 62, 62, 0.4);
}

.action-btn.clockout:hover {
  background: linear-gradient(135deg, #fc8181, #e53e3e);
  box-shadow: 0 6px 28px rgba(229, 62, 62, 0.6);
  transform: translateY(-2px);
}

.cancel-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.cancel-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #e2e8f0;
}

.action-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #718096;
}

/* --- Processing --- */
.processing-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 1rem;
  margin-top: 20px;
}

.mini-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(99, 179, 237, 0.2);
  border-top-color: #63b3ed;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* --- Kiosk Toast --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.kiosk-toast {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slide-in 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.kiosk-toast.success {
  background: linear-gradient(135deg, #2f855a, #276749);
  border-left: 4px solid #68d391;
}

.kiosk-toast.error {
  background: linear-gradient(135deg, #c53030, #9b2c2c);
  border-left: 4px solid #fc8181;
}

.kiosk-toast.info {
  background: linear-gradient(135deg, #2b6cb0, #2c5282);
  border-left: 4px solid #63b3ed;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ====================================================
   ADMIN STYLES
   ==================================================== */
body.admin-body {
  background: #f0f2f5;
  color: #1a202c;
}

/* --- Sidebar --- */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 2px 0 12px rgba(0,0,0,0.06);
}

.sidebar-brand {
  padding: 24px 20px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  letter-spacing: 0.3px;
}

.sidebar-brand i {
  font-size: 1.4rem;
  color: #4299e1;
}

.sidebar-nav {
  list-style: none;
  padding: 12px 0;
  flex: 1;
}

.sidebar-nav li {
  margin: 2px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #718096;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
}

.sidebar-link:hover {
  background: #ebf8ff;
  color: #2b6cb0;
}

.sidebar-link.active {
  background: #ebf8ff;
  color: #2b6cb0;
  font-weight: 600;
}

.sidebar-link i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid #e2e8f0;
}

/* --- Main Content --- */
.admin-main {
  margin-left: 240px;
  padding: 32px 32px;
  min-height: 100vh;
}

.tab-content {
  animation: fade-up 0.25s ease;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
}

.page-subtitle {
  color: #718096;
  font-size: 0.9rem;
}

/* --- Stat Cards --- */
.stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 5px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.15s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card-blue  { border-left-color: #4299e1; }
.stat-card-green { border-left-color: #48bb78; }
.stat-card-amber { border-left-color: #ed8936; }
.stat-card-red   { border-left-color: #e53e3e; }

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-card-blue  .stat-icon { background: #ebf8ff; color: #4299e1; }
.stat-card-green .stat-icon { background: #f0fff4; color: #48bb78; }
.stat-card-amber .stat-icon { background: #fffaf0; color: #ed8936; }
.stat-card-red   .stat-icon { background: #fff5f5; color: #e53e3e; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: #718096;
  margin-top: 4px;
  font-weight: 500;
}

/* --- Admin Cards --- */
.admin-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-card .card-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 12px 12px 0 0 !important;
  padding: 16px 20px;
}

/* --- Status Badges (Table) --- */
.badge-on-time {
  background: rgba(72, 187, 120, 0.15);
  color: #276749;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-late {
  background: rgba(237, 137, 54, 0.15);
  color: #9c4221;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-absent {
  background: rgba(229, 62, 62, 0.12);
  color: #9b2c2c;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Employee Grid --- */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.emp-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.15s;
}

.emp-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.emp-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.emp-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4299e1, #667eea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.emp-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
}

.emp-card-id {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 2px;
}

.emp-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: #718096;
}

.emp-card-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.emp-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* --- Step Indicator --- */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #718096;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.step.active .step-num {
  background: #4299e1;
  color: #fff;
}

.step.completed .step-num {
  background: #48bb78;
  color: #fff;
}

.step-label {
  font-size: 0.75rem;
  color: #718096;
  font-weight: 500;
}

.step.active .step-label {
  color: #4299e1;
  font-weight: 600;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 12px;
  margin-bottom: 20px;
  min-width: 60px;
}

/* --- Face Capture in Modal --- */
.face-capture-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.capture-video-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #000;
}

.capture-video {
  width: 100%;
  display: block;
  transform: scaleX(-1);
}

.capture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: scaleX(-1);
}

.capture-guide {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 16px;
  text-align: center;
}

.capture-guide-text {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.capture-controls {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capture-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.capture-progress-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  text-align: center;
}

.capture-samples {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.sample-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #f7fafc;
  transition: all 0.3s;
}

.sample-dot.captured {
  background: #48bb78;
  border-color: #2f855a;
  box-shadow: 0 0 8px rgba(72, 187, 120, 0.5);
}

.sample-dot.capturing {
  background: #4299e1;
  border-color: #2b6cb0;
  animation: pulse-scale 0.5s ease;
}

@keyframes pulse-scale {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* --- Table Styles --- */
.table th {
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #718096;
  white-space: nowrap;
}

.table td {
  font-size: 0.88rem;
  vertical-align: middle;
  color: #2d3748;
}

/* ====================================================
   CALENDAR VIEW STYLES
   ==================================================== */
.cal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cal-month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
}

.cal-month-nav button {
  background: none;
  border: none;
  cursor: pointer;
  color: #4a5568;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cal-month-nav button:hover {
  background: #ebf8ff;
  color: #2b6cb0;
}

.cal-month-label {
  font-weight: 700;
  font-size: 1rem;
  color: #2d3748;
  min-width: 130px;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 4px;
}

.cal-day-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
}

.cal-day {
  min-height: 72px;
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid #e2e8f0;
  background: #fafafa;
  transition: transform 0.1s;
  cursor: default;
  position: relative;
}

.cal-day.cal-empty {
  background: transparent;
  border-color: transparent;
}

.cal-day.cal-other-month {
  opacity: 0.35;
}

.cal-day.cal-today {
  border-color: #4299e1;
  border-width: 2px;
}

.cal-day.cal-on-time {
  background: #f0fff4;
  border-color: #9ae6b4;
}

.cal-day.cal-late {
  background: #fffaf0;
  border-color: #fbd38d;
}

.cal-day.cal-absent {
  background: #fff5f5;
  border-color: #feb2b2;
}

.cal-day.cal-weekend {
  background: #f7f9fc;
}

.cal-day.cal-future {
  opacity: 0.5;
}

.cal-day-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4a5568;
  line-height: 1;
}

.cal-day.cal-today .cal-day-num {
  color: #2b6cb0;
}

.cal-day-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cal-day.cal-on-time .cal-day-status { color: #276749; }
.cal-day.cal-late    .cal-day-status { color: #9c4221; }
.cal-day.cal-absent  .cal-day-status { color: #9b2c2c; }

.cal-day-time {
  font-size: 0.68rem;
  color: #718096;
  line-height: 1.3;
}

.cal-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #4a5568;
  font-weight: 500;
}

.cal-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cal-legend-dot.on-time { background: #9ae6b4; }
.cal-legend-dot.late    { background: #fbd38d; }
.cal-legend-dot.absent  { background: #feb2b2; }
.cal-legend-dot.none    { background: #e2e8f0; }

/* Admin Responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 60px;
  }
  .sidebar-brand span,
  .sidebar-link span,
  .sidebar-footer .btn span {
    display: none;
  }
  .admin-main {
    margin-left: 60px;
    padding: 16px;
  }
}
