/* Professional SaaS Theme - Modern & Clean */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

:root {
  --primary-dark: #1a2a6c;
  --primary: #2a4b8c;
  --primary-light: #3b6cb0;
  --accent: #b21f1f;
  --accent-gradient: linear-gradient(135deg, #b21f1f, #fdbb50);
  --gray-100: #f8f9fc;
  --gray-200: #f1f3f9;
  --gray-300: #e2e5ed;
  --gray-600: #6c757d;
  --gray-800: #2d3748;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --border-radius: 1rem;
  --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.5;
}

/* Navbar */
.navbar {
  background: var(--primary-dark) !important;
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff, #e0e0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.navbar .nav-link {
  font-weight: 500;
  margin: 0 0.25rem;
  border-radius: 2rem;
  transition: var(--transition);
}
.navbar .nav-link:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-header {
  background: rgba(0,0,0,0.02);
  border-bottom: 1px solid var(--gray-300);
  font-weight: 600;
  padding: 1rem 1.5rem;
}

/* Stat Cards */
.stat-card {
  border-radius: var(--border-radius);
  padding: 1.25rem;
  background: white;
  border-left: 4px solid;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-card h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--gray-600);
}
.stat-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
}

/* Buttons */
.btn {
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  border: none;
  box-shadow: 0 2px 6px rgba(42,75,140,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(42,75,140,0.2);
}
.btn-success {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  border: none;
}
.btn-danger {
  background: linear-gradient(135deg, #b21f1f, #e52d27);
  border: none;
}

/* Tables */
.table-responsive {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table {
  margin-bottom: 0;
  background: white;
}
.table thead th {
  background: var(--primary-dark);
  color: white;
  font-weight: 600;
  border: none;
  padding: 1rem;
}
.table tbody tr:hover {
  background: var(--gray-200);
  transition: var(--transition);
}
.table td, .table th {
  vertical-align: middle;
  padding: 0.9rem 1rem;
}

/* Forms */
.form-control, .form-select {
  border-radius: 0.75rem;
  border: 1px solid var(--gray-300);
  padding: 0.6rem 1rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,75,140,0.2);
  outline: none;
}

/* Chart Containers */
.chart-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
canvas {
  max-height: 350px;
  width: 100%;
}

/* Modals */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  background: var(--primary-dark);
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Alerts */
.alert {
  border-radius: 0.75rem;
  border: none;
  box-shadow: var(--shadow-sm);
}

/* Jumbotron */
.jumbotron {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}
.jumbotron h1 {
  font-weight: 700;
  margin-bottom: 1rem;
}
.jumbotron .btn {
  margin: 0.5rem;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  background: white;
  border-top: 1px solid var(--gray-300);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
  .stat-card h3 { font-size: 1.5rem; }
  .jumbotron { padding: 2rem 1rem; }
}