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

:root {
  /* Dynamic Color Palette */
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --secondary: #06b6d4;
  --accent: #f43f5e;
  
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f1f5f9;

  --border-color: #e2e8f0;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Glassmorphism Utilities */
.glass-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Card Overrides */
.card, .card-count, .chart-wrap, .modern-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card:hover, .card-count:hover, .modern-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Sidebar Override */
#side-nav {
  background: var(--bg-sidebar);
  border-right: 1px solid #1e293b;
  color: var(--text-light);
}

#side-nav .main-menu a {
  color: #94a3b8;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  padding: 0.75rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 4px;
}

#side-nav .main-menu a:hover, 
#side-nav .main-menu li.active a {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--secondary);
  text-decoration: none;
}

#side-nav .main-menu i {
  width: 24px;
  text-align: center;
  margin-right: 10px;
}

/* Buttons */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-light {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

/* Form Controls */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Dashboard Specifics */
.card-count {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem !important;
  height: 100%;
}

.card-count h3 {
  margin: 0;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.bg-light-aqua { background: rgba(6, 182, 212, 0.1) !important; color: var(--secondary) !important; }
.bg-light-orange { background: rgba(249, 115, 22, 0.1) !important; color: #f97316 !important; }
.bg-light-red { background: rgba(244, 63, 94, 0.1) !important; color: var(--accent) !important; }
.bg-light-purple { background: rgba(139, 92, 246, 0.1) !important; color: #8b5cf6 !important; }

.text-right h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: var(--text-main);
}

/* Navbar Tweaks */
#top-navbar {
  padding: 0.5rem 0;
}

.avatar img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

/* Main Content Padding */
#main-content {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
