:root {
    --primary-color: #2e7d32;
    --primary-light: #60ad5e;
    --primary-dark: #005005;
    --bg-color: #f1f8e9;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 1.5rem;
    margin: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* Typography & Utils */
.text-center { text-align: center; }
h2 { margin-bottom: 1rem; color: var(--primary-dark); }
p { margin-bottom: 1rem; }

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

/* Card */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

/* Upload Form */
.upload-card {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    border: 2px dashed var(--primary-light);
    border-radius: var(--border-radius);
    transition: 0.2s;
    background-color: #fafafa;
    margin-bottom: 20px;
}

.file-drop-area:hover {
    background-color: #f1f8e9;
    border-color: var(--primary-color);
}

.choose-file-button {
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 8px 15px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

.file-message {
    font-size: 0.9rem;
    color: #888;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Result Page */
.result-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-preview img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-response {
    background-color: #e8f5e9;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}

.ai-response h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

footer {
    padding: 2rem 0;
    color: #666;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .result-container {
        flex-direction: row;
    }
    .image-preview {
        flex: 1;
    }
    .ai-response {
        flex: 2;
    }
}
