/* 🌱 BASIC RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary-green: #0b7a3a;
  --secondary-green: #2e7d32;
  --accent-green: #4caf50;
  --light-green: #e8f5ec;
  --dark-text: #192a1e;
  --light-text: #ffffff;
  --input-bg: #ffffff;
  --input-border: #c8e6ce;
  --button-bg: #0b7a3a;
  --button-hover: #085a2b;
  --result-bg: #e8f5ec;
  --nav-link: #374151;
  --bg-color: #fbfdfb;
  --text-color: #192a1e;
  --header-bg: #0b7a3a;
  --header-text: white;
  --card-bg: rgba(255, 255, 255, 0.85);
}

.dark-mode {
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --header-bg: #1a3310;
  --header-text: #e0e0e0;
  --input-bg: #2a2a2a;
  --input-border: #444;
  --button-bg: #2d682e;
  --button-hover: #3e8e41;
  --result-bg: #2d5016;
  --nav-link: #a5d6a7;
  --card-bg: rgba(0, 0, 0, 0.2);
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background-image: url("images\background .png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  transition: background-color 0.4s, color 0.4s;
}

/* 🌐 Centered Language Switcher */
#google_translate_element {
  position: relative;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  z-index: 9999;
}

.goog-te-gadget {
  font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
  font-size: 14px !important;
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid #43a047;
  background-color: #ffffff;
  color: #2e7d32;
  font-weight: 600;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  margin: 0 auto;
}

.goog-te-gadget .goog-te-combo:hover {
  border-color: #2e7d32;
  background-color: #f1f8e9;
}

.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

/* ===============================
   🌱 UNIFIED LIGHT TOPBAR (VOTEVICTORY ADAPTED)
   =============================== */

.ka-topbar, .main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2ece4;
  color: #192a1e;
  box-shadow: 0 1px 4px rgba(11, 122, 58, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Left Brand & Nav */
.ka-topbar-left, .header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.ka-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.ka-brand-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f5ec;
  border: 1px solid #cce5d2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ka-brand-title {
  font-size: 16px;
  font-weight: 800;
  color: #0b7a3a;
  letter-spacing: -0.2px;
  line-height: 1.1;
}

.ka-brand-subtitle {
  font-size: 10.5px;
  font-weight: 600;
  color: #5c6f60;
  letter-spacing: 0.2px;
}

/* Nav links in topbar */
.ka-nav-links, .header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ka-nav-item, .header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5e50;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ka-nav-item:hover, .header-nav a:hover {
  background: #f0f7f2;
  color: #0b7a3a;
}

.ka-nav-item.active, .header-nav a.active {
  background: #e8f5ec;
  color: #0b7a3a;
  font-weight: 700;
}

/* Right Controls */
.ka-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language selector container */
.ka-lang-wrap {
  display: flex;
  align-items: center;
}

.krishi-lang-picker-wrap {
  display: inline-flex;
  align-items: center;
  background: #f8faf8;
  border: 1px solid #d4ebd9;
  border-radius: 8px;
  padding: 4px 8px;
  transition: all 0.15s ease;
}

.krishi-lang-picker-wrap:hover {
  background: #e8f5ec;
  border-color: #0b7a3a;
}

.krishi-lang-select {
  border: none !important;
  background: transparent !important;
  font-size: 12.5px;
  font-weight: 600;
  color: #192a1e;
  outline: none;
  cursor: pointer;
}

/* Notification Button & Dropdown */
.ka-notify-wrap {
  position: relative;
}

.ka-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e2ece4;
  background: #f8faf8;
  color: #4b5e50;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.ka-icon-btn:hover {
  background: #e8f5ec;
  color: #0b7a3a;
  border-color: #cce5d2;
}

.ka-notify-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

.ka-notify-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: #ffffff;
  border: 1px solid #d4ebd9;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 12px;
  z-index: 1100;
}

.ka-notify-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf5ee;
  font-size: 12.5px;
}

.ka-notify-count {
  background: #e8f5ec;
  color: #0b7a3a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.ka-notify-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #f0f4f1;
  font-size: 12px;
}

.ka-notify-text {
  color: #192a1e;
  line-height: 1.35;
  font-weight: 500;
}

.ka-notify-time {
  color: #889988;
  font-size: 10.5px;
  margin-top: 3px;
}

/* AgriStore Pill */
.ka-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdf6ec;
  color: #c2410c;
  border: 1px solid #fed7aa;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ka-store-pill:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

/* User Pill */
.ka-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8faf8;
  border: 1px solid #d4ebd9;
  padding: 4px 10px 4px 5px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ka-user-pill:hover {
  background: #e8f5ec;
  border-color: #0b7a3a;
}

.ka-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #0b7a3a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.ka-user-info {
  display: flex;
  flex-direction: column;
}

.ka-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #192a1e;
  line-height: 1.1;
}

.ka-user-role {
  font-size: 10px;
  color: #0b7a3a;
  font-weight: 600;
}

.ka-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0b7a3a;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ka-login-pill:hover {
  background: #085a2b;
}

/* Mobile Menu Toggle */
.ka-menu-toggle, .menu-toggle {
  display: none;
  background: #f8faf8;
  border: 1px solid #e2ece4;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  color: #192a1e;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .ka-menu-toggle, .menu-toggle {
    display: flex;
  }
  .ka-nav-links, .header-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2ece4;
    padding: 12px 20px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    gap: 6px;
  }
  .ka-nav-links.ka-mobile-open, .header-nav.show {
    display: flex;
  }
  .ka-brand-subtitle {
    display: none;
  }
}



/* 🧠 MAIN CONTAINER & FORM DESIGN */
main {
  max-width: 860px;
  margin: 28px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2ece4;
  box-shadow: 0 4px 20px rgba(11, 122, 58, 0.04);
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 0;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-weight: 700;
  margin-bottom: 6px;
  color: #192a1e;
  font-size: 14px;
}

.input-group input,
.input-group select,
.input-group textarea {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #d4ebd9;
  font-size: 14.5px;
  transition: all 0.2s ease;
  background-color: #ffffff;
  color: #192a1e;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: #0b7a3a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 122, 58, 0.12);
}

/* 🎤 VOICE INPUT BUTTON */
.voice-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-wrapper button {
  background-color: #f0f7f2;
  color: #0b7a3a;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cce5d2;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.voice-wrapper button:hover {
  background-color: #e8f5ec;
  border-color: #0b7a3a;
}

/* 🟢 BUTTONS */
button[type="submit"],
button[type="button"] {
  background-color: #0b7a3a;
  color: white;
  padding: 11px 22px;
  border: none;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button[type="submit"]:hover,
button[type="button"]:hover {
  background-color: #085a2b;
  box-shadow: 0 4px 12px rgba(11, 122, 58, 0.2);
}

/* ✅ RESULT */
#result, #diseaseResult, #fertilizerResult, #weatherResult {
  margin-top: 20px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #192a1e;
  background-color: #f4fbf6;
  border: 1.5px solid #d4ebd9;
  border-radius: 12px;
}

/* ===============================
   📊 VOTEVICTORY ADAPTED STATCARDS & QUICK ACTIONS
   =============================== */
.ka-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ka-stat-card {
  background: #ffffff;
  border: 1.5px solid #e2ece4;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.ka-stat-card:hover {
  transform: translateY(-2px);
  border-color: #c8e6ce;
  box-shadow: 0 8px 20px rgba(11, 122, 58, 0.07);
}

.ka-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ka-stat-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #5c6f60;
}

.ka-stat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.ka-stat-icon-box.green {
  background: #e8f5ec;
  border: 1px solid #cce5d2;
  color: #0b7a3a;
}

.ka-stat-icon-box.amber {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #d97706;
}

.ka-stat-icon-box.blue {
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  color: #0284c7;
}

.ka-stat-icon-box.purple {
  background: #faf5ff;
  border: 1px solid #f3e8ff;
  color: #7c3aed;
}

.ka-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #192a1e;
  line-height: 1.1;
  margin-bottom: 4px;
}

.ka-stat-subtext {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Quick Actions List (VoteVictory Pattern) */
.ka-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ka-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #e2ece4;
  text-decoration: none;
  color: #192a1e;
  transition: all 0.18s ease;
  cursor: pointer;
}

.ka-action-btn:hover {
  background: #f4faf5;
  border-color: #0b7a3a;
  transform: translateX(3px);
  box-shadow: 0 3px 10px rgba(11, 122, 58, 0.06);
}

.ka-action-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ka-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #e8f5ec;
  border: 1px solid #cce5d2;
  flex-shrink: 0;
}

.ka-action-title {
  font-size: 14px;
  font-weight: 700;
  color: #192a1e;
  margin-bottom: 2px;
}

.ka-action-desc {
  font-size: 12px;
  color: #5c6f60;
}

.ka-action-arrow {
  color: #0b7a3a;
  font-size: 14px;
  font-weight: 700;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  .left-header {
    flex-direction: column;
    margin-bottom: 15px;
  }

  .logo {
    height: 50px;
    width: 50px;
    margin: 0 0 10px 0;
  }

  .title h1 {
    font-size: 20px;
  }

  .title p {
    font-size: 12px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
  
  nav a {
    margin: 5px;
  }

  main {
    width: 90%;
    margin: 10px auto;
    padding: 20px;
  }

  form {
    padding: 15px;
  }

  .input-group input,
  .input-group select,
  button {
    font-size: 14px;
  }
  
  .header-video {
    display: none;
  }
}

/* TECHNOLOGY SECTION */
.tech-section {
  background-color: var(--input-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 30px auto;
  max-width: 800px;
}

.tech-section h2 {
  color: var(--primary-green);
  margin-bottom: 20px;
  text-align: center;
}

.benefits {
  margin: 20px 0;
  padding-left: 20px;
}

.benefits li {
  margin-bottom: 10px;
  font-size: 16px;
}

/* For larger screens */
@media (min-width: 769px) {
  .header-video {
    display: block;
  }
}


/* ****************************** */
/* LOGIN AND REGISTER PAGE STYLES */
/* ****************************** */

/* Login/Register Container */
.auth-container, .register-container {
    min-height: 100vh;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 24px 16px !important;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above background effects */
}

/* --- Background Animations --- */
.bg-pattern {
    position: fixed; /* Use fixed so it doesn't scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: 
        radial-gradient(circle at 20% 20%, var(--primary-green) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, var(--secondary-green) 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px, 60px 60px, 30px 30px;
    animation: float 30s linear infinite;
    z-index: -1;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, -50px) rotate(360deg); }
}

.leaf-decoration {
    position: absolute;
    opacity: 0.6;
    color: var(--primary-green);
    animation: sway 10s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
    z-index: 0;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-10px); }
}

/* --- Glass Card (Unique Design) --- */
.glass-card, .register-glass-card {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto !important;
    text-align: center;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover, .register-glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}


.auth-header {
    margin-bottom: 30px;
}

.auth-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    color: white;
    font-size: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s;
}

.auth-logo:hover {
    transform: rotate(-5deg);
}

.auth-title {
    color: var(--header-bg); /* Use dark green for contrast against glass */
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 700;
}

.auth-tagline {
    color: var(--secondary-green);
    font-size: 16px;
    font-weight: 500;
}

.auth-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Neumorphic Input Fields --- */
.input-icon {
    position: relative;
    display: flex; /* Fixes alignment for icons and input */
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 15px;
    color: var(--secondary-green);
    z-index: 2;
    font-size: 18px;
}

.input-icon input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--input-bg);
    color: var(--text-color);
    /* Neumorphic inset shadow */
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.1), inset -3px -3px 6px rgba(255, 255, 255, 0.7);
}

.input-icon input:focus {
    outline: none;
    background: white;
    border: 1px solid var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.2);
}

/* --- Gradient Button (Shine effect) --- */
.auth-btn, .login-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover, .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(46, 125, 50, 0.35);
}

.auth-btn:active, .login-btn:active {
    transform: translateY(0);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 80, 22, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.auth-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s;
}

.auth-btn:hover::after {
    left: 100%; /* Swipe effect */
}

.auth-link, .register-link {
    margin-top: 22px;
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
}

.auth-link a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.auth-link a:hover {
    color: var(--secondary-green);
    transform: translateY(-1px);
}

.auth-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.auth-link a:hover i {
    transform: translateX(4px);
}

/* Status Messages & Growing Bar */
#authStatus, #loginStatus, #registerStatus {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
    min-height: 24px;
}

.error {
    background: #ffecb3; /* Light orange error */
    color: #f57f17;
}

.success {
    background: var(--light-green);
    color: var(--primary-green);
}

.growing-bar {
    height: 4px;
    background: linear-gradient(to right, var(--accent-green), var(--secondary-green));
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    transform-origin: left;
    display: none;
    border-radius: 0 0 20px 20px;
}

@keyframes grow {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* --- Register Page Specific Enhancements --- */

.input-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
    display: block;
}

.password-strength {
    margin-top: 8px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0;
    transition: width 0.3s, background 0.3s;
}

.terms-container {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: var(--dark-text);
}

.terms-container input {
    margin-right: 10px;
    margin-top: 2px;
    min-width: 16px;
    min-height: 16px;
    accent-color: var(--primary-green);
}

.terms-container label a {
    color: var(--primary-green);
    font-weight: 500;
}

.farmer-illustration {
    display: none; /* Hide custom illustration on this file */
}

/* Feature Grid: Unique section seen in the user's register screenshot */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.4); /* Lighter glass for features */
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary-green);
}

.feature-text {
    font-size: 12px;
    color: var(--dark-text);
    font-weight: 500;
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    body {
        /* Remove min-height to allow full scroll on smaller screens */
        min-height: auto;
    }
    
    .glass-card {
        padding: 30px 20px;
        max-width: 90%;
        margin-top: 50px; /* Add margin to avoid header overlap */
        margin-bottom: 50px;
    }

    .leaf-decoration {
        display: none; /* Reduce visual clutter on mobile */
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-logo {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .input-icon input {
        padding: 12px 12px 12px 45px;
        font-size: 15px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr; /* Stack features vertically on small mobile */
        gap: 10px;
    }
}
/* 👤 PROFILE DROPDOWN */
.profile-wrapper {
  position: relative;
  margin-left: 20px;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: white;
  font-weight: 600;
}

.profile-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #c8e6c9;
}

.arrow {
  font-size: 12px;
}

/* DROPDOWN */
.profile-dropdown {
  position: absolute;
  right: 0;
  top: 50px;
  background: white;
  color: #333;
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  z-index: 9999;
}

.profile-dropdown a,
.profile-dropdown p {
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.profile-dropdown a:hover {
  background: #e8f5e9;
}

.profile-dropdown hr {
  margin: 5px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.logout {
  color: red !important;
  font-weight: bold;
}

.profile-dropdown.show {
  display: flex;
}
/* =========================
   👤 PROFILE PAGE STYLES
   ========================= */

.profile-page {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
}

.profile-page h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--primary-green);
}

.profile-card {
  background: var(--input-bg);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-left: 6px solid var(--primary-green);
}

.profile-card p {
  font-size: 16px;
  margin: 15px 0;
  color: var(--text-color);
}

.profile-card strong {
  color: var(--secondary-green);
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  margin: 0 auto 15px;
}

/* Mobile */
@media (max-width: 600px) {
  .profile-card {
    padding: 18px;
  }
}
/* =========================
   ⚙️ SETTINGS PAGE STYLES
   ========================= */

.settings-page {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
}

.settings-page h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--primary-green);
}

.settings-card {
  background: var(--input-bg);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
  font-size: 16px;
}

.setting-item label {
  font-weight: 600;
  color: var(--text-color);
}

.setting-item select,
.setting-item input[type="checkbox"] {
  transform: scale(1.2);
}

.settings-btn {
  width: 100%;
  margin-top: 25px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(to right, #4caf50, #2e7d32);
  color: white;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.settings-btn:hover {
  opacity: 0.9;
}

/* Danger zone */
.danger {
  margin-top: 25px;
  text-align: center;
}

.danger button {
  background: #c62828;
  color: white;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  width: 100%;
}
/* ===============================
   🌍 LANGUAGE BAR – FIXED & SAFE
   =============================== */

.language-bar {
  position: sticky;          /* scroll ke sath safe rahe */
  top: 72px;                 /* header ke niche */
  z-index: 900;              /* header se niche, content se upar */
  background: var(--bg-color);
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Google dropdown styling */
#google_translate_element {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.goog-te-gadget {
  font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #43a047;
  background: var(--input-bg);
  color: var(--primary-green);
  font-size: 16px !important;
  font-weight: 600;
  cursor: pointer;
}

/* Hide Google branding */
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

/* 📱 MOBILE FIX */
@media (max-width: 768px) {
  .language-bar {
    top: 64px;      /* mobile header height */
    padding: 10px;
  }

  .goog-te-gadget .goog-te-combo {
    font-size: 15px !important;
  }
}
.weather-box {
  background: #e8f5e9;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 15px;
}

.crop-box {
  background: #1b5e20;
  color: white;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
}

.crop-name {
  font-size: 24px;
  font-weight: bold;
  color: #c8e6c9;
}

.loading {
  font-size: 16px;
  text-align: center;
}
.disease-card {
  background: #fff3e0;
  border-left: 5px solid #e65100;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

.product-card {
  background: #e8f5e9;
  border-left: 5px solid #2e7d32;
  padding: 12px;
  border-radius: 10px;
  margin-top: 12px;
}
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 35px;
}

.feature-card {
  background: #f1f8e9;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  text-decoration: none;
  color: #2e7d32;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-card h4 {
  margin: 10px 0 6px;
}

.feature-card p {
  font-size: 14px;
  color: #555;
}

.feature-card.active {
  border: 2px solid #2e7d32;
  background: #e8f5e9;
}
.weather-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #e8f5e9;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.weather-card h4 {
  color: #2e7d32;
  margin-bottom: 10px;
}
.assistant-container {
  max-width: 700px;
  margin: auto;
  padding: 20px;
}

.chat-box {
  border: 1px solid #ddd;
  height: 350px;
  overflow-y: auto;
  padding: 10px;
  background: #f9f9f9;
  margin-bottom: 10px;
}

.chat {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
}

.chat.user {
  background: #dcf8c6;
  align-self: flex-end;
}

.chat.bot {
  background: #e3f2fd;
}

.assistant-panel {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: auto;
}

.assistant-panel {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: auto;
}

.chat-box {
  border: 2px solid rgba(46, 125, 50, 0.35);
  border-radius: 18px;
  min-height: 320px;
  max-height: 520px;
  overflow-y: auto;
  padding: 18px;
  background: #f1f8ed;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat {
  margin: 0;
  padding: 14px 18px;
  border-radius: 18px;
  max-width: 82%;
  line-height: 1.6;
  font-size: 0.96rem;
}

.chat.user {
  align-self: flex-end;
  background: #dcedc8;
  color: #1b5e20;
}

.chat.bot {
  align-self: flex-start;
  background: #e8f5e9;
  color: #2d5016;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(46, 125, 50, 0.08);
  color: #2d5016;
  font-size: 0.95rem;
}

.typing-indicator span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d5016;
  animation: typing-dots 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-dots {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

.assistant-form {
  display: grid;
  gap: 12px;
}

.assistant-form textarea {
  width: 100%;
  min-height: 130px;
  padding: 16px;
  border: 1px solid #a5d6a7;
  border-radius: 14px;
  background: #fff;
  resize: vertical;
  font-size: 1rem;
  color: var(--dark-text);
}

.assistant-form button {
  width: min(220px, 100%);
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: var(--button-bg);
  color: var(--light-text);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease;
}

.assistant-form button:hover {
  background: var(--button-hover);
}

.assistant-status {
  font-size: 0.95rem;
  color: #2d5016;
  font-weight: 600;
}

.assistant-help {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 22px;
  background: #e8f5e9;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.assistant-help ul {
  list-style: inside disc;
  line-height: 1.8;
}

/* 🎯 SUGGESTED PROMPTS */
.suggested-prompts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.prompt-btn {
  padding: 14px 18px;
  background: white;
  border: 2px solid #a5d6a7;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #2d5016;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.prompt-btn:hover {
  background: #e8f5e9;
  border-color: #2e7d32;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.prompt-btn:active {
  transform: translateY(0);
}

/* ============================================
   🎨 ANIMATIONS & MODERN UI UPGRADES
   ============================================ */

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 🎯 HERO SECTION */
.hero-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 60px 40px;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8ed 100%);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(46, 125, 50, 0.2);
}

.hero-content h1 {
  font-size: 42px;
  color: #1b5e20;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 18px;
  color: #558b2f;
  margin-bottom: 24px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.cta-btn.primary {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: white;
}

.cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #2d5016;
  border: 2px solid #2e7d32;
}

.cta-btn.secondary:hover {
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 📊 FEATURES SECTION */
.features-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-box {
  background: white;
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(46, 125, 50, 0.15);
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #2e7d32;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-box h3 {
  font-size: 20px;
  color: #2d5016;
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-box p {
  font-size: 14px;
  color: #558b2f;
  line-height: 1.6;
}

/* 🌾 PREDICTION SECTION */
.prediction-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(232, 245, 233, 0.95), rgba(241, 248, 237, 0.95));
  border-radius: 20px;
  border: 2px solid rgba(46, 125, 50, 0.2);
}

.predict-btn {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2e7d32, #81c784);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.predict-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(46, 125, 50, 0.2);
}

.prediction-result {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}

.weather-card,
.result-card,
.alt-card {
  background: #ffffff;
  border: 1px solid rgba(46, 125, 50, 0.12);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.result-card {
  grid-column: 1 / -1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.crop-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  font-size: 32px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.detail-block {
  margin-bottom: 18px;
}

.detail-block h4 {
  margin-bottom: 10px;
  color: #2d5016;
}

.alternative-list h4 {
  margin-bottom: 14px;
  color: #2d5016;
}

.crop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.alt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alt-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.error-card {
  border-color: rgba(211, 47, 47, 0.2);
  background: rgba(255, 235, 238, 0.95);
  color: #b71c1c;
}

/* ⚡ LOADING SPINNER */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(46, 125, 50, 0.2);
  border-top-color: #2e7d32;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2d5016;
}

/* 🎤 VOICE BUTTON */
.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #81c784, #2e7d32);
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.voice-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.voice-btn.listening {
  animation: pulse 1.2s ease-in-out infinite;
  background: linear-gradient(135deg, #ff9800, #f57c00);
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 20px;
    margin: 20px auto;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-box {
    padding: 24px 16px;
  }

  .prediction-result {
    grid-template-columns: 1fr;
  }

  .cta-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .chat-box {
    max-height: 420px;
  }

  .assistant-panel,
  .assistant-help {
    padding: 18px;
  }
}

/* 🌿 ORGANIC ANIMATIONS & VISUAL POLISH */
@keyframes sproutGrow {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
  }
  60% {
    opacity: 0.9;
    transform: scale(1.02) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes leafSway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(6deg);
  }
}

.sprout-reveal {
  animation: sproutGrow 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.leaf-sway {
  animation: leafSway 4s ease-in-out infinite;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(45, 80, 22, 0.15);
}


/* =========================================================
   DASHBOARD LAYOUT (PHASE 1 RESTRUCTURE)
========================================================= */

.dashboard-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-color);
}

.sidebar {
  width: 250px;
  background: var(--primary-green);
  color: var(--light-text);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: white;
  padding: 4px;
}

.sidebar-title {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav a {
  padding: 14px 24px;
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--light-text);
  border-left-color: var(--button-bg);
}

.sidebar-nav a i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* Quick Access Store Button */
.quick-store-btn {
  margin: 10px 20px;
  padding: 12px !important;
  background: #ff9800 !important;
  color: #fff !important;
  border-radius: 8px;
  border-left: none !important;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  animation: pulse-store 2s infinite;
}
.quick-store-btn:hover {
  background: #f57c00 !important;
  transform: translateY(-2px);
}

@keyframes pulse-store {
  0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

.dashboard-topbar {
  height: 60px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 10;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-green);
  cursor: pointer;
}

.dashboard-view {
  display: none;
  padding: 24px;
  animation: fadeSlideUp 0.4s ease-out forwards;
}

.dashboard-view.active {
  display: block;
}

/* =========================================================
   ANIMATIONS (ORGANIC & GROWTH)
========================================================= */

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes growReveal {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.grow-reveal {
  animation: growReveal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary-green);
  transition: transform 0.2s;
}
.stat-card:hover {
  transform: translateY(-4px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    height: 100%;
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .hamburger-btn {
    display: block;
  }
}

/* =========================================================
   TASK 2 ANIMATIONS: ORGANIC AGRI + QUICK-COMMERCE MOTION
========================================================= */

/* 1. Organic Sprout & Plant Growth Animations */
@keyframes seedGerminate {
  0% { transform: scale(0.6) translateY(20px); opacity: 0; filter: blur(4px); }
  60% { transform: scale(1.05) translateY(-4px); opacity: 0.9; filter: blur(0); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.organic-reveal {
  animation: seedGerminate 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 2. Micro-rotational 3D Tilt for Produce & Products */
.tilt-produce {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.tilt-produce:hover {
  transform: perspective(1000px) rotateX(4deg) rotateY(-4deg) translateY(-8px);
  box-shadow: 0 16px 36px rgba(45, 80, 22, 0.16);
}

/* 3. Snappy Quick-Commerce Button Morph / Ripple */
@keyframes buttonPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

.btn-press {
  animation: buttonPulse 0.22s ease-in-out;
}

/* 4. Smooth Cart Drawer Slide & Backdrop Blur */
.drawer-backdrop {
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

/* 5. Shimmer Skeleton Loader for Low-End Mobile */
@keyframes shimmerWave {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-box {
  background: linear-gradient(90deg, #f0f3f0 25%, #e2e8e2 50%, #f0f3f0 75%);
  background-size: 200% 100%;
  animation: shimmerWave 1.6s infinite ease-in-out;
  border-radius: 8px;
}

/* Unified Auth Headers */
.login-header, .register-header {
    margin-bottom: 24px;
    text-align: center;
}

.login-header .logo, .register-header .logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.login-header h1, .register-header h1 {
    color: var(--primary-green);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.login-header .tagline, .register-header .tagline {
    color: #4b5563;
    font-size: 13.5px;
    margin: 0;
}

/* Auth Language Bar Floating / Header */
.auth-lang-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    gap: 8px;
}

.krishi-lang-picker-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #a5d6a7;
    border-radius: 20px;
    padding: 4px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.krishi-lang-select {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-green);
    outline: none;
    cursor: pointer;
}

.krishi-lang-select.dark {
    color: #ffffff;
}
