﻿* {
    box-sizing: border-box;
    font-family: "Tahoma", sans-serif;
}

body {
    /* إضافة الصورة كخلفية مع طبقة بيضاء شبه شفافة لجعلها باهتة */
    background: linear-gradient(rgba(245, 245, 245, 0.90), rgba(245, 245, 245, 0.90)), url('logo.jpg') no-repeat center center fixed;
    background-size: 450px; /* حجم الشعار في الخلفية */
    margin: 0;
    padding: 0;
    direction: rtl;
    color: #222222;
}

/* حاوية الحاسبة */
.calculator {
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.96); /* أبيض مع شفافية بسيطة جداً */
    padding: 30px;
    border-radius: 16px;
    border-top: 5px solid #f3c614; /* لمسة جمالية بلون الشعار */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

h1 {
    text-align: center;
    background: #1e1e1e;
    color: #f3c614; /* أصفر ذهبي متناسق مع الشعار */
    padding: 18px;
    border-radius: 10px;
    margin-top: 0;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#form-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.row {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .row label {
        width: 150px;
        font-weight: bold;
        color: #333333;
        font-size: 16px;
    }

input {
    flex: 1;
    height: 48px;
    border: 2px solid #dddddd;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

    input:focus {
        outline: none;
        border-color: #f3c614;
        background: #ffffff;
        box-shadow: 0 0 8px rgba(243, 198, 20, 0.3);
    }

/* زر الحساب */
button {
    height: 52px;
    background: #f3c614;
    color: #1a1a1a;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(243, 198, 20, 0.3);
}

    button:hover {
        background: #1e1e1e;
        color: #f3c614;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }

/* التظليل الخلفي للنافذة المنبثقة */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px); /* تأثير ضبابي جميل للخلفية */
    z-index: 9998;
}

/* صندوق النتيجة */
#resultBox {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    border: 3px solid #f3c614;
    border-radius: 20px;
    padding: 30px;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: show 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

    #resultBox h2 {
        text-align: center;
        background: #1e1e1e;
        color: #f3c614;
        padding: 15px;
        border-radius: 10px;
        margin-top: 0;
    }

    #resultBox p {
        font-size: 18px;
        color: #333333;
        padding: 10px 5px;
        border-bottom: 1px dashed #eeeeee;
        margin: 0;
        display: flex;
        justify-content: space-between;
    }

    #resultBox span {
        font-weight: bold;
        color: #1a1a1a;
    }

    #resultBox h3 {
        text-align: center;
        background: #f3c614;
        color: #1a1a1a;
        padding: 15px;
        border-radius: 10px;
        font-size: 22px;
        margin-bottom: 0;
    }

/* زر الإغلاق */
.closeResult {
    position: absolute;
    left: 15px;
    top: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e1e1e;
    color: #f3c614;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
}

    .closeResult:hover {
        background: #e74c3c;
        color: #ffffff;
        transform: none;
    }

@keyframes show {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 600px) {
    .row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

        .row label {
            width: 100%;
        }

    body {
        background-size: 300px;
    }
}
header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 50px;
}

    header > nav {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.footer-container > div{
   padding-right:10px;
   padding-left:10px;
}
body {
    /*background: url('logo.jpg') no-repeat center center fixed;
    إضافة الصورة كخلفية مع طبقة بيضاء شبه شفافة لجعلها باهتة background: linear-gradient(rgba(245, 245, 245, 0.90), rgba(245, 245, 245, 0.90)), url('logo.jpg') no-repeat center center fixed;
    background-size: 450px;*/ /* حجم الشعار في الخلفية */
    /*margin: 0;
    padding: 0;
    direction: rtl;
    color: #222222;*/
    background: url('logo.jpg') no-repeat center center fixed;
    background-size: cover;
}