.navbar-nav .nav-link {
  color: #198754;
}

.navbar-nav .dropdown-item i {
  width: 20px;
}

html {
  height: 100%;
  width: 100%;
}

.feature-card {
  transition: all 0.3s;
  cursor: pointer;
  height: 100%;
  border: 1px solid rgba(0, 120, 60, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
}

@media (max-width: 768px) {
  .navbar-brand img {
    height: 24px !important;
  }

  .feature-card {
    padding: 12px 0;
    margin-bottom: 10px;
  }

  .feature-icon {
    font-size: 1.8rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .container.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  h1 {
    font-size: 1.5rem;
  }

  .planting-title {
    font-size: 1.5rem;
  }

  .planting-form {
    padding: 1rem;
  }

  h6 {
    font-size: 0.8rem !important;
  }
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 120, 60, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.2rem;
  color: #00783C;
  background: -webkit-linear-gradient(45deg, #00783C, #2ea665);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.feature-card h6 {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.card-title {
  color: #00783C;
  font-weight: 600;
}

h1 {
  color: #00783C;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.container.py-5 {
  margin-bottom: 50px;
}

.footer {
  background-color: #ffffff;
  color: #00783C;
  position: fixed;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding-top: 20px;
}

/* Login page styles */
.login-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

.logo {
  max-width: 260px;
  /* Increased by 30% from 200px */
  margin-bottom: 30px;
}

.login-form {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-page {
  background-color: #f8f9fa;
  height: 100vh;
  display: flex;
  align-items: center;
}

.btn-login {
  background-color: #00783C;
  border-color: #00783C;
  margin-bottom: 15px;
}

.btn-login:hover {
  background-color: #006433;
  border-color: #006433;
}

/* Horizontal scroll styles */
.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 10px 5px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #00783C #f0f0f0;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .scroll-container {
    justify-content: center;
    align-items: center;
  }
}

.scroll-container::-webkit-scrollbar {
  height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #00783C;
  border-radius: 3px;
}

.scroll-item {
  flex: 0 0 130px;
  /* Reduced to 60% from 200px */
}

.scroll-container {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 5px 0;
}

.scroll-container .feature-icon {
  font-size: 1.5rem;
  /* Reduced icon size */
}

.scroll-container .card-title {
  font-size: 0.75rem;
  /* Reduced text size */
}

.scroll-container .card {
  padding: 5px;
}

.scroll-container .card.active {
  background-color: #00783C;
}

.scroll-container .card.active .feature-icon {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.scroll-container .card.active .card-title {
  color: #fff;
}

/* Planting page styles */
.planting-title {
  color: #00783C;
  font-weight: 700;
  font-size: 2.2rem;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.planting-form {
  background: white;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.planting-form .form-label {
  color: #00783C;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.planting-form .form-control {
  border: 2px solid #e9ecef;
  padding: 0.7rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.planting-form .form-control:focus,
.planting-form .form-select:focus {
  border-color: #00783C;
  box-shadow: 0 0 0 0.2rem rgba(0, 120, 60, 0.15);
}

.planting-form .select2-container {
  width: 100% !important;
}

.planting-form .select2-container .select2-selection--single,
.planting-form .select2-container .select2-selection--multiple {
  height: auto;
  min-height: 38px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
}

.planting-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #00783C;
  color: white;
  border: none;
  padding: 2px 8px;
}

.planting-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: white;
  margin-right: 5px;
}

.planting-form .btn-login {
  padding: 0.7rem 2.5rem;
  font-weight: 600;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Incidents page styles */
.incidents-content {
  max-width: 1200px;
  margin: 0 auto;
}

.incidents-content .card {
  border: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border-radius: 15px;
}

.incidents-content .table th {
  font-weight: 600;
  color: #00783C;
}

.incidents-content .btn-success {
  background-color: #00783C;
  border-color: #00783C;
}

.incidents-content .btn-success:hover {
  background-color: #006433;
  border-color: #006433;
}

.pagination .page-link {
  color: #00783C;
  border-color: #00783C;
}

.pagination .page-item.active .page-link {
  background-color: #00783C;
  border-color: #00783C;
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  border-color: #dee2e6;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-logo {
  width: 80px;
  height: 80px;
  animation: pulse-rotate 1.2s infinite;
}

@keyframes pulse-rotate {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.2);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.loading-screen.active {
  display: block
}

.loading-screen {
  z-index: 100000;
  display: none;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%
}

.lds-ring {
  display: inline-block;
  position: absolute;
  width: 64px;
  height: 64px;
  top: 50%;
  left: 50%;
  margin-left: -32px;
  margin-top: -32px
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 51px;
  height: 51px;
  margin: 6px;
  border: 6px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent
}

.lds-ring div:nth-child(1) {
  animation-delay: -.45s
}

.lds-ring div:nth-child(2) {
  animation-delay: -.3s
}

.lds-ring div:nth-child(3) {
  animation-delay: -.15s
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg)
  }

  100% {
    transform: rotate(360deg)
  }
}

@keyframes zoom {
  0% {
    transform: scale(.5);
    opacity: 0
  }

  50% {
    opacity: 1
  }

  to {
    opacity: 0;
    transform: scale(1)
  }
}

@keyframes lucidgenzalo {
  0% to {
    transform: rotate(-25deg)
  }

  50% {
    transform: rotate(25deg)
  }
}
