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

:root {
  /* Vibrant Light Theme Colors (Professional Blue) */
  --primary-color: #2563EB; /* Professional Royal Blue */
  --primary-hover: #1D4ED8;
  --secondary-color: #F59E0B; /* Vibrant Amber */
  
  --bg-color: #F3F4F6; /* Light Gray Background */
  --bg-panel: rgba(255, 255, 255, 0.95); /* White Panels */
  
  --text-main: #1F2937; /* Dark Gray for main text */
  --text-muted: #6B7280; /* Medium Gray for muted text */
  
  --border-color: rgba(0, 0, 0, 0.08); /* Soft borders */
  
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  
  /* Metrics */
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  
  /* Modern soft gradient background using primary and secondary colors lightly */
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0, transparent 50%), 
    radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.1) 0, transparent 50%),
    radial-gradient(at 50% 100%, rgba(29, 78, 216, 0.1) 0, transparent 50%);
  background-attachment: fixed;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* Layout */
.sidebar {
  width: 250px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border-color);
  box-shadow: 2px 0 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  text-align: center;
  margin-bottom: 2rem;
}


.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  background: rgba(5, 150, 105, 0.08); /* Light green tint */
  color: var(--primary-color);
}

.nav-link i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: inherit;
}

.main-content {
  flex: 1;
  margin-left: 250px;
  padding: 2rem;
  max-width: 1200px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.2), 0 2px 4px -1px rgba(5, 150, 105, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3), 0 4px 6px -2px rgba(5, 150, 105, 0.15);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--text-muted);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* Dashboard Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-title {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

/* Fix inline styles on dark theme items */
.glass-panel > div[style*="rgba(0,0,0,0.2)"], 
.glass-panel > div[style*="rgba(0,0,0,0.15)"] {
  background: rgba(0,0,0,0.03) !important;
  border: 1px solid var(--border-color);
}

/* Mobile Responsiveness */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  /* Sidebar handling */
  .sidebar {
    transform: translateX(-100%);
    z-index: 1000;
    width: 280px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }

  /* Main content full width */
  .main-content {
    margin-left: 0 !important;
    padding: 1rem !important;
  }
  
  .mobile-menu-toggle {
    display: block;
  }

  /* Adjust grid columns */
  .grid {
    grid-template-columns: 1fr;
  }
  
  /* Make tables responsive */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
  }
  
  /* Ensure header doesn't break */
  header {
    flex-wrap: wrap;
    gap: 10px;
  }
}
