:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 3rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Upload Section */
.upload-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 3px dashed var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-dark);
}

.upload-area.dragover {
    background: #e8f8f5;
    border-color: var(--primary-dark);
}

.upload-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.upload-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
}

.btn-secondary {
    background: #ecf0f1;
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #d5dbdb;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid #e0e0e0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

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

.loading-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.loading-content p {
    color: var(--text-light);
}

/* Results Section */
.results-section {
    width: 100%;
}

.results-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .results-container {
        grid-template-columns: 1fr;
    }
}

.image-preview {
    text-align: center;
}

.image-preview img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.plant-info {
    padding: 10px;
}

.confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d5f5e3;
    color: #27ae60;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
}

.plant-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.scientific-name {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.info-card h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 3px;
}

.info-card p {
    font-weight: 600;
    color: var(--text-color);
}

.description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    line-height: 1.6;
}

.tips-section, .medicinal-section, .predictions-section {
    margin-bottom: 25px;
}

.tips-section h3, .medicinal-section h3, .predictions-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.tips-section h3 i {
    color: var(--accent-color);
}

.medicinal-section h3 i {
    color: #e74c3c;
}

.predictions-section h3 i {
    color: var(--secondary-color);
}

.tips-section ul, .medicinal-section ul {
    list-style: none;
    padding-left: 0;
}

.tips-section li, .medicinal-section li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #ecf0f1;
}

.tips-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.medicinal-section li::before {
    content: "♥";
    position: absolute;
    left: 0;
    color: #e74c3c;
}

.predictions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.prediction-name {
    font-weight: 500;
}

.prediction-confidence {
    font-weight: 600;
    color: var(--primary-color);
}

/* Error Section */
.error-section {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.error-content i {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.error-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .plant-name {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
