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

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #0ea5e9;
  --bg-dark: #080c14;
  --card-bg: rgba(20, 26, 40, 0.6);
  --card-border: rgba(255, 255, 255, 0.06);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.08);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --glass-blur: 16px;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Outfit', sans-serif;
  background: radial-gradient(circle at 10% 20%, #1e1b4b 0%, var(--bg-dark) 90%);
  color: var(--text-main);
  margin-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Master Glass Layout */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 25px;
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.1);
}

/* Navbar Premium Styling */
.navbar-premium {
  background: rgba(8, 12, 20, 0.7) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 15px 0;
}

.navbar-brand-premium {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.nav-link-premium {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link-premium:hover, .nav-link-premium.active {
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.05);
}

/* Typography & Titles */
.title-gradient {
  background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Premium Buttons */
.btn-premium {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  transition: all 0.2s;
}

.btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  color: white;
}

.btn-premium-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-premium-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-premium-danger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  transition: all 0.2s;
}

.btn-premium-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  color: white;
}

/* Premium Inputs */
.form-control-premium {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid var(--card-border) !important;
  color: var(--text-main) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  transition: all 0.2s !important;
}

.form-control-premium:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
  outline: none;
}

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

.form-label-premium {
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Sleek Tables */
.table-premium {
  --bs-table-bg: transparent !important;
  --bs-table-color: var(--text-main) !important;
  background-color: transparent !important;
  color: var(--text-main) !important;
  margin-bottom: 0;
}

.table-premium th {
  border-bottom: 2px solid var(--card-border) !important;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 16px !important;
}

.table-premium td {
  border-bottom: 1px solid var(--card-border) !important;
  padding: 16px !important;
  vertical-align: middle;
}

.table-premium tbody tr:hover {
  --bs-table-hover-bg: rgba(255, 255, 255, 0.03) !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Badge Styles */
.badge-premium {
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.8rem;
}

.badge-premium-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-premium-inactive {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-premium-info {
  background: rgba(14, 165, 233, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

/* Interactive Dashboard Stats Cards */
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.stat-card-blue::before {
  background: var(--secondary);
}

.stat-card-green::before {
  background: var(--success);
}

.stat-card-orange::before {
  background: var(--warning);
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 10px 0;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom CSS Stats Graph Bars */
.stats-bar-container {
  background: rgba(255, 255, 255, 0.05);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
}

.stats-bar-fill {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

/* Star Rating Output Display */
.stars-display {
  color: #fbbf24;
  font-size: 1.1rem;
}

/* Print Specific styles */
@media print {
  body {
    background: white;
    color: black;
  }
  .navbar-premium, footer, .btn-print-ignore {
    display: none !important;
  }
  .glass-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
}

/* Color Contrast Overrides for Dark Mode Legibility */
.text-muted, 
.text-secondary, 
.text-muted-light, 
p.text-muted, 
span.text-muted, 
div.text-muted, 
label.text-muted, 
.form-label-premium {
  color: #cbd5e1 !important; /* Premium bright silver/slate color for absolute readability */
}

.title-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.table-premium th {
  color: #94a3b8 !important;
}

.small.text-muted, .text-muted.small {
  color: #94a3b8 !important;
}

/* Premium Logo Branding Styles */
.navbar-brand-premium {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  padding: 0 !important;
}

.logo-box {
  position: relative;
  width: 32px;
  height: 32px;
  border: 2.5px solid #38bdf8;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(8, 12, 20, 0.9) 0%, rgba(14, 165, 233, 0.15) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  margin-top: -2px;
}

.logo-check {
  position: absolute;
  font-size: 2.3rem;
  color: #38bdf8;
  font-weight: 900;
  /* Top-right flying checkmark effect matching the logo image precisely */
  left: 6px;
  top: -15px;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.85);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: baseline;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-dot {
  color: #a78bfa !important; /* Beautiful premium gradient violet dot */
  font-weight: 700;
}