/* ===== متغيرات الألوان والتنسيقات ===== */
:root {
    /* الألوان الأساسية */
    --nav-bg: #171f39;
    --accent-color: #c85000;  /* تغيير اللون البرتقالي إلى درجة أغمق */
    --text-color: #171f39;
    --text-light: #ece9e7;
    --background: #f7f5f4;
    --surface: #ffffff;
    --card-border: #e2e8f0;
    --gradient-start: #171f39;
    --gradient-end: #2a3c6d;
    --feature-hover: rgba(250, 140, 69, 0.1);
}

/* ===== تنسيقات عامة ===== */
body {
    background-color: var(--background);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    padding-top: 120px; /* زيادة المسافة لتتناسب مع الناف بار الأعرض */
}

/* ===== تنسيقات الأزرار ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 0.5rem;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn.btn-primary,
.btn.btn-process,
.btn.btn-download {
    background-color: var(--nav-bg) !important;
    color: var(--text-light) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn.btn-primary:hover,
.btn.btn-process:hover,
.btn.btn-download:hover {
    background-color: #1a2547 !important;
    color: var(--text-light) !important;
    transform: translateY(-1px);
}

.btn.btn-primary:active,
.btn.btn-process:active,
.btn.btn-download:active,
.btn.btn-primary:focus,
.btn.btn-process:focus,
.btn.btn-download:focus {
    background-color: #1a2547 !important;
    color: var(--text-light) !important;
    box-shadow: 0 0 0 0.25rem rgba(23, 31, 57, 0.25) !important;
}

/* تجاوز أنماط Bootstrap */
.btn.btn-primary:not(:disabled):not(.disabled):active,
.btn.btn-primary:not(:disabled):not(.disabled).active,
.btn.btn-process:not(:disabled):not(.disabled):active,
.btn.btn-process:not(:disabled):not(.disabled).active,
.btn.btn-download:not(:disabled):not(.disabled):active,
.btn.btn-download:not(:disabled):not(.disabled).active {
    background-color: #1a2547 !important;
    color: var(--text-light) !important;
    border-color: transparent !important;
}

.btn-secondary {
    background-color: var(--background);
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== تنسيقات القسم الرئيسي ===== */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    margin-top: 0;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-light);
    border-radius: 0 0 50px 50px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out forwards;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/pattern.svg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== تنسيقات المميزات ===== */
.features {
    padding: 6rem 1rem;
    background-color: var(--surface);
    margin-bottom: 4rem;
    border: none;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, var(--accent-color), var(--nav-bg));
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 4rem;
    position: relative;
}

.features h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--feature-hover);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.feature-item:hover i {
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-item p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===== تنسيقات قسم الدعوة للعمل ===== */
.cta-section {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-light);
    border-radius: 24px;
    margin: 4rem auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/pattern.svg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* ===== تنسيقات شريط التنقل ===== */
.navbar.navbar-expand-lg.fixed-top {
    background: linear-gradient(to bottom, var(--nav-bg) 0%, rgba(40, 50, 80, 0.95) 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.6rem 0;
    min-height: 70px;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-light) !important;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--text-light);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.2);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em;
    height: 1.5em;
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        margin-right: 0.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-toggler {
        padding: 0.4rem;
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--text-light);
}

.user-avatar:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    background-color: var(--nav-bg);
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--text-light) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light) !important;
}

.navbar .user-icon {
    color: white;
    font-size: 1.5rem;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.navbar .user-icon:hover {
    opacity: 1;
    transform: scale(1.05);
}

.navbar .nav-link:hover .user-icon {
    color: rgba(255, 255, 255, 1);
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ===== الخط والتنسيق العام ===== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1a1f36;
    line-height: 1.6;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1a1f36;
}

.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    color: #1a1f36;
}

.text-muted {
    color: var(--text-color) !important;
}

.fw-bold {
    font-weight: 600 !important;
}

.small {
    font-size: 0.875rem;
}

/* ===== شريط التنقل ===== */
.navbar {
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);    /* إضافة ظل خفيف */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1030;
    padding: 0; /* إزالة المساحة الداخلية */
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;  /* إضافة مساحة داخلية */
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-left: 0; /* إزالة الهامش */
}

.nav-link {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

.nav-link i {
    font-size: 1.1rem;
}

/* القائمة المنسدلة للمستخدم */
.user-dropdown {
    position: relative;
    margin-right: 1rem;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.dropdown-menu {
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* تقليل الظل */
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

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

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-left: 0.75rem;
}

/* زر القائمة في الشاشات الصغيرة */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    margin-right: 1rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* تنسيقات الشاشات الصغيرة */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--nav-bg);
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        margin-top: 0.5rem;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .navbar-nav.mx-auto {
        margin: 0.5rem 0;
        width: 100%;
        order: -1;
    }
    
    .navbar-nav.mx-auto .nav-link {
        text-align: right;
        margin: 0.5rem 0;
        padding: 0.75rem 1rem;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar-nav.mx-auto .nav-link i {
        font-size: 1.2em;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding: 0;
        background-color: transparent;
    }

    .user-avatar {
        width: 2rem;
        height: 2rem;
        border: 2px solid var(--text-light);
    }

    .user-bar .user-info {
        background-color: var(--nav-bg);
        padding: 0.75rem;
        border-radius: 8px;
        margin: 0.5rem 0;
    }

    .user-bar .user-name,
    .user-bar .user-email,
    .nav-link {
        color: var(--text-light) !important;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .user-avatar {
        width: 1.8rem;
        height: 1.8rem;
    }

    .user-bar {
        padding: 0.75rem;
    }

    .user-bar .user-info {
        gap: 0.5rem;
    }

    .user-bar .user-name {
        font-size: 0.9rem;
    }

    .user-bar .user-email {
        font-size: 0.8rem;
    }
}

/* ===== الصفحة الرئيسية ===== */
.hero {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 1rem;
    margin-bottom: 4rem;
    animation: fadeIn 0.5s ease-out forwards;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--background);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2rem;
    color: var(--nav-bg);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-color);
    opacity: 0.8;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--nav-bg);
    color: var(--text-light);
    border-radius: 16px;
    margin: 2rem auto;
    max-width: 1200px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== النماذج ===== */
.form-control {
    border-radius: 0.375rem; /* تقليل الانحناء */
    border: 1px solid #ddd;
    padding: 0.5rem;    /* تقليل المساحة الداخلية */
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(0,123,255,0.25); /* تقليل حجم الظل */
}

/* ===== الأزرار ===== */
.btn {
    @apply inline-flex items-center justify-center px-4 py-2 rounded-lg font-medium transition-all duration-200;
}

.btn-primary {
    @apply bg-[var(--color-primary)] text-[var(--color-text-light)] hover:opacity-90;
}

.btn-secondary {
    @apply bg-[var(--color-secondary)] text-[var(--color-text-light)] hover:opacity-90;
}

.btn-success {
    @apply bg-[var(--color-success)] text-[var(--color-text-light)] hover:opacity-90;
}

.btn-danger {
    @apply bg-[var(--color-error)] text-[var(--color-text-light)] hover:opacity-90;
}

.btn-warning {
    @apply bg-[var(--color-warning)] text-[var(--color-text-light)] hover:opacity-90;
}

.btn-info {
    @apply bg-[var(--color-info)] text-[var(--color-text-light)] hover:opacity-90;
}

.btn-light {
    @apply bg-[var(--color-background)] text-[var(--color-text-primary)] border border-[var(--color-border)] hover:bg-gray-100;
}

.btn-dark {
    @apply bg-[var(--color-primary)] text-[var(--color-text-light)] hover:opacity-90;
}

.btn-outline-primary {
    border: 2px solid var(--nav-bg);
    color: var(--nav-bg);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--nav-bg);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary i {
    margin-left: 0.5rem;
}

.btn-outline-secondary {
    @apply border border-[var(--color-secondary)] text-[var(--color-secondary)] hover:bg-[var(--color-secondary)] hover:text-[var(--color-text-light)];
}

.btn-sm {
    @apply px-3 py-1 text-sm;
}

.btn-lg {
    @apply px-6 py-3 text-lg;
}

.btn-block {
    @apply w-full;
}

/* ===== تنسيقات الأزرار المعطلة ===== */
.btn:disabled,
.btn.disabled {
    @apply opacity-50 cursor-not-allowed pointer-events-none;
}

/* ===== البطاقات ===== */
.card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);  /* تقليل الظل */
    margin-bottom: 1rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.75rem;  /* تقليل المساحة الداخلية */
}

/* ===== الجداول ===== */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    background-color: var(--light-color);
    font-weight: 600;
}

/* ===== التنبيهات ===== */
.alert {
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    border-right: 4px solid;
}

.alert i {
    margin-left: 0.5rem;
    font-size: 1.1rem;
}

.alert-primary {
    background-color: rgba(var(--nav-bg-rgb), 0.1);
    border-right-color: var(--nav-bg);
    color: var(--nav-bg);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-right-color: #28a745;
    color: #155724;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-right-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-right-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-right-color: #17a2b8;
    color: #0c5460;
}

.alert .alert-link {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

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

/* ===== النوافذ المنبثقة ===== */
.modal-content {
    border-radius: 0.5rem;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem;
}

/* ===== لوحة الإدارة ===== */
.admin-sidebar {
    background-color: var(--sidebar-bg);
    color: #fff;
    min-height: 100vh;
    padding: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

/* ===== الاشتراكات ===== */
.plan-card {
    border: 1px solid #eee;
    border-radius: 0.5rem;
    padding: 1rem;  /* تقليل المساحة الداخلية */
    text-align: center;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);  /* تقليل تأثير الحركة */
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;  /* تقليل الهامش */
}

/* ===== المقالات ===== */
.article-card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);  /* تقليل الظل */
}

.article-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.article-meta {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

/* ===== التذييل ===== */
.footer {
    background-color: #fff;
    padding: 1.5rem 0; /* تقليل المساحة الداخلية */
    margin-top: 2rem;
    border-top: 1px solid #eee;
}

/* ===== الاستجابة ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .plan-card {
        margin-bottom: 1rem;
    }
    
    .article-image {
        height: 120px; /* تقليل الارتفاع في الشاشات الصغيرة */
    }
}

/* ===== تنسيقات RTL ===== */
[dir="rtl"] .navbar-right {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .navbar-left {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .user-info {
    align-items: flex-end;
}

[dir="rtl"] .navbar-toggle {
    margin-left: -0.4rem;
    margin-right: 0;
}

[dir="rtl"] .mobile-menu {
    transform: translateX(-100%);
}

/* ===== تنسيقات الشاشات الصغيرة ===== */
@media (max-width: 768px) {
    .navbar-content {
        justify-content: space-between;
    }

    .navbar-center {
        display: none;
    }

    .navbar-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .auth-buttons {
        display: none;
    }
}

/* ===== تنسيقات الرسائل التنبيهية ===== */
.flash-messages {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: 600px;
    padding: 0 1rem;
}

.flash {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
}

.flash-warning {
    background-color: #fff3cd;
    color: #856404;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ===== صفحة الباقات ===== */
.subscription-card {
    transition: transform 0.3s ease-in-out;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.subscription-card:hover {
    transform: translateY(-3px);
}

.subscription-card .card-body {
    padding: 1.5rem;
}

.subscription-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.subscription-card .card-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.subscription-card .list-unstyled li {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
}

.subscription-card .list-unstyled li i {
    margin-left: 0.75rem;
    font-size: 0.9rem;
}

.subscription-card .card-footer {
    padding: 1rem;
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.subscription-card .btn {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== تنسيقات خاصة بمربع الاختيار ===== */
.form-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox {
    width: 0.9rem;
    height: 0.9rem;
    margin-left: 0.25rem;
    border-radius: 0.25rem;
    border: 1px solid var(--color-gray-300);
    cursor: pointer;
    position: relative;
    background-color: var(--color-gray-100);
}

.checkbox:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label {
    font-size: 0.75rem;
    color: var(--color-gray-700);
}

/* ===== تنسيقات الشاشات الصغيرة ===== */
@media (max-width: 640px) {
    .auth-container {
        margin: 0.75rem auto;
    }

    .auth-card {
        padding: 1rem;
    }

    .navbar {
        padding: 0 0.75rem;
    }

    .navbar-nav {
        gap: 0.75rem;
    }
}

/* تنسيق مجموعة الشروط والأحكام */
.terms-group {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
}

.form-checkbox {
    margin-left: 0.25rem;
}

.terms-label {
    margin: 0;
    font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 0.75rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.sidebar {
    background-color: var(--sidebar-bg);
    width: 80px;
    height: 100vh;
    position: fixed;
    padding-top: 1rem;
    transition: width 0.3s ease;
    z-index: 1000;
}

.sidebar:hover {
    width: 200px;
}

.sidebar-icon {
    color: var(--text-muted);
    padding: 1rem 0;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.sidebar-icon:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-icon:hover svg {
    transform: scale(1.1);
}

.main-content {
    margin-left: 80px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.search-input {
    background-color: #f1f5f9;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 300px;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.3);
    outline: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.calendar-header {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.calendar-day {
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-day:hover:not(.active) {
    background-color: #f1f5f9;
}

.calendar-day.active {
    background-color: var(--calendar-active);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(255, 51, 102, 0.3);
}

.task-tag {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.card {
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-radius: 8px;
    background-color: white;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.project-item {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background-color: white;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.project-item:hover {
    background-color: #f8fafc;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.avatar-group .avatar {
    margin-left: -0.5rem;
    border: 2px solid white;
}

.tag {
    padding: 0.25rem 0.5rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-research {
    background-color: var(--tag-research-bg);
    color: var(--tag-research-text);
}

.tag-strategy {
    background-color: var(--tag-strategy-bg);
    color: var(--tag-strategy-text);
}

.tag-operations {
    background-color: var(--tag-operations-bg);
    color: var(--tag-operations-text);
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.comment-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.comment-item:hover {
    background-color: #f8fafc;
}

.comment-item:last-child {
    border-bottom: none;
}

.btn-light {
    background-color: #f1f5f9;
    border-color: var(--card-border);
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: var(--card-border);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 0.75rem;
    background-color: rgba(23, 31, 57, 0.1);
    border-radius: 1rem;
}

.progress-bar {
    background-color: var(--nav-bg);
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.progress-bar:hover {
    background-color: var(--accent-color);
}

.badge-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 10rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.nav-pills .nav-link.active {
    background-color: var(--accent-color);
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.component-section {
    margin-bottom: 3rem;
}

.component-title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    font-weight: 600;
    color: #1a1f36;
}

.card-title {
    color: #1a1f36;
    font-weight: 600;
}

/* تنسيق أيقونة المستخدم */
.fa-user-circle {
    font-size: 4rem;
    color: var(--nav-bg);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.fa-user-circle:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* زر عرض الكل */
.btn-sm.btn-outline-primary {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-width: 1px;
}

.card-header .btn-sm.btn-outline-primary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
}

.card-header .btn-sm.btn-outline-primary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--nav-bg);
    color: var(--nav-bg);
}

/* تنسيق صورة المستخدم في الملف الشخصي */
.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image .fa-user-circle {
    font-size: 120px;
    color: var(--nav-bg);
    opacity: 0.9;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, var(--nav-bg) 0%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-image .fa-user-circle:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* تنسيق شريط المستخدم */
.user-bar {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.user-bar:hover {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-bar .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-bar .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--nav-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-bar .user-avatar i {
    font-size: 1.5rem;
    color: white;
}

.user-bar .user-details {
    display: flex;
    flex-direction: column;
}

.user-bar .user-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.user-bar .user-email {
    font-size: 0.875rem;
    color: #6c757d;
}

/* ===== تنسيقات الأزرار عند الضغط عليها ===== */
.btn:focus, 
.btn:active,
.btn.active {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(23, 31, 57, 0.2) !important;
}

.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--nav-bg) !important;
    color: var(--text-light) !important;
    border-color: var(--nav-bg) !important;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: var(--nav-bg) !important;
    color: var(--text-light) !important;
}

/* ===== تنسيقات أزرار الملفات ===== */
.btn-group .btn {
    margin: 0 2px;
    min-width: 90px;
}

.btn-group .btn i {
    margin-left: 5px;
}

.btn-group .btn-warning:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.btn-group .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: var(--text-light);
}

.btn-group .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-group .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-group .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== تنسيقات الشارات ===== */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
}

.badge.bg-processing {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.badge.bg-ready {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.badge.bg-no-process {
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* ===== تنسيقات أزرار المعالجة والتحميل ===== */
.btn-process, .btn-download {
    background-color: var(--nav-bg);
    color: var(--text-light);
}

.btn-process:hover, .btn-download:hover {
    background-color: #1a2547;
    color: var(--text-light);
}

.delete-icon {
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.delete-icon:hover {
    color: #c82333;
    transform: scale(1.1);
}

/* ===== تنسيقات الرابط في المنتصف ===== */
.navbar-nav.mx-auto .nav-link {
    color: var(--text-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav.mx-auto .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav.mx-auto .nav-link i {
    font-size: 1.1em;
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--nav-bg);
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        margin-top: 0.5rem;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .navbar-nav.mx-auto {
        margin: 0.5rem 0;
        width: 100%;
        order: -1;
    }
    
    .navbar-nav.mx-auto .nav-link {
        text-align: right;
        margin: 0.5rem 0;
        padding: 0.75rem 1rem;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar-nav.mx-auto .nav-link i {
        font-size: 1.2em;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding: 0;
        background-color: transparent;
    }

    .user-avatar {
        width: 2rem;
        height: 2rem;
        border: 2px solid var(--text-light);
    }

    .user-bar .user-info {
        background-color: var(--nav-bg);
        padding: 0.75rem;
        border-radius: 8px;
        margin: 0.5rem 0;
    }

    .user-bar .user-name,
    .user-bar .user-email,
    .nav-link {
        color: var(--text-light) !important;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .user-avatar {
        width: 1.8rem;
        height: 1.8rem;
    }

    .user-bar {
        padding: 0.75rem;
    }

    .user-bar .user-info {
        gap: 0.5rem;
    }

    .user-bar .user-name {
        font-size: 0.9rem;
    }

    .user-bar .user-email {
        font-size: 0.8rem;
    }
}

/* ===== تنسيقات الباقة الهدية ===== */
.welcome-plan {
    border: 2px solid var(--color-success);
    box-shadow: 0 0 15px rgba(var(--color-success-rgb), 0.1);
}

.welcome-plan .welcome-badge {
    text-align: center;
}

.welcome-plan .welcome-badge .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.plan-card {
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-card .features-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-card .price {
    color: var(--color-primary);
    font-weight: bold;
}

.plan-card .card-footer {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* ===== تنسيقات التصفيح ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-item .page-link {
    color: var(--text-color);
    background-color: var(--surface);
    border: 1px solid var(--card-border);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
    background-color: var(--background);
    color: var(--text-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pagination .page-item.active .page-link {
    background-color: var(--nav-bg);
    color: var(--text-light);
    border-color: var(--nav-bg);
}

.pagination .page-item.active .page-link:hover {
    background-color: #1a2547;
}

/* ===== تنسيقات المصادقة ===== */
.auth-container {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.auth-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.5;
}

.auth-form {
    margin-top: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.75rem;
}

.auth-form .form-check {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
    padding: 0.5rem;
    border-radius: 4px;
}

.auth-form .form-check-input {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 1.5px solid var(--card-border);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    background-color: var(--surface);
}

.auth-form .form-check-input:checked {
    background-color: var(--nav-bg);
    border-color: var(--nav-bg);
}

.auth-form .form-check-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(250, 140, 69, 0.1);
}

.auth-form .form-check-label {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    user-select: none;
}

.auth-form .btn-block {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    background-color: var(--nav-bg);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.auth-form .btn-block:hover {
    background-color: #1a2547;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-form .btn-block:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 31, 57, 0.2);
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.auth-text {
    color: #64748b;
    font-size: 1rem;
}

.auth-link {
    color: var(--nav-bg);
    font-weight: 600;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: #1a2547;
    text-decoration: underline;
}

.auth-separator {
    color: #94a3b8;
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* تحسينات للهواتف المحمولة */
@media (max-width: 576px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }
    
    .auth-form .form-input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .auth-form .btn-block {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* ===== تنسيقات النماذج ===== */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--surface);
    border: 2px solid var(--card-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(250, 140, 69, 0.1);
    outline: none;
}

.form-input::placeholder {
    color: #94a3b8;
    opacity: 0.8;
}

.form-input-error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* ===== تنسيقات النماذج ===== */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--surface);
    border: 2px solid var(--card-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(250, 140, 69, 0.1);
    outline: none;
}

.form-input::placeholder {
    color: #94a3b8;
    opacity: 0.8;
}

.form-input-error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* ===== تنسيقات صفحات المصادقة ===== */
.auth-container {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.auth-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.5;
}

.auth-form {
    margin-top: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.75rem;
}

.auth-form .form-check {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
    padding: 0.5rem;
    border-radius: 4px;
}

.auth-form .form-check-input {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 1.5px solid var(--card-border);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    background-color: var(--surface);
}

.auth-form .form-check-input:checked {
    background-color: var(--nav-bg);
    border-color: var(--nav-bg);
}

.auth-form .form-check-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(250, 140, 69, 0.1);
}

.auth-form .form-check-label {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    user-select: none;
}

.auth-form .btn-block {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    background-color: var(--nav-bg);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.auth-form .btn-block:hover {
    background-color: #1a2547;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-form .btn-block:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 31, 57, 0.2);
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.auth-text {
    color: #64748b;
    font-size: 1rem;
}

.auth-link {
    color: var(--nav-bg);
    font-weight: 600;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: #1a2547;
    text-decoration: underline;
}

.auth-separator {
    color: #94a3b8;
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* تحسينات للهواتف المحمولة */
@media (max-width: 576px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }
    
    .auth-form .form-input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .auth-form .btn-block {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Landing Page Styles */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-section h1 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: #6c757d;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    color: #007bff;
}

.price-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card .price {
    margin: 20px 0;
}

.price-card .currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 5px;
}

.price-card .amount {
    font-size: 3rem;
    font-weight: 700;
}

.price-card .period {
    font-size: 1rem;
    color: #6c757d;
}

.features-list li {
    margin: 10px 0;
    color: #6c757d;
}

.trust-item {
    padding: 20px;
}

.trust-item h4 {
    font-weight: 700;
    margin: 10px 0;
    color: #2c3e50;
}

.trust-item p {
    color: #6c757d;
}

.final-cta {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.btn-primary {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
}

.btn-outline-primary {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
}

.btn-light {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    color: #007bff;
}

/* ===== تنسيقات الأسئلة الشائعة ===== */
.accordion-item {
    border: none;
    border-bottom: 1px solid var(--card-border);
    background: transparent;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    background: transparent;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.5rem 1rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: #a84400;  /* لون أغمق للنص عند فتح السؤال */
}

.accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-button i {
    font-size: 1.25rem;
    color: #a84400;  /* لون أغمق للأيقونات */
    margin-left: 1rem;
}

.accordion-body {
    padding: 0 1rem 1.5rem 3.75rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

/* ===== تنسيقات رسائل الفلاش ===== */
.alert {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.alert .fas {
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

.alert-success {
    background-color: #f0fdf4;
    border-right: 4px solid #22c55e;
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border-right: 4px solid #ef4444;
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border-right: 4px solid #f59e0b;
    color: #92400e;
}

.alert-info {
    background-color: #eff6ff;
    border-right: 4px solid #3b82f6;
    color: #1e40af;
}

.alert button {
    background: transparent;
    border: none;
    color: currentColor;
    opacity: 0.7;
    cursor: pointer;
    padding: 0.25rem;
    transition: opacity 0.2s;
}

.alert button:hover {
    opacity: 1;
}

.interactive-image-gallery-container {
    position: relative;
    width: 100%; /* زيادة حجم البوكس */
    height: 100vh;
    display: flex;
    justify-content: flex-end; /* محاذاة العناصر إلى اليمين */
    align-items: center;
    overflow: hidden;
    background: transparent; /* تعديل الخلفية لتكون شفافة */
    padding-left: 40px; /* دفع الصور لليسار */
}

.interactive-image-gallery__base-image {
    width: 400px;
    height: 300px;
    object-fit: fill; /* تغيير من cover إلى fill لضغط الصورة */
    /* border: 2px solid #333; */
    transition: opacity 0.5s ease;
}

.interactive-image-gallery__top-image {
    position: absolute;
    width: 400px;
    height: 300px;
    top: -166px;
    right: -188px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    object-fit: fill; /* تغيير من cover إلى fill لضغط الصورة */
}

.interactive-image-gallery__top-image:hover {
    transform: scale(1.05);
}

.interactive-image-gallery__image-wrapper {
    position: relative;
    display: inline-block;
}

.interactive-image-gallery__fade-effect {
    opacity: 0;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .interactive-image-gallery__base-image {
        width: 300px;
        height: 225px;
    }

    .interactive-image-gallery__top-image {
        width: 300px;
        height: 225px;
        top: -125px;
        right: -141px;
    }
}

@media (max-width: 576px) {
    .interactive-image-gallery__base-image {
        width: 240px;
        height: 180px;
    }

    .interactive-image-gallery__top-image {
        width: 240px;
        height: 180px;
        top: -100px;
        right: -113px;
    }
}