/* Professional Color Scheme for Entire Application */
:root {
  /* Primary Colors */
  --primary: #0069A7;
  --primary-dark: #004a73;
  --primary-light: #e6f0f7;
  
  /* Secondary Colors */
  --secondary: #6c757d;
  --secondary-dark: #5a6268;
  --secondary-light: #e2e3e5;
  
  /* Status Colors */
  --success: #28a745;
  --success-dark: #1e7e34;
  --success-light: #d4edda;
  
  --warning: #ffc107;
  --warning-dark: #e0a800;
  --warning-light: #fff3cd;
  
  --danger: #dc3545;
  --danger-dark: #c82333;
  --danger-light: #f8d7da;
  
  --info: #17a2b8;
  --info-dark: #138496;
  --info-light: #d1ecf1;
  
  /* Neutrals */
  --light: #f8f9fa;
  --dark: #343a40;
  --white: #ffffff;
  --black: #000000;
  
  /* Text Colors */
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #6c757d;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  
  /* Border Colors */
  --border-color: #dee2e6;
  --border-light: #e9ecef;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  
  /* Borders & Radius */
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
}

/* Cards */
.card {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-success:hover {
  background-color: var(--success-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-warning:hover {
  background-color: var(--warning-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: var(--danger-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-info {
  background-color: var(--info);
  color: white;
}

.btn-info:hover {
  background-color: var(--info-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-primary:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* Badges */
.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-smooth);
}

.badge-primary {
  background-color: var(--primary);
  color: white;
}

.badge-success {
  background-color: var(--success);
  color: white;
}

.badge-warning {
  background-color: var(--warning);
  color: var(--text-primary);
}

.badge-danger {
  background-color: var(--danger);
  color: white;
}

.badge-info {
  background-color: var(--info);
  color: white;
}

.badge-secondary {
  background-color: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* Forms */
.form-control, .form-select {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

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

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

/* Alerts */
.alert {
  border-radius: var(--border-radius);
  border: none;
  padding: 1rem 1.25rem;
}

.alert-primary {
  background-color: var(--primary);
  color: white;
}

.alert-success {
  background-color: var(--success);
  color: white;
}

.alert-warning {
  background-color: var(--warning);
  color: var(--text-primary);
}

.alert-danger {
  background-color: var(--danger);
  color: white;
}

.alert-info {
  background-color: var(--info);
  color: white;
}

/* Tables */
.table {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead th {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  font-weight: 600;
}

.table tbody td {
  padding: 1rem;
  border: none;
  border-bottom: 1px solid var(--border-color);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 105, 167, 0.03);
}

/* Progress Bars */
.progress {
  height: 8px;
  border-radius: 4px;
  background-color: var(--border-light);
  overflow: hidden;
}

.progress-bar {
  border-radius: 4px;
  transition: width 0.6s ease;
}

.progress-bar.bg-primary {
  background-color: var(--primary) !important;
}

.progress-bar.bg-success {
  background-color: var(--success) !important;
}

.progress-bar.bg-warning {
  background-color: var(--warning) !important;
}

.progress-bar.bg-danger {
  background-color: var(--danger) !important;
}

.progress-bar.bg-info {
  background-color: var(--info) !important;
}

/* Modals */
.modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border: none;
  padding: 1rem 2rem 2rem;
  background-color: var(--bg-light);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Accordions */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.accordion-button {
  background-color: var(--bg-light);
  border: none;
  padding: 1.25rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary);
  color: white;
}

.accordion-body {
  padding: 1.5rem;
}

/* Dropdowns */
.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  border-radius: var(--border-radius);
  margin: 0.125rem 0.5rem;
}

.dropdown-item:hover {
  background-color: var(--primary);
  color: white;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  padding: 0.75rem 1.25rem !important;
  margin: 0 0.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
  }
  
  .form-control, .form-select {
    padding: 0.6rem 0.8rem;
  }
  
  .table thead th, .table tbody td {
    padding: 0.75rem;
  }
}