/* ---------- Tabs ---------- */
.fhlwy-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.fhlwy-tabs button {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fhlwy-tabs button.active,
.fhlwy-tabs button:hover {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    transform: translateY(-2px);
}

/* ---------- Tab Content ---------- */
.fhlwy-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.fhlwy-tab-content.active {
    display: block;
}

/* ---------- Calculator Boxes ---------- */
.fhlwy-calc-box {
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fhlwy-calc-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.fhlwy-calc-box h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #333;
}

/* ---------- Inputs ---------- */
.fhlwy-calc-box input,
.fhlwy-calc-box select,
.fhlwy-calc-box textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1em;
    transition: all 0.3s ease;
}

.fhlwy-calc-box input:focus,
.fhlwy-calc-box select:focus,
.fhlwy-calc-box textarea:focus {
    outline: none;
    border-color: #a18cd1;
    box-shadow: 0 0 10px rgba(161,140,209,0.3);
}

/* ---------- Buttons ---------- */
.fhlwy-calc-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fhlwy-calc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ---------- Result Box ---------- */
.fhlwy-result {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    border-radius: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* ---------- Responsive ---------- */
@media(max-width: 768px){
    .fhlwy-tabs {
        flex-direction: column;
    }
}

/* ---------- Animation ---------- */
@keyframes fadeIn {
    0% {opacity:0; transform: translateY(10px);}
    100% {opacity:1; transform: translateY(0);}
}
/* ===== أيقونات صغيرة للعناوين ===== */
.fhlwy-calc-box h3::before {
    content: "🧮"; /* رمز الحاسبة */
    margin-right: 10px;
    font-size: 1.2em;
}

/* ===== تأثير ظهور النتائج ===== */
.fhlwy-result.animate {
    animation: popResult 0.3s ease forwards;
}

@keyframes popResult {
    0% {transform: scale(0.8); opacity: 0;}
    50% {transform: scale(1.1); opacity: 1;}
    100% {transform: scale(1); opacity: 1;}
}

/* ===== ظل متحرك للأزرار عند الضغط ===== */
.fhlwy-calc-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* ===== خلفية الصفحة خفيفة ===== */
body {
    background: linear-gradient(120deg, #fdfbfb, #ebedee);
}
/* ---------- Tabs ---------- */
.fhlwy-tabs {
    display: flex;
    justify-content: center; /* تمركز الأزرار في الوسط */
    gap: 25px; /* زيادة المسافة بين الأزرار */
    margin-bottom: 30px; /* زيادة المسافة عن المحتوى */
    flex-wrap: wrap;
}

.fhlwy-tabs button {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    border: none;
    padding: 15px 35px; /* تكبير الأزرار */
    border-radius: 40px; /* جعلها أكثر نعومة */
    cursor: pointer;
    font-weight: 700; /* تكبير الخط */
    font-size: 1.2em; /* حجم أكبر للكتابة */
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fhlwy-tabs button.active,
.fhlwy-tabs button:hover {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    transform: translateY(-2px);
}

