:root {
  /* Savre Light Theme Palette */
  --savre-bg: #f8fafc;
  --savre-surface: #ffffff;
  --savre-surface-card: #ffffff;
  --savre-surface-hover: #f1f5f9;
  --savre-border: #e2e8f0;
  --savre-border-hover: #cbd5e1;
  --savre-border-focus: rgba(2, 132, 199, 0.4);
  
  --savre-primary: #0284c7;
  --savre-primary-hover: #0369a1;
  --savre-teal: #0d9488;
  --savre-teal-hover: #0f766e;
  --savre-cyan: #0284c7;
  
  --savre-gradient: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  --savre-card-gradient: #ffffff;
  
  --savre-text-main: #0f172a;
  --savre-text-muted: #475569;
  --savre-text-dim: #94a3b8;
  
  --savre-radius: 12px;
  --savre-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --savre-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --savre-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--savre-bg);
  color: var(--savre-text-main);
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Card Containers */
.savre-glass-card {
  background: var(--savre-surface-card);
  border: 1px solid var(--savre-border);
  border-radius: var(--savre-radius);
  box-shadow: var(--savre-shadow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.savre-glass-card:hover {
  border-color: var(--savre-border-hover);
  box-shadow: var(--savre-shadow-lg);
}

/* Brand logo and badges */
.savre-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--savre-text-main);
  text-decoration: none;
}

.savre-brand-badge:hover {
  color: var(--savre-primary);
}

.savre-brand-badge .icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--savre-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* Navbar */
.savre-navbar {
  background: var(--savre-surface);
  border-bottom: 1px solid var(--savre-border);
  box-shadow: var(--savre-shadow-sm);
  padding: 0.85rem 1.5rem;
}

/* Sidebar */
.savre-sidebar {
  width: 260px;
  background: var(--savre-surface);
  border-right: 1px solid var(--savre-border);
  min-height: calc(100vh - 65px);
  padding: 1.25rem 0.75rem;
  transition: all 0.3s ease;
}

.savre-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--savre-text-muted);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.savre-nav-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: var(--savre-text-dim);
  transition: color 0.2s ease;
}

.savre-nav-link:hover {
  color: var(--savre-text-main);
  background: var(--savre-surface-hover);
}

.savre-nav-link:hover svg {
  color: var(--savre-primary);
}

.savre-nav-link.active {
  color: var(--savre-primary);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  font-weight: 600;
}

.savre-nav-link.active svg {
  color: var(--savre-primary);
}

.savre-nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--savre-text-dim);
  padding: 0.75rem 1rem 0.35rem;
}

/* Stat Cards */
.savre-stat-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--savre-radius);
  background: var(--savre-surface-card);
  border: 1px solid var(--savre-border);
  box-shadow: var(--savre-shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.savre-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--savre-shadow);
}

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

.savre-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdfa;
  color: var(--savre-teal);
  margin-bottom: 0.75rem;
}

.savre-stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--savre-text-main);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.savre-stat-label {
  font-size: 0.85rem;
  color: var(--savre-text-muted);
  font-weight: 500;
}

/* Buttons */
.btn-savre-primary {
  background: var(--savre-gradient);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}

.btn-savre-primary:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-savre-outline {
  background: #ffffff;
  border: 1px solid var(--savre-border);
  color: var(--savre-text-main);
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-savre-outline:hover {
  background: var(--savre-surface-hover);
  border-color: var(--savre-border-hover);
  color: var(--savre-primary);
}

/* Forms */
.savre-form-control {
  background-color: #ffffff;
  border: 1px solid var(--savre-border);
  color: var(--savre-text-main);
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  font-size: 0.925rem;
  transition: all 0.2s ease;
}

.savre-form-control:focus {
  background-color: #ffffff;
  border-color: var(--savre-primary);
  color: var(--savre-text-main);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  outline: none;
}

.savre-form-control::placeholder {
  color: var(--savre-text-dim);
}

.savre-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--savre-text-muted);
  margin-bottom: 0.4rem;
}

/* Tables */
.savre-table {
  width: 100%;
  color: var(--savre-text-main);
  border-collapse: separate;
  border-spacing: 0;
}

.savre-table th {
  background: #f8fafc;
  color: var(--savre-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--savre-border);
}

.savre-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--savre-border);
  vertical-align: middle;
  font-size: 0.9rem;
  color: var(--savre-text-main);
}

.savre-table tr:hover td {
  background: #f8fafc;
}

/* Badges */
.badge-savre-cyan {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #ccfbf1;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.badge-savre-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.badge-savre-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
