/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    /* 1. Using the uploaded image as background */
    background-image: url('../images/bg.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay to ensure text is readable against the farm background */
.overlay {
    background-color: rgba(0, 0, 0, 0.6); /* 60% dark tint */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

header p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Drag and Drop Card Styling */
.upload-card {
    border: 3px dashed #27ae60; /* Green dashed line for nature feel */
    border-radius: 10px;
    padding: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #f9f9f9;
}

.upload-card:hover, .upload-card.highlight {
    background-color: #e8f8f5;
    border-color: #2ecc71;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Buttons - Big and easy to tap */
.btn-select {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: bold;
}

.btn-select:hover {
    background-color: #219150;
}

.btn-reset {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
}

/* Utilities */
.hidden {
    display: none;
}

#fileElem {
    display: none; /* Hide the actual ugly file input */
}

/* Image Preview */
#preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Prediction Result Styling */
.prediction-box {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    padding: 1rem;
    margin: 1rem 0;
    background-color: #ecf0f1;
    border-radius: 8px;
    border-left: 5px solid #27ae60;
}