/* تصميم الجسم العام */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #f0f0f5, #e6e6ea);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    direction: rtl;
}

/* الحاوية الرئيسية */
.main-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    text-align: center;
}

/* الرأس */
header {
    margin-bottom: 20px;
    text-align: center;
}

header img {
    max-width: 150px;
    margin-bottom: 10px;
}

h1 {
    color: #007236;
    font-size: 2em;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* محتوى الصفحة */
.content {
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #333;
    line-height: 1.8;
    text-align: center;
}

/* الأزرار */
.actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.button {
    padding: 15px;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    width: 80%;
    max-width: 250px;
}

.button.primary {
    background-color: #007236;
}

.button.primary:hover {
    background-color: #005a29;
    transform: scale(1.05);
}

.button.secondary {
    background-color: #555;
}

.button.secondary:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* الروابط */
.link {
    color: #007236;
    font-weight: bold;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* النماذج */
.form-register,
.form-login {
    width: 100%;
    margin-top: 20px;
    text-align: right;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
input[type="file"] {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="file"] {
    border: none;
}

input:focus,
select:focus {
    border-color: #007236;
    box-shadow: 0px 0px 5px rgba(0, 114, 54, 0.5);
    outline: none;
}

/* الأزرار داخل النماذج */
.btn-primary {
    padding: 15px;
    background-color: #007236;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background-color: #005a29;
    transform: scale(1.05);
}

/* عناصر القائمة */
.form-checkbox {
    margin-bottom: 15px;
}

.form-checkbox input[type="checkbox"] {
    margin-left: 5px;
}

.form-checkbox label {
    display: inline;
    font-weight: normal;
    margin-left: 5px;
}

/* تحسين استجابة الصفحة للشاشات الصغيرة */
@media (max-width: 600px) {
    .main-container {
        padding: 20px;
    }

    header img {
        max-width: 100px;
    }

    h1 {
        font-size: 1.6em;
    }

    .button,
    .btn-primary {
        font-size: 0.9em;
    }
}



/* تصميم الرسالة التفاعلية */
.notification {
    background-color: #e6ffe6; /* خلفية بلون أخضر فاتح */
    border: 1px solid #007236; /* إطار بلون أخضر */
    color: #007236;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: bold;
}

/* تصميم النافذة المنبثقة */
.popup {
    display: none; /* افتراضيًا، النافذة تكون مخفية */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* خلفية شفافة */
}

.popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* نص الرسالة */
#popup-text {
    font-size: 1.2em;
    color: #007236;
    margin-top: 10px;
}
