/* ===================== PREDICTION SPECIFIC STYLES ===================== */

.prediction-container {
    max-width: 900px;
    margin: 100px auto 50px;
    padding: 30px;
    background: rgba(7, 42, 58, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prediction-container h2 {
    text-align: center;
    color: #03f803;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #a2c2f2;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: #093d59;
    border: 2px solid #1d5f7b;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #03f803;
    box-shadow: 0 0 10px rgba(3, 248, 3, 0.3);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.predict-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #03f803, #02c902);
    color: #1a1d2e;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.predict-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 248, 3, 0.4);
}

.predict-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.reset-button {
    padding: 15px 30px;
    background: #1d5f7b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: #2a7a9c;
}

/* Loading styles */
.loading-container {
    text-align: center;
    padding: 30px;
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #03f803;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result styles */
.result-container {
    margin-top: 30px;
    padding: 25px;
    background: rgba(9, 61, 89, 0.6);
    border-radius: 10px;
    display: none;
}

.result-container h3 {
    color: #03f803;
    margin-bottom: 20px;
    text-align: center;
}

.risk-high {
    color: #ff4444;
    font-weight: bold;
}

.risk-medium {
    color: #ff9800;
    font-weight: bold;
}

.risk-low {
    color: #4CAF50;
    font-weight: bold;
}

.probability-bar {
    height: 25px;
    background: #1d5f7b;
    border-radius: 12px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
}

.probability-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #ff9800, #ff4444);
    transition: width 1s ease-in-out;
    border-radius: 12px;
}

.probability-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #a2c2f2;
    font-size: 12px;
}

.recommendations {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.recommendations h4 {
    color: #03f803;
    margin-bottom: 15px;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendations li:last-child {
    border-bottom: none;
}

/* Input error state */
.input-error {
    border-color: #ff4444 !important;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.5) !important;
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .prediction-container {
        margin: 80px 15px 30px;
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .predict-button,
    .reset-button {
        width: 100%;
    }
    
    .result-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .prediction-container h2 {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px;
    }
}