body {
    margin: 0;
    background-color: #ffffff;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

/* الحاوية العامة */
.page-container {
    margin-right: 600px;
    padding: 40px 20px;
    max-width: 900px;
}

/* مربع الإدخال الكامل */
.form-box {
    background-color: #4a00ff; /* بنفسجي */
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* النموذج الداخلي */
.domain-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    flex-direction: row; /* ✅ الزر يسار، الإدخال يمين */
}

/* حقل الإدخال */
.domain-form input {
    padding: 12px 15px;
    font-size: 16px;
    border: none;
    width: 60%;
    border-radius: 10px;
    outline: none;
    background-color: #c6f1f2;
    text-align: center;
}

/* زر التحميل */
.domain-form button {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #ffffff;
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.domain-form button:hover {
    background-color: #f0f0f0;
}

/* نتيجة التحميل */
.result-box {
    background-color: #c6f1f2;
    padding: 20px;
    border-radius: 14px;
    border: 5px solid #4a00ff;
    box-shadow: inset 0 0 0 5px #c6f1f2;
    overflow-x: auto;
    margin-top: 20px;
    color: #000;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* تحميل (loader) */
.loader {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #ffffff;
    border-top: 3px solid #00c9a7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* استجابة للجوال */
@media (max-width: 600px) {
    .domain-form {
        flex-direction: column;
        align-items: stretch;
    }

    .domain-form input,
    .domain-form button {
        width: 100%;
    }

    body {
        padding-right: 0;
    }
}
