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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Content Section */
.content {
    padding: 40px 30px;
}

/* Form Section */
.form-section {
    margin-bottom: 40px;
}

.form-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.section-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 600;
    margin: 25px 0 20px 0;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 1em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Buttons */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.reset-btn {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.reset-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* Results Section */
.results-section {
    margin-top: 40px;
}

.results-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.result-card {
    background: #f8f9fa;
    border-left: 5px solid #667eea;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left-color: #764ba2;
}

.result-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.efficacy-percentage {
    font-size: 2.5em;
    font-weight: 700;
    color: #667eea;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 25px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Prediction Result Styles */
.prediction-result {
    font-size: 1.3em;
    font-weight: 600;
    padding: 15px;
    background: white;
    border-radius: 6px;
}

.prediction-result .excellent {
    color: #28a745;
}

.prediction-result .good {
    color: #17a2b8;
}

.prediction-result .fair {
    color: #ffc107;
}

.prediction-result .poor {
    color: #dc3545;
}

/* Genomic Compatibility */
#genomicCompatibility {
    background: white;
    padding: 15px;
    border-radius: 6px;
    color: #333;
}

#genomicCompatibility p {
    margin: 8px 0;
}

/* Sensitivity Assessment */
.sensitivity-assessment p {
    margin: 12px 0;
    font-size: 1.05em;
    color: #333;
}

.risk-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95em;
    display: inline-block;
}

.risk-badge.low {
    background: #d4edda;
    color: #155724;
}

.risk-badge.moderate {
    background: #fff3cd;
    color: #856404;
}

.risk-badge.high {
    background: #f8d7da;
    color: #721c24;
}

/* Recommendation */
.recommendation {
    background: white;
    padding: 15px;
    border-radius: 6px;
    color: #333;
    line-height: 1.6;
    font-size: 1.05em;
}

/* Info Section */
.info-section {
    background: #f0f4ff;
    padding: 25px;
    border-radius: 6px;
    margin-top: 40px;
    border-left: 4px solid #667eea;
}

.info-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.info-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.info-list ul {
    margin-left: 20px;
    color: #555;
}

.info-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-list p {
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .header p {
        font-size: 1em;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .efficacy-percentage {
        font-size: 2em;
        margin-top: 10px;
    }

    .content {
        padding: 20px 15px;
    }

    .container {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 25px 15px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .form-section h2,
    .results-section h2 {
        font-size: 1.4em;
    }

    .submit-btn,
    .reset-btn {
        font-size: 1em;
        padding: 12px;
    }

    .section-title {
        font-size: 1em;
    }
}
