/* إعدادات عامة */
:root {
    --primary: #5E6465;
    --primary-light: #8a9192;
    --primary-dark: #4F575C;
    --accent: #988B49;
    --accent-light: #b8ad7a;
    --secondary: #7ba7ab;
    --secondary-light: #a8c8cb;
    --bg: #f5f3ef;
    --text: #3d4043;
    --text-light: #6b7073;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(79, 87, 92, 0.12);
    --radius: 12px;
    --border: #d5d8d9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: #85783d;
    border-color: #85783d;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-dark);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 14px 34px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* زر التسجيل في قسم عن الروضة - نص أبيض */
.btn-register {
    background-color: var(--accent);
    color: #ffffff !important;
    border-color: var(--accent);
    font-weight: 700;
}

.btn-register:hover {
    background-color: #85783d;
    color: #ffffff !important;
    border-color: #85783d;
}

/* الهيدر */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-dark);
}

nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* القسم الرئيسي Hero */
.hero {
    background: linear-gradient(135deg, #e8edf0, #f5f3ef);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.hero-decoration {
    flex: 0 0 220px;
    height: 220px;
    position: relative;
}

.sun {
    width: 80px;
    height: 80px;
    background: #d4c98e;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 30px rgba(212, 201, 142, 0.5);
}

.cloud {
    width: 80px;
    height: 35px;
    background: #ffffff;
    border-radius: 50px;
    position: absolute;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
}

.cloud::before {
    width: 40px;
    height: 40px;
    top: -20px;
    right: 15px;
}

.cloud::after {
    width: 35px;
    height: 35px;
    top: -15px;
    left: 10px;
}

.cloud1 {
    top: 90px;
    left: 20px;
}

.cloud2 {
    top: 40px;
    right: 10px;
    transform: scale(0.7);
}

.flower {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 3rem;
}

.flower2 {
    position: absolute;
    bottom: 30px;
    left: 15px;
    font-size: 2.5rem;
}

/* قسم الميزات */
.features {
    padding: 70px 0;
    background-color: var(--white);
}

.features .container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.feature-card {
    background: #faf9f7;
    padding: 30px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e8e6e2;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(79, 87, 92, 0.18);
}

.feature-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* قسم عن الروضة */
.about {
    padding: 50px 0;
    text-align: center;
    background-color: var(--bg);
}

.about h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.about a {
    color: var(--accent);
    font-weight: bold;
}

/* الفوتر */
footer {
    background-color: var(--primary-dark);
    color: #e0e0e0;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

footer p {
    font-size: 0.9rem;
}

/* النماذج */
.form-container {
    padding: 40px 15px;
    max-width: 800px;
}

.form-title {
    text-align: center;
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

fieldset {
    border: 2px solid #d5d8d9;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
    background: var(--white);
    box-shadow: var(--shadow);
}

legend {
    font-weight: bold;
    color: var(--primary-dark);
    padding: 0 12px;
    font-size: 1.15rem;
    background: var(--white);
    border-radius: 6px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text);
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
    background: #fdfdfd;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(123, 167, 171, 0.15);
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fdf0f0;
    color: #b33c3c;
    border: 1px solid #e5b8b8;
}

.contact-info {
    margin-top: 40px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-info h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* صفحة النجاح */
.success-container {
    padding: 60px 15px;
    text-align: center;
}

.success-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
}

.success-box h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

/* صفحة الدخول */
.login-container {
    padding: 60px 15px;
    display: flex;
    justify-content: center;
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

/* لوحة الإدارة */
.dashboard-container {
    padding: 40px 15px;
}

.dashboard-container h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.registrations-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.9rem;
}

.registrations-table th,
.registrations-table td {
    padding: 12px 10px;
    border: 1px solid #e5e5e5;
    text-align: right;
    white-space: nowrap;
}

.registrations-table th {
    background-color: #e8edf0;
    color: var(--primary-dark);
    font-weight: bold;
}

.registrations-table tr:nth-child(even) {
    background-color: #fafafa;
}

.registrations-table tr:hover {
    background-color: #f0f4f5;
}

.empty-message {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #999;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    nav {
        justify-content: center;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .hero-decoration {
        display: none;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .registrations-table {
        font-size: 0.8rem;
    }
}