html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: white;
  min-height: 100vh;
}

/* ECO Tracking Header Styles - White Theme */
.navbar.eco-header,
nav.navbar.eco-header,
header .navbar.eco-header,
.navbar,
nav.navbar,
header .navbar,
.navbar-expand-sm,
.navbar-toggleable-sm {
  background-color: white !important;
  background: white !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 1px solid #e0e0e0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  min-height: 120px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Override Bootstrap navbar styles */
.navbar-light,
.navbar-dark {
  background-color: white !important;
  background: white !important;
}

/* Navbar text and link styling */
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-text {
  color: #333333 !important;
  font-weight: 500 !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #007bff !important;
  background-color: rgba(0, 123, 255, 0.1) !important;
  border-radius: 5px !important;
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Navbar toggler for mobile */
.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.3) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Home page styling */
.welcome-header {
  background: linear-gradient(135deg, #5dade2 0%, #3498db 51%, #2980b9 100%);
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-header h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.welcome-header h3 {
  font-weight: 300;
  margin-bottom: 1rem;
}

.welcome-header .list-group {
  display: inline-flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 1rem;
}

.welcome-header .list-group-item {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.25rem 1rem;
}

.home-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

.home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.home-card .card-title {
  font-weight: 600;
  color: #333;
}

.home-card .card-body {
  padding: 1.5rem;
}

.home-card .btn {
  border-radius: 20px;
  padding: 0.375rem 1.5rem;
  font-weight: 500;
}

.section-header {
  padding: 1rem;
  border-radius: 10px 10px 0 0;
}

.section-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Custom button styles */
.btn-eco-primary {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}

.btn-eco-primary:hover {
  background-color: #218838;
  border-color: #1e7e34;
  color: white;
}

.btn-eco-secondary {
  background-color: #17a2b8;
  border-color: #17a2b8;
  color: white;
}

.btn-eco-secondary:hover {
  background-color: #138496;
  border-color: #117a8b;
  color: white;
}