/* Plant Disease Page Styles */
:root {
    --primary-color: #2e7d32;
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --accent-color: #ff9800;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
  }
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f5f7fa;
    color: #333;
}

.page {
  padding-top: 70px; /* Adjust this value based on your navbar height */
}

.hero-section {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}
  

.prediction-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    margin: 0 auto;
    max-width: 800px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prediction-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

h2 {
    color: #1a472a;
    font-size: 28px;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #38af3c;
    border-radius: 3px;
}

.description {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.upload-container {
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #38af3c;
    border-radius: 10px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.upload-area:hover, .upload-area.dragover {
    background-color: #e9f7ed;
    border-color: #2d8a30;
    transform: scale(1.01);
}

.upload-icon {
    font-size: 48px;
    color: #38af3c;
    margin-bottom: 15px;
}

.upload-area h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.upload-area p {
    margin: 0 0 15px 0;
    color: #666;
}

.file-input-label {
    display: inline-block;
    background-color: #38af3c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(56, 175, 60, 0.2);
}

.file-input-label:hover {
    background-color: #2d8a30;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(56, 175, 60, 0.3);
}

.preview-container {
    margin-bottom: 30px;
}

.image-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    max-width: 100%;
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ff4444;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.remove-btn:hover {
    background-color: #ff4444;
    color: white;
    transform: scale(1.1);
}

.predict-btn {
    background-color: #38af3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(56, 175, 60, 0.2);
    position: relative;
    top: -20px;
    left: 30px;
    display: inline-block;
}

.predict-btn:hover {
    background-color: #2d8a30;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(56, 175, 60, 0.3);
}

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

.result-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.result-container h3 {
    color: #1a472a;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.result-container h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #38af3c;
    border-radius: 2px;
}

.prediction-result {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.prediction-result p {
    margin: 8px 0;
    font-size: 16px;
}

.prediction-result span {
    font-weight: 600;
    color: #38af3c;
}

.disease-info {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.loading-container {
    margin: 30px 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #38af3c;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .page {
        width: 90%;
        margin: 80px auto 20px;
    }
    
    .prediction-container {
        padding: 20px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
}
