  :root {
    --dark-green: #1E2A22;
    --medium-green: #354C39;
    --sage: #5A624C;
    --olive: #4A5D2E;
    --accent: #8A9A5B;
    --text: #E0E6D4;
    --shadow-color: rgba(0, 0, 0, 0.35);
  }
  
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(to bottom, var(--dark-green), #111A14);
    min-height: 100vh;
    color: var(--text);
    padding-top: 90px; 
  }
.clouds {
    position: fixed;
    width: 100%;
    height: 100%;
    background: url('https://i.imgur.com/U5BpM9T.png') repeat-x;
    animation: moveClouds 60s linear infinite;
    opacity: 0.1;
    z-index: 0;
    top: 0;
    left: 0;
}

@keyframes moveClouds {
    from { background-position: 0 0; }
    to { background-position: 10000px 0; }
}
.navbar {
  background: linear-gradient(to right, #2D3A24, #1A2212);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  height: 90px;
  box-shadow: 0 3px 12px var(--shadow-color);
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(138, 154, 91, 0.2);
}

.navbar .logo {
  font-size: 30px;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
  margin-left: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar .logo:hover {
  color: #E0E6D4;
  transform: scale(1.02);
}

.navbar .nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar .nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.navbar .nav-links a:hover {
  color: var(--accent);
  background-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.navbar .nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-links a:hover::after {
  width: 60%;
}


h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
  color: var(--accent);
}

h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h4 {
    color: var(--light-green);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

form {
  background: rgba(30, 42, 34, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  border: 1px solid var(--sage);
  margin: 0 auto;
}

input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  background: rgba(58, 76, 57, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(138, 154, 91, 0.3);
  color: var(--text);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  background: var(--medium-green);
  border: none;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-right: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
  background: var(--sage);
}
button[type="submit"] {
  background: var(--olive);
  border: none;
  color: var(--text);
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  align-self: center;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 200px;
}

button[type="submit"]:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.results-container {
    background: rgba(30, 40, 30, 0.8);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

.disease-info {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.uploaded-image {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.solution-info {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.confidence {
    background: var(--input-bg);
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.description, .prevention {
    background: var(--input-bg);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    line-height: 1.6;
    border: 1px solid var(--border-color);
}

.solution-product {
    background: var(--input-bg);
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.product-image {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(30, 40, 30, 0.5);
    padding: 0.5rem;
}

.buy-button {
  background: var(--olive);
  border: none;
  color: var(--text);
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  align-self: center;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 200px;
}

.buy-button:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .container {
        margin-top: 8rem;
        padding: 1.5rem;
    }
    
    .results-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .uploaded-image, .solution-info {
        grid-column: 1 / -1;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .description, .prevention, .solution-product {
        padding: 0.8rem;
    }
}