/* Base styles */
:root {
  --color-primary: #15803d;
  --color-primary-dark: #166534;
  --color-primary-light: #22c55e;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--color-gray-700);
  background-color: var(--color-gray-50);
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1rem;
}


.header {
  background-color: #42924a;
  color: white;
  padding: 0.5rem 0;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.desktop-nav a:hover {
  color: #e0e0e0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  position: relative;
  transition: background-color 0.3s;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: white;
  transition: transform 0.3s;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  bottom: -6px;
}

/* Mobile menu open state */
.mobile-menu-open .menu-icon {
  background-color: transparent;
}

.mobile-menu-open .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-open .menu-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  background-color: #42924a;
  padding: 1rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav.show {
  display: block;
}

.mobile-nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a:last-child {
  border-bottom: none;
}
/* Header styles */
.header1 {
  text-align: center;
  margin-bottom: 3rem;
}

.header1 h1 {
  color: var(--color-primary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.header1 p {
  color: var(--color-gray-600);
  font-size: 1.125rem;
}

/* Calculator container */
.calculator-container {
  background-color: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .calculator-container {
    grid-template-columns: 3fr 2fr;
  }
}

/* Form elements */
.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  color: var(--color-gray-800);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.helper-text {
  color: var(--color-gray-500);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-gray-200);
  border-radius: 0.75rem;
  background-color: white;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--color-gray-700);
  font-weight: 500;
  transition: all 0.2s;
}

.dropdown-toggle:hover {
  border-color: var(--color-primary);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 0.75rem;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 0.875rem 1rem;
  cursor: pointer;
  color: var(--color-gray-700);
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: var(--color-gray-50);
  color: var(--color-primary);
}

/* Input styles */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group input {
  flex: 1;
  padding: 0.875rem;
  border: 2px solid var(--color-gray-200);
  border-radius: 0.75rem 0 0 0.75rem;
  font-size: 1rem;
  transition: all 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.input-group-append {
  padding: 0.875rem 1.25rem;
  background-color: var(--color-gray-100);
  border: 2px solid var(--color-gray-200);
  border-left: none;
  border-radius: 0 0.75rem 0.75rem 0;
  color: var(--color-gray-700);
  font-weight: 600;
}

/* Temperature slider */
.temperature-control {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--color-gray-200);
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.temperature-display {
  background-color: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  min-width: 80px;
  text-align: center;
}

/* Additional factors section */
.additional-factors {
  background-color: var(--color-gray-50);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-top: 2rem;
}

.additional-factors h3 {
  color: var(--color-gray-800);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.additional-factors h3 span {
  color: var(--color-gray-500);
  font-size: 0.875rem;
  margin-left: 0.5rem;
  font-weight: normal;
}

.factors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* System info section */
.system-info {
  background-color: var(--color-gray-50);
  border-radius: 1rem;
  padding: 1.5rem;
}

.system-info img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* Calculate button */
.calculate-button {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.2s;
}

.calculate-button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.action-buttons {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  padding: 0 2rem;
}

/* Secondary button styling (used for recalculate button) */
.secondary-button {
  padding: 1rem 1.5rem;
  margin: 0.5rem;
  background-color: white;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 180px;
}

/* Secondary button hover effect */
.secondary-button:hover {
  background-color: var(--color-primary);
  color: white;
} 

/* Results section */
.results {
  background-color: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Update the results header background and text color */
.results-header {
  background-color: #F5F5F4;
  padding: 2rem;
  text-align: center;
}

.results-header h2 {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.daily-watering,
.recommended-schedule {
  background-color: var(--color-gray-50);
  padding: 2rem;
  border-radius: 1rem;
}

.time-display {
  text-align: center;
  margin: 2rem 0;
}

.time-display .minutes {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.time-display .unit {
  color: var(--color-gray-500);
  margin-left: 0.75rem;
  font-size: 1.125rem;
}

.schedule-time {
  background-color: white;
  padding: 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

/* Seasonal adjustments */
.seasonal-adjustments {
  padding: 2rem;
}

.seasonal-adjustments h3 {
  color: var(--color-gray-800);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.season {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  transition: all 0.2s;
}

.season:hover {
  transform: translateY(-2px);
}

/* Season colors */
.season:nth-child(1) {
  background-color: #ecfdf5;
  border: 2px solid #059669;
}

.season:nth-child(2) {
  background-color: #fef3c7;
  border: 2px solid #d97706;
}

.season:nth-child(3) {
  background-color: #fff7ed;
  border: 2px solid #ea580c;
}

.season:nth-child(4) {
  background-color: #eff6ff;
  border: 2px solid #2563eb;
}

.season h4 {
  color: var(--color-gray-800);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.season p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  font-weight: 500;
}

/* Tips section */
.irrigation-tips {
  background-color: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin-top: 3rem;
}

.irrigation-tips h2 {
  color: var(--color-gray-800);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Footer Styles - Updated to match Image 2 */
.footer {
  background-color: #212121;
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.footer-info {
  max-width: 400px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-info p {
  color: white;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.link-group h4 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.link-group ul {
  list-style: none;
  padding: 0;
}

.link-group ul li {
  margin-bottom: 0.75rem;
}

.link-group a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.link-group a:hover {
  color: white;
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-info {
    max-width: 100%;
  }
  
  .calculator-container {
    grid-template-columns: 1fr;
  }
  
  .factors-grid {
    grid-template-columns: 1fr;
  }
  
  .seasons-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .tips-buttons {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .tips-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tips-section h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.tips-section ul {
  list-style: none;
}

.tips-section li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--color-gray-50);
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.tips-section li:hover {
  transform: translateX(4px);
}

.tips-section li i {
  color: var(--color-primary);
  flex-shrink: 0;
}

.tips-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.secondary-button {
  padding: 1rem;
  background-color: white;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-button:hover {
  background-color: var(--color-primary);
  color: white;
}

.hidden {
  display: none;
}