
:root {
  /* Light Theme */
  --bg-primary: #fdfdfd;
  --bg-secondary: #eef2f7;
  --bg-tertiary: #f9fafb; /* Lighter background */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8; /* Lighter secondary text */
  --accent-primary: #0ea5e9;
  --accent-secondary: #6366f1;
  --accent-primary-hover: #38bdf8; /* Lighter accent for hover states */
  --accent-secondary-hover: #818cf8;
  --border-color: #cbd5e1;
  --card-shadow: 0 0.125rem 0.25rem rgba(14, 165, 233, 0.1);
  --heading-font: 'Space Grotesk', sans-serif;
  --body-font: 'Inter', sans-serif;
  --ui-font: 'Plus Jakarta Sans', sans-serif;
  --success-color: #22c55e;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
}

[data-theme="dark"], .dark-theme {
  --bg-primary: #0b0f19;
  --bg-secondary: #151a2e;
  --bg-tertiary: #1f2a41;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent-primary: #00e0ff;
  --accent-secondary: #ff6bcb;
  --accent-primary-hover: #4dffff;
  --accent-secondary-hover: #ff99e0;
  --border-color: #2c3e50;
  --card-shadow: 0 0.25rem 0.5rem rgba(0, 224, 255, 0.1);
  --success-color: #22c55e;
  --error-color: #ff6b6b;
  --warning-color: #f59e0b;
}

.eco-theme {
  --bg-primary: #f0fdf4;
  --bg-secondary: #dcfce7;
  --bg-tertiary: #f0f9f1;
  --text-primary: #065f46;
  --text-secondary: #16a34a;
  --text-tertiary: #34d399;
  --accent-primary: #22c55e;
  --accent-secondary: #86efac;
  --accent-primary-hover: #4ad77f;
  --accent-secondary-hover: #a5f3ad;
  --border-color: #bbf7d0;
  --card-shadow: 0 0.125rem 0.25rem rgba(34, 197, 94, 0.2);
  --success-color: #22c55e;
  --error-color: #d90f0f;
  --warning-color: #f59e0b;
}
















* {
  box-sizing: border-box;
}
body {
  font-family: var(--body-font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
  line-height: 1.6;
}
/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 5px;
  right: 600px;
  z-index: 1050;
  display: flex;
  gap: 5px;
  background: var(--bg-secondary);
  border-radius: 25px;
  padding: 5px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}
.theme-button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-family: var(--ui-font);
}
.theme-button:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.05);
}
.theme-button.active {
  background: var(--accent-primary);
  color: white;
}
/* Cards */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border-radius: 10px;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.card-header {
  border-bottom: 1px solid var(--border-color);
  border-radius: 10px 10px 0 0 !important;
}
.card-header h4, .card-header h5 {
  font-family: var(--heading-font);
  font-weight: 600;
  margin: 0;
}
.card-body {
  color: var(--text-primary);
  font-family: var(--body-font);
}
/* Form Controls */
.form-control, .form-select {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: var(--ui-font);
  border-radius: 8px;
}
.form-control:focus, .form-select:focus {
  background-color: var(--bg-primary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}
.form-label {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 5px;
  font-family: var(--ui-font);
}

/* Buttons */
.btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-family: var(--ui-font);
  border: none;
}
.btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.btn:hover i {
  transform: scale(1.2);
}
.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn:hover:before {
  left: 100%;
}
/* Success Button */
.btn-success {
  background: linear-gradient(135deg, #198754, #20c997);
  box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}
/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}
/* Danger Button */
.btn-danger {
  background: linear-gradient(135deg, #dc3545, #fd7e14);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}
.btn-danger.pulse {
  animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(220, 53, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}


/* Risk Input Sections */
.risk-inputs {
  padding: 20px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-top: 15px;
}
/* Chart Container */
#loss-chart {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 10px;
}










#results-table {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 15px;
  font-size: 0.95rem;
}

.table th, .table td {
  padding: 12px;
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: var(--bg-secondary);
}



.table th, .table td {
  white-space: nowrap;
}





.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.4s ease;
  z-index: 9999;
  font-size: 0.95rem;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  font-family: var(--ui-font);
}
/* Success */
.notification.success {
  border-left: 5px solid #22c55e;
  background-color: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}
/* Error */
.notification.error {
  border-left: 5px solid #ef4444;
  background-color: rgba(239, 68, 68, 0.15);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}
/* Warning */
.notification.warning {
  border-left: 5px solid #f59e0b;
  background-color: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}
/* Info */
.notification.info {
  border-left: 5px solid #0ea5e9;
  background-color: rgba(14, 165, 233, 0.15);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* Summary Cards */
.bg-success, .bg-warning, .bg-info, .bg-danger {
  border-radius: 10px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.bg-success:hover, .bg-warning:hover, .bg-info:hover, .bg-danger:hover {
  transform: scale(1.02);
}
.bg-success h2, .bg-warning h2, .bg-info h2, .bg-danger h2 {
  font-family: var(--heading-font);
  font-weight: 700;
}
.bg-success h5, .bg-warning h5, .bg-info h5, .bg-danger h5 {
  font-family: var(--ui-font);
  font-weight: 600;
}
/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Responsive Design */
@media (max-width: 768px) {
  .theme-toggle {
    top: 10px;
    right: 10px;
    scale: 0.9;
  }
  
  .container-fluid {
    padding: 10px;
  }
  
  .card-body .row > div {
    margin-bottom: 15px;
  }
  
  .btn-lg {
    font-size: 1rem;
    padding: 10px 20px;
  }
}
/* Dark theme specific adjustments */
.dark-theme .table {
  --bs-table-bg: var(--bg-secondary);
}
.dark-theme .form-control::placeholder,
.dark-theme .form-select option {
  color: var(--text-secondary);
}
/* Eco theme specific adjustments */
.eco-theme .btn-success {
  background: linear-gradient(135deg, #4caf50, #8bc34a);
}
.eco-theme .navbar {
  background: linear-gradient(135deg, #4caf50, #66bb6a) !important;
}
/* Animation for cards */
.card {
  animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Stagger animation for multiple cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }









@font-face {
  font-family: 'Rajdhani';
  src: url('src/Rajdhani.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron';
  src: url('src/Orbitron.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron-Bold';
  src: url('src/Orbitron-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron-Variable';
  src: url('src/Orbitron-VariableFont_wght.ttf') format('truetype');
}











.navbar-brand {
  font-family: 'Orbitron-Bold', 'Orbitron', sans-serif;
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1a1a1a;
}







.footer-link {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;      /* pick weight between 100–900 */
  font-size: 0.5rem;
  letter-spacing: 1px;
  text-decoration: none;
   background: linear-gradient(90deg, #00ccff, #007BFF, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent          /* default text color */
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #e74c3c;        /* hover effect to match the heart */
}









.navbar-nav .btn-outline-light {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
 
  
}










.card-header h4 {
  font-family: 'Orbitron-Bold', 'Orbitron', 'Rajdhani', sans-serif;
  
}








a.btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 12px rgba(0,112,186,0.6);
}






.btn-outline-warning:hover {
  background-color: #ffc107;
  color: #212529;
  box-shadow: 0 0 10px #ffc107aa;
  transform: scale(1.05);
  transition: all 0.2s ease-in-out;
}
