/* css/main.css */
:root {
    --primary-color: rgb(123, 33, 159);
    --primary-light: rgba(123, 33, 159, 0.1);
    --primary-dark: rgb(93, 25, 126);
    --light-gray: #f5f7fa;
    --medium-gray: #e5e7eb;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --success-color:#15803cc7;
    --error-color:#b91c1cc7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e5e7eb' fill-opacity='0.3' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* تحسينات للهيدر */
.header-container {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.header-container.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* تنسيقات النص */
.text-primary {
    color: var(--primary-color);
}

.text-dark {
    color: var(--text-dark);
}

.text-light {
    color: var(--text-light);
}

/* تنسيقات الخلفية */
.bg-primary {
    background-color: var(--primary-color);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-medium {
    background-color: var(--medium-gray);
}

/* تنسيقات الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--light-gray);
    color: var(--text-dark);
}

.btn-light:hover {
    background-color: var(--medium-gray);
    transform: translateY(-2px);
}

/* القائمة المنسدلة */
.account-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--medium-gray);
    background-color: var(--white);
}

.account-btn:hover + .account-menu,
.account-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu a {
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.account-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* تحسينات للتجاوب مع الشاشات الصغيرة */
@media (max-width: 640px) {
    .header-container .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-container .container > div {
        width: 100%;
        justify-content: center;
    }
    
    .contact-info {
        display: none !important;
    }
    
    .account-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        margin-top: 10px;
    }
    
    .account-menu.show {
        display: block;
    }
}

/* تحسينات للرسوم المتحركة */
.animate__animated {
    --animate-duration: 0.5s;
}

/* تأثيرات التمرير */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تنسيقات الفوتر */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* css/main.css - إضافة أنماط الفوتر */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--white);
}

.footer-about p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.quick-links a:hover {
    color: var(--light-gray);
    padding-right: 5px;
}

.quick-links i {
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info i {
    margin-left: 0.75rem;
    margin-top: 0.25rem;
    font-size: 1.125rem;
    min-width: 20px;
}

.contact-info div {
    flex: 1;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    background-color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    padding: 1rem;
    color: var(--text-dark);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    grid-column: 1 / -1;
}


/* 
navbar 
*/
/* css/main.css - أنماط النافبار الاحترافية */
.navbar {
    background: linear-gradient(45deg, #9929bd 0%, #61177c 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    font-size: 80%;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    height: 45px;
    margin-left: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-logo span {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    margin: 0 0.2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.1rem;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    transform: translateX(0);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link i {
    margin-left: 0.6rem;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

.nav-link.has-dropdown::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link.has-dropdown::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 3px solid #9929bd;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    color: #333333;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #9929bd;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f5ff;
    color: #9929bd;
    padding-right: 1.5rem;
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item i {
    margin-left: 0.8rem;
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    color: #9929bd;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* أنماط للشاشات المتوسطة */
@media (max-width: 1200px) {
    .nav-link {
        padding: 0.8rem 0.9rem;
        font-size: 0.95rem;
    }
}

/* أنماط للشاشات الصغيرة */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: linear-gradient(45deg, #9929bd 0%, #61177c 100%);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.4s ease;
        overflow-y: auto;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        direction: ltr;
        right: 0;
    }
    .nav-menu .dropdown-menu .dropdown-item {
        display: flex;
        justify-content: right;
    }
    
    .nav-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        padding: 1.2rem 1rem;
        justify-content: space-between;
        border-radius: 0;
        width: 100%;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0;
        margin: 0;
    }
    
    .nav-item.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-item {
        padding: 1rem 1rem 1rem 2.5rem;
        color: #ffffff;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .dropdown-item i {
        color: #ffffff;
    }
    
    .dropdown-item::before {
        display: none;
    }
    
    .close-nav {
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        font-size: 1.8rem;
        cursor: pointer;
        color: #ffffff;
        z-index: 1002;
    }
}

/* تأثيرات للشريط عند التمرير */
.navbar.scrolled {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    padding: 0.3rem 0;
}

/* إضافة تأثيرات للهواتف */
@media (max-width: 640px) {
    body{
        overflow:  hidden !important;
    }
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo img {
        height: 38px;
    }
    
    .nav-logo span {
        font-size: 0.75rem;
    }
}

@media (min-width: 640px) {
    .nav-logo span {
        display: none;
    }
    .navbar .close-nav{
        display: none;
    }
}





.dashboard-welcome {
    position: relative;
    display: block;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin: 1rem 0;
}

.dashboard-welcome .h2{
    position: relative;
    display: block;
    text-decoration: underline;
    color: var(--white);
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0.5rem 0;
}

.dashboard-welcome .welcome-message {
    position: relative;
    display: inline;
    float: right;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}


.dashboard-welcome .logout-button {
    position: relative;
    display: inline;
    float: left;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}