/* ==========================================
   1. تنسيق الصفحة الرئيسية
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');
   .whatif-container {
    max-width: 1200px;
    width: 95%;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.whatif-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.whatif-header .page-title {
    font-family: 'Cairo', sans-serif;
    font-size: 34px;
    color: #f4ede2;
    margin-bottom: 8px;
}

.whatif-header .page-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    color: #b8afa4;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================
   2. بطاقة الوضع الحالي
   ========================================== */
.current-status-card {
    background-color: #28221d;
    border: 1px solid #433830;
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}

.current-status-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    color: #f4ede2;
    margin-bottom: 1.2rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #f4ede2;
}

.input-field {
    width: 100%;
    padding: 12px 14px;
    background-color: #1c1815;
    border: 1px solid #433830;
    border-radius: 8px;
    color: #f4ede2;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    outline: none;
}

.input-field:focus {
    border-color: #d4a373;
}

/* ==========================================
   3. بطاقة السيناريو والجدول
   ========================================== */
.scenario-card {
    background-color: #28221d;
    border: 1px solid #433830;
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}

.scenario-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    color: #f4ede2;
    margin-bottom: 1.2rem;
}

.whatif-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2rem;
}

.whatif-table th,
.whatif-table td {
    padding: 10px;
    text-align: right;
    border-bottom: 1px solid #433830;
}

.whatif-table th {
    font-family: 'Cairo', sans-serif;
    color: #f4ede2;
    font-size: 15px;
}

.select-field {
    width: 100%;
    padding: 9px;
    background-color: #1c1815;
    border: 1px solid #433830;
    border-radius: 6px;
    color: #f4ede2;
    font-size: 14px;
    outline: none;
    font-family: 'Cairo', sans-serif;
}

.select-field:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.select-field:focus {
    border-color: #d4a373;
}

.scenario-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-add,
.btn-calc,
.btn-remove {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add {
    background-color: #332b25;
    color: #f4ede2;
    border: 1px solid #433830;
}

.btn-add:hover {
    background-color: #433830;
}

.btn-calc {
    background-color: #d4a373;
    color: #1c1815;
}

.btn-calc:hover {
    background-color: #e9c46a;
}

.btn-remove {
    background-color: #5c2c2c;
    color: #fca5a5;
    padding: 6px 12px;
    font-size: 13px;
}

.btn-remove:hover {
    background-color: #7a3a3a;
}

/* ==========================================
   4. صندوق المقارنة والنتائج
   ========================================== */
.whatif-result-box {
    display: none;
    background-color: #28221d;
    border: 1px solid #d4a373;
    border-radius: 16px;
    padding: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

.whatif-result-box.visible {
    display: block;
}

.comparison-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.compare-card {
    text-align: center;
    background-color: #1c1815;
    border: 1px solid #433830;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    min-width: 180px;
}

.compare-card.highlight {
    border-color: #d4a373;
}

.compare-card h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    color: #b8afa4;
    margin-bottom: 8px;
}

.compare-score {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #d4a373;
}

.compare-arrow {
    font-size: 28px;
    color: #b8afa4;
}

.impact-text {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    color: #f4ede2;
    text-align: center;
    line-height: 1.7;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   5. التجاوب
   ========================================== */
@media (max-width: 700px) {
    .whatif-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}