/* Variables */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #A5D6A7;
    --accent-color: #FFC107;
    --text-dark: #2E3D4C;
    --text-light: #546E7A;
    --background-light: #F5F7FA;
    --white: #FFFFFF;
    --error-color: #F44336;
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hidden {
    display: none !important;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Button Styles */
.btn {
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.btn i {
    margin-left: 0.5rem;
}

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

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

.primary-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.secondary-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Upload Container Styles */
.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.upload-area {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border: 2px dashed var(--primary-light);
    border-radius: var(--border-radius);
    background-color: rgba(76, 175, 80, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: var(--primary-color);
}

.upload-area.dragover {
    background-color: rgba(76, 175, 80, 0.2);
    border-color: var(--primary-color);
}

.upload-instructions {
    text-align: center;
    padding: 2rem;
}

.upload-instructions i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-instructions h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.upload-instructions p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.file-types {
    font-size: 0.85rem;
    opacity: 0.8;
}

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

/* Results Container Styles */
.results-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.results-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.image-preview {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.results-details {
    flex: 1;
    min-width: 300px;
}

.result-card {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    height: 100%;
}

.result-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.confidence-meter {
    margin-bottom: 1.5rem;
}

.confidence-bar {
    height: 12px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 1s ease-in-out;
}

.confidence-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.tea-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Loading Container */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

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

/* Error Message */
.error-message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--error-color);
    color: white;
    padding: 1rem 2rem 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    z-index: 1001;
}

.error-message p {
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 0.5rem;
}

.error-message button {
    background: none;
    border: none;
    color: white;
    margin-left: 1rem;
    cursor: pointer;
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: var(--text-light);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        margin-bottom: 2rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        height: 200px;
    }
    
    .results-content {
        flex-direction: column;
    }
    
    .error-message {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
} 