/* Global Styles */
body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f4f6f9;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: #2c3e50;
}

/* Cards & Containers */
.card-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #e9ecef;
  padding: 24px;
  margin-bottom: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
}

/* Feature Cards (Welcome Page) */
.feature-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  border: 1px solid #f1f3f5;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #00a65a;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 3em;
  margin-bottom: 15px;
  color: #00a65a;
  /* Green Icon */
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: initial;
  display: inline-block;
}

/* Hero Section */
.hero-section {
  background: #ecf0f5;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 4px solid #00a65a;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  pointer-events: none;
}

/* Selection Card (White Box in Hero) */
.selection-card {
  background-color: rgba(255, 255, 255, 0.98);
  color: #333;
  padding: 35px;
  border-radius: 16px;
  display: inline-block;
  margin-top: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  max-width: 650px;
  width: 90%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.selection-title {
  color: #008d4c;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f2f5;
  padding-bottom: 12px;
}

/* Buttons */
.btn-hero {
  background-color: #f39c12;
  /* Orange CTA */
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.1em;
}

.btn-hero:hover {
  background: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.6);
  color: white;
}

.btn-primary-custom {
  background-color: #00a65a;
  border-color: #008d4c;
  color: white;
}

.btn-primary-custom:hover {
  background-color: #008d4c;
  border-color: #00733e;
}

.btn-orange {
  background-color: #ff851b;
  /* AdminLTE Orange */
  color: white;
}

.btn-orange:hover {
  background-color: #e0740e;
  color: white;
}

/* Navigation & Sidebar */
.skin-green .main-header .logo {
  background-color: #008d4c !important;
  color: #fff !important;
  border-bottom: 0 solid transparent;
  font-weight: 800;
  font-size: 24px;
}

.skin-green .main-header .navbar {
  background: #00a65a !important;
  /* Solid Green, no gradient */
}

.skin-green .main-sidebar {
  background: #222d32 !important;
}

.skin-green .sidebar-menu>li.active>a,
.skin-green .sidebar-menu>li:hover>a {
  background: rgba(255, 255, 255, 0.1) !important;
  border-left-color: #00a65a !important;
}

/* Mixed Module: Override 'primary' boxes to purple */
.box.box-primary {
  border-top-color: #9b59b6 !important;
}

.box.box-solid.box-primary>.box-header {
  background: #9b59b6 !important;
  border-bottom-color: #8e44ad !important;
}

.box.box-solid.box-primary {
  border-color: #9b59b6 !important;
}

/* Override danger/success/warning labels to purple accents */

/* DataTables */
table.dataTable thead th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
  border-bottom: 2px solid #00a65a !important;
}

/* Methodology & Formulas */
.equation-box {
  background: #fdfdfd;
  border-left: 4px solid #2a5298;
  padding: 15px 25px;
  margin: 15px 0;
  border-radius: 4px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.1em;
  color: #34495e;
}

.ref-item {
  margin-bottom: 15px;
  padding-left: 20px;
  text-indent: -20px;
  color: #555;
}

/* ========================================
   DARK MODE STYLES
   ======================================== */
body.dark-mode {
  background-color: #1a1a2e !important;
}

body.dark-mode .content-wrapper {
  background-color: #1a1a2e !important;
}

body.dark-mode .main-header .navbar {
  background: #16213e !important;
}

body.dark-mode .main-header .logo {
  background: #0f3460 !important;
}

body.dark-mode .main-sidebar {
  background: #0f3460 !important;
}

body.dark-mode .sidebar-menu>li>a {
  color: #e8e8e8 !important;
}

body.dark-mode .sidebar-menu>li.active>a,
body.dark-mode .sidebar-menu>li:hover>a {
  background: rgba(255, 255, 255, 0.15) !important;
}

body.dark-mode .box,
body.dark-mode .card-box,
body.dark-mode .feature-card,
body.dark-mode .nav-tabs-custom {
  background: #16213e !important;
  border-color: #0f3460 !important;
  color: #e8e8e8 !important;
}

body.dark-mode .box-header,
body.dark-mode .box-title {
  color: #e8e8e8 !important;
}

body.dark-mode .box-body {
  background: #16213e !important;
  color: #e8e8e8 !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #e8e8e8 !important;
}

body.dark-mode p,
body.dark-mode span,
body.dark-mode label {
  color: #c8c8c8 !important;
}

body.dark-mode .nav-tabs>li>a {
  color: #c8c8c8 !important;
  background: #0f3460 !important;
}

body.dark-mode .nav-tabs>li.active>a {
  background: #16213e !important;
  color: #ffffff !important;
  border-color: #0f3460 !important;
}

body.dark-mode table.dataTable {
  background: #16213e !important;
  color: #e8e8e8 !important;
}

body.dark-mode table.dataTable thead th {
  background: #0f3460 !important;
  color: #e8e8e8 !important;
  border-bottom-color: #00a65a !important;
}

body.dark-mode table.dataTable tbody tr {
  background: #16213e !important;
}

body.dark-mode table.dataTable tbody tr:nth-child(even) {
  background: #1a1a2e !important;
}

body.dark-mode .dataTables_wrapper .dataTables_length,
body.dark-mode .dataTables_wrapper .dataTables_filter,
body.dark-mode .dataTables_wrapper .dataTables_info,
body.dark-mode .dataTables_wrapper .dataTables_paginate {
  color: #c8c8c8 !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: #0f3460 !important;
  color: #e8e8e8 !important;
  border-color: #16213e !important;
}

body.dark-mode .form-control {
  background: #0f3460 !important;
  color: #e8e8e8 !important;
  border-color: #1a1a2e !important;
}

body.dark-mode .alert-info {
  background: #0f3460 !important;
  border-color: #16213e !important;
  color: #e8e8e8 !important;
}

body.dark-mode .hero-section {
  background: #16213e !important;
}

body.dark-mode .selection-card {
  background: #0f3460 !important;
  color: #e8e8e8 !important;
}

body.dark-mode .equation-box {
  background: #0f3460 !important;
  color: #c8c8c8 !important;
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
  cursor: pointer;
  padding: 8px 12px;
  margin-right: 10px;
  border-radius: 5px;
  border: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.snow-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.snow-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.snow-btn.active {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.dark-mode-btn {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
}

.dark-mode-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.dark-mode-btn.active {
  background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
}

.trail-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.trail-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.trail-btn.active {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}