/* ملف الأنماط العامة للموقع */
:root {
    --primary-color: #0099cc;
    --secondary-color: #0077a3;
    --accent-color: #ff6b6b;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f4fafe;
    padding-top: 80px;
    color: var(--dark-color);
    line-height: 1.6;
}

/* شريط التنقل العصري */
.navbar {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 1rem;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px ;
    margin-left: 10px ;
}

.nav-link {
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    position: relative;
    transition: var(--transition);
}

.nav-link:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover:before,
.nav-link.active:before {
    width: 100%;
    left: 0;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-toggler-icon:before,
.navbar-toggler-icon:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-toggler-icon:before {
    transform: translateY(-6px);
}

.navbar-toggler-icon:after {
    transform: translateY(6px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
    transform: rotate(-45deg);
}

.btn-outline-primary {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-appointment {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-appointment:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* أقسام الصفحة */
section {
    display: none;
    padding: 5rem 0;
    min-height: calc(100vh - 80px);
}

#homeSection {
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 153, 204, 0.85), rgba(0, 153, 204, 0.85)),
        url('https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn-hero {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    margin: 0 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-hero-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-hero-outline {
    border: 2px solid white;
    color: white;
    background-color: transparent;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* قسم الحجز */
.form-section {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    max-width: 800px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.8rem auto;
    border-radius: 2px;
}

/* الخدمات */
.service-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    margin-bottom: 1.5rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* التأكيد */
.confirmation-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

/* التذييل */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* زر الإدارة */
.admin-btn {

    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.admin-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* تحسينات للأجهزة الصغيرة */
@media (max-width: 767.98px) {
    .navbar {
        padding: 0.7rem 1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    section {
        padding: 3rem 0;
    }

    .form-section {
        padding: 1.5rem;
        border-radius: 10px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* تحسينات خاصة باللمس */
button,
input,
select,
textarea {
    touch-action: manipulation;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}


/* تأثير السلايدر */
/* إضافة أنماط جديدة لتأثير السلايدر */
.before-after-container {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.before-after-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.before-after-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.8rem auto;
    border-radius: 2px;
}

.before-after-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.before-after-item {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
}

.patient-name {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.before-after {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: inset(0 50% 0 0);
}

.slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 5px;
    height: 100%;
    background-color: #fff;
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider:before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767.98px) {
    .before-after {
        height: 250px;
    }

    .before-after-title {
        font-size: 1.8rem;
    }
}

/* booking */
.form-section {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 50px auto;
    max-width: 800px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0099cc;
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff6b6b;
    margin: 0.8rem auto;
    border-radius: 2px;
}

@media (max-width: 767.98px) {
    .form-section {
        padding: 1.5rem;
        margin: 30px auto;
    }
}

/* أنماط نافذة التأكيد */
.booking-confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.booking-confirmation-popup .popup-content {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.3s ease;
}

.booking-confirmation-popup .popup-header {
    background: #28a745;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    position: relative;
}

.booking-confirmation-popup .success-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.booking-confirmation-popup .popup-body {
    padding: 20px;
}

.booking-confirmation-popup .booking-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.booking-confirmation-popup .popup-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

/* أنماط نافذة الخطأ */
.error-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.error-popup .popup-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

.error-popup .popup-header {
    background: #dc3545;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.error-popup .error-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.error-popup .popup-body {
    padding: 20px;
    text-align: center;
}

.error-popup .popup-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* رسائل الخطأ العامة */
.error-message {
    background: #dc3545;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

/* booking lookup */
.lookup-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.booking-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}



/* dashboard */
.expired {
    background-color: #f8f9fa;
    color: #6c757d;
}

.actions-cell {
    white-space: nowrap;
}

/* login */

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background: white;
}

/* logout */
.logout-message {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);

}
