/* Mide Botoksu Uygunluk Testi - Medical Blue Theme */

/* Base Styles */
#mide-botoksu-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    font-family: inherit;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

/* Header */
.mide-botoksu-header {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    margin: -30px -30px 30px -30px;
    border-radius: 10px 10px 0 0;
}

.mide-botoksu-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.mide-botoksu-header p {
    margin: 0;
    font-size: 1rem;
}

/* Form Sections */
.form-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.section-title {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b82f6;
}

/* Form Controls */
.form-control {
    padding: 12px 15px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
}

.form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    transform: translateY(-1px) !important;
}

.form-control.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-text.text-muted {
    font-size: 0.85rem !important;
    color: #6c757d !important;
    margin-top: 5px !important;
}

/* Question Groups */
.question-group {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.question-group:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.question-label {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 1rem;
    display: block;
    margin-bottom: 12px;
    line-height: 1.5;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-check {
    margin-bottom: 0;
}

.form-check-input {
    margin-top: 0.25rem !important;
    margin-right: 8px !important;
    transform: scale(1.2);
}

.form-check-input:checked {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

.form-check-label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    padding-left: 5px;
}

/* Blue Button */
.btn-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: none !important;
    color: white !important;
    padding: 12px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.btn-blue:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3) !important;
}

.btn-blue:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
    color: white !important;
}

/* Result Section - Hidden by default */
.result-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #e2e8f0;
    height: 0 !important;
    overflow: hidden !important;
}

.result-section.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    animation: fadeInUp 0.5s ease;
}

#mide-botoksu-result:not(.show) {
    display: none !important;
    visibility: hidden !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BMI Display */
.result-header {
    margin-bottom: 25px;
}

.bmi-display {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.bmi-unit {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Eligibility Status */
.eligibility-status {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eligibility-status.eligible {
    background: #10b981;
    color: white;
}

.eligibility-status.not-eligible {
    background: #ef4444;
    color: white;
}

.eligibility-status.low-effect {
    background: #f59e0b;
    color: white;
}

.eligibility-status.limited-effect {
    background: #f97316;
    color: white;
}

/* Status Box */
.status-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.status-box.eligible {
    border-color: #10b981;
    background: #ecfdf5;
}

.status-box.not-eligible {
    border-color: #ef4444;
    background: #fef2f2;
}

.status-box.low-effect {
    border-color: #f59e0b;
    background: #fffbeb;
}

.status-box.limited-effect {
    border-color: #f97316;
    background: #fff7ed;
}

.status-box h6 {
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 12px;
}

.status-box p {
    margin: 0;
    line-height: 1.6;
    color: #374151;
}

.status-box.eligible p {
    color: #065f46;
}

.status-box.not-eligible p {
    color: #991b1b;
}

.status-box.low-effect p {
    color: #92400e;
}

.status-box.limited-effect p {
    color: #9a3412;
}

/* Recommendation Box */
.recommendation-box {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 15px;
}

.recommendation-box h6 {
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 10px;
}

.recommendation-box p {
    margin: 0;
    color: #1e40af;
    line-height: 1.5;
    font-weight: 500;
}

/* BMI Evaluation Table */
.bmi-evaluation h6 {
    color: #1e3a8a;
    font-weight: 700;
}

.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table th {
    background: #1e3a8a !important;
    color: white !important;
    font-weight: 600;
    border: none !important;
    padding: 12px 8px !important;
    font-size: 0.9rem;
}

.table td {
    padding: 10px 8px !important;
    vertical-align: middle !important;
    border-color: #e2e8f0 !important;
    font-size: 0.9rem;
}

.bmi-row.highlighted {
    background: #dbeafe !important;
    font-weight: 600;
}

.bmi-row.highlighted td {
    border-color: #3b82f6 !important;
    color: #1e40af !important;
}

/* Medical Warning */
.medical-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.medical-warning small {
    color: #92400e;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    #mide-botoksu-wrapper {
        margin: 20px;
        padding: 20px;
        border-radius: 8px;
    }
    
    .mide-botoksu-header {
        margin: -20px -20px 25px -20px;
        padding: 20px 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .mide-botoksu-header h3 {
        font-size: 1.5rem;
    }
    
    .mide-botoksu-header p {
        font-size: 0.9rem;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .question-group {
        padding: 15px;
    }
    
    .radio-group {
        gap: 15px;
    }
    
    .bmi-display {
        font-size: 2.8rem;
    }
    
    .table th,
    .table td {
        padding: 8px 6px !important;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .mide-botoksu-header h3 {
        font-size: 1.3rem;
    }
    
    .mide-botoksu-header p {
        font-size: 0.85rem;
    }
    
    .form-section {
        padding: 12px;
    }
    
    .question-group {
        padding: 12px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .bmi-display {
        font-size: 2.5rem;
    }
    
    .form-control {
        padding: 10px 12px !important;
        font-size: 0.95rem !important;
    }
    
    .btn-blue {
        padding: 10px 25px !important;
        font-size: 1rem !important;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 6px 4px !important;
        font-size: 0.75rem;
    }
}

/* Focus States */
.btn:focus {
    outline: none !important;
}

/* Print Styles */
@media print {
    #mide-botoksu-wrapper {
        box-shadow: none;
        border: 1px solid #000;
        margin: 0;
        break-inside: avoid;
    }
    
    .mide-botoksu-header {
        background: #f8f9fa !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .btn {
        display: none;
    }
    
    .result-section {
        opacity: 1 !important;
        transform: none !important;
    }
}
