@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700&display=swap');

/* Production High-Contrast Color Palette */
:root {
  color-scheme: dark !important;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --border-color: #334155;
  --text-main: #ffffff;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-blue: #3b82f6;
  --accent-rose: #f43f5e;
}

html, body {
  color-scheme: dark !important;
}

/* Global Reset & Base Typography */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: #ffffff !important;
}

p, span, div {
  color: #e2e8f0;
}

/* Override Bootstrap Default Dark Text & Muted Text */
.text-muted {
  color: #cbd5e1 !important;
}

.text-slate-400 {
  color: #cbd5e1 !important; /* Crisp high-contrast light slate */
}

.text-slate-300 {
  color: #f1f5f9 !important;
}

.text-slate-500 {
  color: #94a3b8 !important;
}

/* High Contrast Form Labels & Inputs */
label, .form-label {
  color: #f8fafc !important;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-control, .form-select {
  background-color: #0f172a !important;
  border: 1px solid #475569 !important;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
}

.form-control:focus, .form-select:focus {
  background-color: #0f172a !important;
  border-color: var(--accent-emerald) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.3);
}

.form-control::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

option {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

/* Glassmorphism & Elevation */
.card-glass {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid #334155;
  border-radius: 14px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: #ffffff;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-emerald);
}

/* Palette Utility Classes */
.bg-slate-900 { background-color: #0f172a !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.bg-slate-700 { background-color: #334155 !important; }
.border-slate-800 { border-color: #1e293b !important; }
.border-slate-700 { border-color: #334155 !important; }

.text-white { color: #ffffff !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-emerald-500 { color: #10b981 !important; }
.bg-emerald-600 { background-color: #059669 !important; }

.btn-emerald {
  background-color: var(--accent-emerald);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-emerald:hover {
  background-color: var(--accent-emerald-hover);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-outline-emerald {
  border: 1px solid var(--accent-emerald) !important;
  color: #34d399 !important;
  background: transparent;
  font-weight: 500;
}
.btn-outline-emerald:hover {
  background-color: var(--accent-emerald) !important;
  color: #ffffff !important;
}

/* High Contrast Table Styling */
.table-dark-custom {
  --bs-table-bg: var(--bg-card);
  --bs-table-color: #ffffff;
  --bs-table-border-color: #334155;
  color: #ffffff !important;
  border-radius: 8px;
  overflow: hidden;
}

.table-dark-custom th {
  color: #34d399 !important;
  font-weight: 600;
  border-bottom: 2px solid #334155;
}

.table-dark-custom td {
  color: #f1f5f9 !important;
}

/* Toast Container & Alerts */
.toast-container {
  z-index: 9999;
}

/* Clean Single Calendar Icon Styling */
::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

input[type="date"], 
input[type="datetime-local"],
input[type="time"] {
  color-scheme: dark !important;
  color: #ffffff !important;
  background-color: #0f172a !important;
  cursor: pointer !important;
}

/* High Contrast Button Variants */
.btn-outline-slate {
  color: #f8fafc !important;
  border: 1px solid #64748b !important;
  background-color: rgba(51, 65, 85, 0.6) !important;
}

.btn-outline-slate:hover {
  color: #ffffff !important;
  background-color: #475569 !important;
  border-color: #94a3b8 !important;
}

.btn-outline-info {
  color: #38bdf8 !important;
  border: 1px solid #0284c7 !important;
  background-color: rgba(56, 189, 248, 0.15) !important;
}

.btn-outline-info:hover {
  color: #ffffff !important;
  background-color: #0284c7 !important;
}

.btn-outline-rose {
  color: #f43f5e !important;
  border: 1px solid #f43f5e !important;
  background: transparent;
}

.btn-outline-rose:hover {
  background-color: #f43f5e !important;
  color: #ffffff !important;
}

.btn-emerald {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

/* High Contrast Disabled States */
button:disabled, .btn:disabled, .btn.disabled {
  opacity: 0.85 !important;
  color: #cbd5e1 !important;
}

/* Responsive Badge & Mobile Overflow Prevention */
.badge {
  white-space: normal !important;
  word-break: break-word !important;
  max-width: 100% !important;
  line-height: 1.3 !important;
}

/* User Initial Avatar Circle Shape */
.avatar-circle {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 576px) {
  .p-4 {
    padding: 1rem !important;
  }
  .card-body {
    padding: 1rem !important;
  }
  .form-control-sm {
    max-width: 100% !important;
  }
}

/* Face Detection Video Container & Canvas Overlay */
.face-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  background-color: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #334155;
  margin: 0 auto;
}

.face-video-wrapper video {
  width: 100%;
  height: auto;
  max-height: 380px;
  display: block;
  object-fit: cover;
  background: #090d16;
}

.face-video-wrapper canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


