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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #1a1a1a;
    color: #ffffff;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #2d2d2d;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #3498db;
    margin-bottom: 2rem;
}

/* Status Styles */
.status {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #363636;
    border-radius: 5px;
    color: #ffffff;
}

/* Upload Section */
.upload-section {
    text-align: center;
    margin: 2rem 0;
}

.hidden {
    display: none;
}

.upload-button {
    display: block;
    padding: 2rem;
    margin: 1rem auto;
    border: 2px dashed #3498db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #363636;
    color: #ffffff;
}

.upload-button:hover {
    background-color: #404040;
    border-color: #2980b9;
}

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

/* Preview Section */
.preview-section {
    margin-top: 2rem;
}

.image-container {
    max-width: 400px;
    margin: 1rem auto;
}

#preview-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Results Section */
.results-container {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #363636;
    border-radius: 5px;
}

.predictions {
    margin-top: 1rem;
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    margin: 0.5rem 0;
    background-color: #404040;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.confidence-bar {
    height: 20px;
    background-color: #3498db;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #363636;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    margin: 1rem auto;
    animation: spin 1s linear infinite;
}

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

/* Reset Button */
.reset-button {
    display: block;
    margin: 2rem auto;
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reset-button:hover {
    background-color: #2980b9;
}

/* Success and Error States */
.success {
    background-color: #2ecc71;
    color: #fff;
}

.error {
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    .upload-button {
        padding: 1rem;
    }
}