body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1620 100%);
    color: white;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.upload-area {
    border: 2px dashed #1494ea;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    border-radius: 8px;
    background: rgba(20, 148, 234, 0.1);
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #00f7ff;
    background: rgba(20, 148, 234, 0.2);
}

.upload-area p {
    margin: 5px 0;
}

.upload-area p:first-child {
    font-size: 1.2em;
    color: white;
}

.upload-area p:last-child {
    color: #8892b0;
}

#imagePreview {
    max-width: 100%;
    max-height: 400px;
    margin: 20px auto;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#results, #recommendations {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background: rgba(20, 148, 234, 0.1);
    border: 1px solid rgba(20, 148, 234, 0.2);
    display: none;
}

h2 {
    color: white;
    margin-bottom: 15px;
}

#predictions p {
    color: #8892b0;
    margin: 10px 0;
    font-size: 1.1em;
}

#recommendationsList {
    list-style: none;
    padding: 0;
}

#recommendationsList li {
    color: #8892b0;
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

#recommendationsList li::before {
    content: '•';
    color: #1494ea;
    position: absolute;
    left: 0;
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
    color: #1494ea;
}

.loading::after {
    content: "⏳";
    font-size: 24px;
    animation: spin 1s infinite linear;
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#modelStatus {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

#modelStatus.error {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

#modelStatus.success {
    color: #00C851;
    background: rgba(0, 200, 81, 0.1);
}

.analyzing {
    color: #8892b0;
    text-align: center;
    margin: 10px 0;
}

.poultry-health-container {
    max-width: 1200px;
    margin: 100px auto 2rem;
    padding: 0 1rem;
}

.poultry-health-container h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.description {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.upload-section {
    max-width: 800px;
    margin: 0 auto;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.upload-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.preview-area {
    margin-top: 2rem;
    text-align: center;
}

#previewImage {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.analyze-btn {
    background: #000080;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.analyze-btn:hover {
    background: #0000a0;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.results-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.health-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
}

.status-dot.warning {
    background: #FFC107;
}

.status-dot.danger {
    background: #F44336;
}

.confidence-score {
    font-size: 0.9rem;
    color: var(--text-color);
}

.analysis-details, .recommendations {
    margin-top: 2rem;
}

.analysis-details h3, .recommendations h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.analysis-details ul, .recommendations ul {
    list-style: none;
    padding: 0;
}

.analysis-details li, .recommendations li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.analysis-details li::before, .recommendations li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-overlay p {
    color: white;
    font-size: 1.2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .poultry-health-container {
        margin-top: 80px;
    }

    .health-status {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .results-section {
        padding: 1rem;
    }
} 