/* ============================================
   منصة عِفّة - ملف التنسيقات الرئيسي
   ============================================ */

/* إعدادات عامة */
:root {
    --primary-color: #025A46;
    --primary-light: #E1F5EE;
    --primary-medium: #008060;
    --white: #FFFFFF;
    --dark: #222222;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --online-color: #28a745;
    --offline-color: #dc3545;
}

/* ============================================
   شارة حالة الاتصال (Online Badge) - نسخة بسيطة وواضحة
   ============================================ */
.online-status-badge {
    display: inline-block !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    position: relative !important;
    z-index: 10 !important;
}

/* تأثير النبض للشارة الخضراء */
@keyframes pulse-online {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.15);
    }
}

/* تطبيق النبض على الشارة الخضراء */
.online-status-badge[style*="#28a745"] {
    animation: pulse-online 2s infinite;
}

/* موضع الشارة بجانب الاسم */
.member-name {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

.member-name .online-status-badge {
    order: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.member-name span {
    order: 2 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    direction: rtl;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   الهيدر
   ============================================ */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    transition: var(--transition);
}

.logo a:hover {
    color: var(--primary-medium);
}

.logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.user-menu {
    position: relative;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-link i:first-child {
    font-size: 20px;
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    list-style: none;
    min-width: 200px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.user-menu:hover .dropdown-menu,
.user-menu .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ============================================
   الأزرار
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ============================================
   البانر الرئيسي
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-medium) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,150,1344,106,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.hero-buttons .btn {
    padding: 15px 40px;
    font-size: 18px;
}

/* ============================================
   قسم المميزات
   ============================================ */
.features-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================
   قسم النبذة
   ============================================ */
.about-section {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 18px;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}

.about-list {
    list-style: none;
    margin-top: 30px;
}

.about-list li {
    padding: 15px 0;
    padding-right: 30px;
    position: relative;
    color: var(--gray);
    font-size: 18px;
}

.about-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-size: 20px;
}

/* ============================================
   الفوتر
   ============================================ */
.main-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-light);
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

/* ============================================
   الصفحات الداخلية
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-medium) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* حجم الهيدر في الجوال لكل الصفحات الداخلية */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 0 !important;
    }
    .page-header h1 {
        font-size: 22px !important;
        margin-bottom: 5px !important;
    }
    .page-header p {
        font-size: 13px !important;
        margin-bottom: 0 !important;
    }
    .page-content {
        padding: 30px 0 !important;
    }
}

.page-content {
    padding: 60px 0;
}

/* ============================================
   كروت الأعضاء
   ============================================ */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.member-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.member-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-image .no-image {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.5);
}

.member-info {
    padding: 25px;
}

.member-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.member-details {
    list-style: none;
    margin-top: 15px;
}

.member-details li {
    padding: 8px 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-details li i {
    color: var(--primary-color);
    width: 20px;
}

.member-actions {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

/* ============================================
   النماذج
   ============================================ */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 90, 70, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 14px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-left: 10px;
    cursor: pointer;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 20px;
}

.alert-error {
    background: #FFEBEE;
    color: #f44336;
    border-right: 4px solid #f44336;
}

.alert-success {
    background: #E8F5E9;
    color: #4CAF50;
    border-right: 4px solid #4CAF50;
}

.alert-warning {
    background: #FFF3E0;
    color: #FF9800;
    border-right: 4px solid #FF9800;
}

.alert-info {
    background: #E3F2FD;
    color: #2196F3;
    border-right: 4px solid #2196F3;
}

/* ============================================
   الرسوم المتحركة
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   التصميم المتجاوب
   ============================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .hamburger.active span:nth-child(1) {
        -webkit-transform: rotate(45deg) translate(8px, 8px);
        -moz-transform: rotate(45deg) translate(8px, 8px);
        -ms-transform: rotate(45deg) translate(8px, 8px);
        -o-transform: rotate(45deg) translate(8px, 8px);
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        -webkit-transform: rotate(-45deg) translate(7px, -7px);
        -moz-transform: rotate(-45deg) translate(7px, -7px);
        -ms-transform: rotate(-45deg) translate(7px, -7px);
        -o-transform: rotate(-45deg) translate(7px, -7px);
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* طبقة التعتميم */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
        -moz-transition: opacity 0.3s ease, visibility 0.3s ease;
        -o-transition: opacity 0.3s ease, visibility 0.3s ease;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        background: -webkit-linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        background: -moz-linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        background: -o-linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        -webkit-box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        -moz-box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        padding: 100px 0 20px 0;
        gap: 0;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        -webkit-transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        -moz-transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), -moz-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        -o-transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), -o-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: right;
        align-items: stretch;
        justify-content: flex-start;
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }

    .nav-menu.active {
        right: 0 !important;
        -webkit-transform: translateX(0) !important;
        -moz-transform: translateX(0) !important;
        -ms-transform: translateX(0) !important;
        -o-transform: translateX(0) !important;
        transform: translateX(0) !important;
        text-align: right;
        padding: 20px !important;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #e9ecef;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: stretch;
        -moz-align-items: stretch;
        -ms-align-items: stretch;
        align-items: stretch;
    }

    .nav-menu li:first-child {
        border-top: 1px solid #e9ecef;
        margin-top: 0px; /* إضافة مسافة بين الشعار والقائمة */
    }
    
    .nav-menu .nav-link {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        -moz-align-items: center;
        -ms-align-items: center;
        align-items: center;
        gap: 12px;
        padding: 18px 25px;
        color: var(--dark);
        font-weight: 500;
        font-size: 16px;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
        text-decoration: none;
        position: relative;
        -webkit-justify-content: flex-start;
        -moz-justify-content: flex-start;
        -ms-justify-content: flex-start;
        justify-content: flex-start;
        text-align: right;
        width: 100%;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:active {
        background-color: var(--primary-light);
        color: var(--primary-color);
        padding-right: 30px;
    }

    .nav-menu .nav-link i {
        font-size: 18px;
        width: 24px;
        text-align: center;
        color: var(--primary-color);
    }

    .nav-menu .btn {
        margin: 15px 25px;
        width: -webkit-calc(100% - 50px);
        width: -moz-calc(100% - 50px);
        width: calc(100% - 50px);
        padding: 14px 20px;
        text-align: center;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        border-radius: 8px;
        font-weight: 600;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        -moz-align-items: center;
        -ms-align-items: center;
        align-items: center;
        -webkit-justify-content: center;
        -moz-justify-content: center;
        -ms-justify-content: center;
        justify-content: center;
        gap: 8px;
    }

    .nav-menu .btn i {
        color: white;
    }

    /* تحسين عرض الشارات (badges) في القائمة الجانبية */
    .nav-menu .nav-link span {
        position: absolute;
        left: 25px;
        top: 50%;
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        transform: translateY(-50%);
    }
    
    
    .nav-menu .user-menu {
        position: static;
    }

    .nav-menu .user-link {
        padding: 18px 25px;
        border-bottom: 1px solid #e9ecef;
        justify-content: flex-start;
        text-align: right;
        width: 100%;
    }
    
    /* صورة المستخدم في القائمة الجانبية للجوال */
    .nav-menu .user-link img.user-profile-image-mobile {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--primary-light);
        flex-shrink: 0;
    }
    
    .nav-menu .user-link i.fa-user-circle {
        font-size: 24px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        background: #f8f9fa;
        display: none;
        border-top: 1px solid #e9ecef;
        border-bottom: 1px solid #e9ecef;
        width: 100%;
        align-items: stretch;
    }
    
    .dropdown-menu.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 500px;
        }
    }
    
    .dropdown-menu li {
        padding: 0;
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        padding: 16px 25px 16px 50px;
        color: var(--dark);
        font-size: 15px;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        -moz-align-items: center;
        -ms-align-items: center;
        align-items: center;
        gap: 12px;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
        -webkit-justify-content: flex-start;
        -moz-justify-content: flex-start;
        -ms-justify-content: flex-start;
        justify-content: flex-start;
        text-align: right;
        width: 100%;
    }

    .dropdown-menu a:hover {
        background-color: var(--primary-light);
        color: var(--primary-color);
        padding-right: 30px;
    }

    .dropdown-menu a i {
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    /* شعار في القائمة الجانبية - خلفية بيضاء */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 80px;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 25px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border-color);
        z-index: 0;
    }

    /* إضافة الشعار كعنصر منفصل */
    .nav-menu::after {
        content: '';
        position: absolute;
        top: 15px;
        right: 50%;
        -webkit-transform: translateX(50%);
        -moz-transform: translateX(50%);
        -ms-transform: translateX(50%);
        -o-transform: translateX(50%);
        transform: translateX(50%);
        width: 120px;
        height: 50px;
        -webkit-background-size: contain;
        -moz-background-size: contain;
        -o-background-size: contain;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 1;
    }
    
    /* إذا لم يكن هناك شعار، نعرض النص */
    .nav-menu[data-no-logo]::after {
        content: 'عِفّة';
        background-image: none !important;
        color: var(--primary-color);
        font-size: 24px;
        font-weight: 700;
        width: auto;
        height: auto;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        -moz-align-items: center;
        -ms-align-items: center;
        align-items: center;
        -webkit-justify-content: center;
        -moz-justify-content: center;
        -ms-justify-content: center;
        justify-content: center;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 18px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   رفع الملفات المخصص
   ============================================ */
.file-upload-wrapper {
    margin: 20px 0;
}

.file-upload-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    border: none;
    font-size: 16px;
}

.file-upload-btn:hover {
    background: var(--primary-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.file-upload-btn:active {
    transform: translateY(0);
}

.file-upload-btn i {
    margin-left: 8px;
}

/* معاينة الصورة */
#profile_preview {
    transition: var(--transition);
    cursor: pointer;
}

#profile_preview:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover) !important;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .form-container {
        padding: 0px 0px !important;
    }

    .section-title {
        font-size: 28px;
    }
    
    .file-upload-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    #profile_preview {
        width: 200px !important;
        height: 200px !important;
    }
}

/* ============================================
   إخفاء النص من أزرار الانتظار - فقط الأيقونة
   ============================================ */
.action-btn.state-waiting,
.action-chat.state-waiting {
    font-size: 0 !important;
}
.action-btn.state-waiting i,
.action-chat.state-waiting i {
    font-size: 18px !important;
}

