/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* تنسيق شريط التنقل الأساسي (Navbar) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111111;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* تنسيق اللوجو */
.nav-logo a {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.nav-logo a span {
    color: #c5a880;
}

/* تنسيق شريط البحث (في المنتصف) */
.nav-search {
    flex: 0 1 450px;
    margin: 0 20px;
}

.nav-search form {
    display: flex;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 10px 20px;
    padding-left: 45px;
    border: 1px solid #333;
    border-radius: 25px;
    background-color: #1f1f1f;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-search input:focus {
    outline: none;
    background-color: #2a2a2a;
    border-color: #c5a880;
    box-shadow: 0 0 8px rgba(197, 168, 128, 0.2);
}

.nav-search button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-search input:focus+button,
.nav-search button:hover {
    color: #c5a880;
}

/* تنسيق أيقونات التواصل الاجتماعي */
.nav-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1f1f1f;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon.facebook:hover {
    background-color: #1877f2;
    transform: translateY(-3px);
}

.social-icon.whatsapp:hover {
    background-color: #25d366;
    transform: translateY(-3px);
}

/* دعم الشاشات الصغيرة (الهواتف) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-search {
        flex: none;
        width: 100%;
        order: 3;
        margin: 0;
    }
}

/* ===================================================
   تنسيق الـ Carousel (السلايدر المتحرك)
=================================================== */

.carousel-container {
    width: 100%;
    height: 90vh;
    position: relative;
    overflow: hidden;
    background-color: #000;
    border-bottom: 3px solid #c5a880;
}

.carousel-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(40%);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: #ffffff;
    max-width: 600px;
    z-index: 10;
    animation: slideUp 0.8s ease-out forwards;
}

.carousel-caption h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.carousel-caption h2 span {
    color: #c5a880;
}

.carousel-caption p {
    font-size: 18px;
    color: #dddddd;
    margin-bottom: 30px;
    line-height: 1.6;
}

#hello {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a1919;
    color: #c5a880;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.hint {
    background-color: rgb(229, 228, 153);
}

#hello:hover {
    cursor: pointer;
    color: #053379;
    transform: translateY(-3px);
}

.carousel-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #c5a880;
    color: #111111;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.4);
}

.carousel-btn:hover {
    background-color: #ffffff;
    color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 80vh;
    }

    .carousel-caption {
        right: 5%;
        left: 5%;
        text-align: center;
    }

    .carousel-caption h2 {
        font-size: 28px;
    }

    .carousel-caption p {
        font-size: 15px;
    }
}

/* ===================================================
   تنسيق القائمة المنسدلة (3 شرط)
=================================================== */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1f1f1f;
    color: #ffffff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background-color: #c5a880;
    color: #111;
}

.user_icon,
.dropdown-content {
    display: none;
    position: absolute;
    left: -80px;
    top: 40px;
    background-color: #1f1f1f;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid #333;
    z-index: 1100;
    overflow: hidden;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    text-align: right;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a i {
    margin-left: 8px;
    color: #c5a880;
    width: 15px;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #2a2a2a;
    color: #c5a880;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
   تنسيق قائمة المستخدم المنسدلة
=================================================== */

.user-profile-dropdown {
    position: relative;
    display: inline-block;
}

#welcome {
    color: #c5a880;
}

.profile-avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #d3caca;
    border: 2px solid #333;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.avatar-img-tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-btn:hover {
    border-color: #c5a880;
    box-shadow: 0 0 8px rgba(197, 168, 128, 0.4);
}

.profile-menu-content {
    display: none;
    position: absolute;
    left: -50;
    top: 30px;
    background-color: #1f1f1f;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid #333;
    z-index: 1100;
    overflow: hidden;
}

.profile-menu-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    text-align: right;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-menu-content a i {
    margin-left: 10px;
    color: #c5a880;
    width: 18px;
    text-align: center;
}

.profile-menu-content a:hover {
    background-color: #2a2a2a;
    color: #c5a880;
}

.profile-menu-content a.profile-logout-link:hover {
    background-color: #3a1c1c;
    color: #ff6b6b;
}

.profile-menu-content a.profile-logout-link:hover i {
    color: #ff6b6b;
}

.user-profile-dropdown:hover .profile-menu-content {
    display: block;
    animation: profileFadeIn 0.3s ease;
}

@keyframes profileFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logout-form-tag {
    margin: 0;
    padding: 0;
}

.profile-logout-btn {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    text-align: right;
    cursor: pointer;
    display: block;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-logout-btn i {
    margin-left: 10px;
    color: #c5a880;
    width: 18px;
    text-align: center;
}

.profile-logout-btn:hover {
    background-color: #3a1c1c;
    color: #ff6b6b;
}

.profile-logout-btn:hover i {
    color: #ff6b6b;
}

/* Footer Styles */
.footer {
    background-color: #111111;
    color: #ffffff;
    padding: 60px 0 20px 0;
    margin-top: auto;
    border-top: 3px solid #c5a880;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: table;
    width: 100%;
}

.footer-column {
    display: table-cell;
    width: 25%;
    padding: 0 15px;
    vertical-align: top;
}

.footer-logo {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #c5a880;
}

.footer-description {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}

.column-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.column-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #c5a880;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #c5a880;
    transform: translateX(-5px);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: block;
    margin-bottom: 15px;
    color: #aaaaaa;
    font-size: 14px;
}

.contact-info li i {
    color: #c5a880;
    margin-left: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-social {
    margin-top: 20px;
}

.f-social-icon {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #1f1f1f;
    color: #ffffff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-left: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.f-social-icon:hover {
    transform: translateY(-3px);
}

.f-social-icon.fb:hover {
    background-color: #1877f2;
}

.f-social-icon.wa:hover {
    background-color: #25d366;
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    /* تم استبدال margin-top القديم بـ margin-top: auto لضمان الالتصاق التام */
    margin-top: auto;
    border-top: 3px solid #c5a880;
    width: 100%;
}

.footer-bottom p {
    color: #777777;
    font-size: 13px;
    margin: 0;
    /* لإزالة أي هوامش افتراضية للنص */
}

.footer-bottom a {
    color: #c5a880;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .footer-column {
        display: block;
        width: 100%;
        margin-bottom: 35px;
        padding: 0;
    }

    .footer-container {
        display: block;
    }

    .column-title::after {
        right: 0;
    }

    .footer-links a:hover {
        transform: translateY(-2px);
    }
}

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    background-color: #d8d8d8;
    direction: rtl;
}

h1 {
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    padding-right: 15px;
    margin-top: 5%;
    border-right: 5px solid #D4AF37;
    text-align: right;
}

h1 a:hover {
    color: #C5A028;
    transition: color 0.3s ease;
}

#lawpage {
    color: #020000;
    font-size: 1.50rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    padding: 40px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    #lawpage {
        padding: 20px;
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}

p ::selection {
    background: #D4AF37;
    color: #fff;
}

p strong {
    color: #C5A028;
    font-weight: 700;
}

#forpages {
    padding-bottom: 25%;
    padding-top: 3%;
    padding-right: 2%;
    padding-left: 15%;
}

@media (max-width: 768px) {
    #forpages {
        padding-left: 2%;
        padding-bottom: 10%;
    }
}

#search-results-section {
    direction: rtl;
    max-width: 900px;
    margin: 40px auto;
    margin-top: 5%;
    padding: 0 20px;
    font-family: 'Cairo', sans-serif;
}

#search-results-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

#search-results-section .query-highlight {
    color: #c0392b;
    font-weight: bold;
}

#search-results-section .results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#search-results-section .result-item {
    background-color: #ffffff;
    border: 1px solid #e6e9ed;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

#search-results-section .result-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}

#search-results-section .result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #bdc3c7;
}

#search-results-section .result-title {
    margin: 0;
    font-size: 1.2rem;
    color: #34495e;
    font-weight: 600;
    transition: color 0.2s ease;
}

#search-results-section .result-item:hover .result-title {
    color: #c0392b;
}

#search-results-section .read-more {
    font-size: 0.9rem;
    color: #7f8c8d;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

#search-results-section .result-item:hover .read-more {
    color: #c0392b;
}

#search-results-section .no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #dcdde1;
    color: #7f8c8d;
}

#search-results-section .no-results i {
    font-size: 2.5rem;
    color: #bdc3c7;
    margin-bottom: 15px;
}

#search-results-section .no-results p {
    margin: 0;
    font-size: 1.1rem;
}

#archive-news-section {
    direction: rtl;
    max-width: 900px;
    margin: 40px auto;
    margin-top: 5%;
    padding: 3%;
    font-family: 'Cairo', sans-serif;
}

#archive-news-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

#archive-news-section .archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#archive-news-section .archive-item {
    background-color: #ffffff;
    border: 1px solid #e6e9ed;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

#archive-news-section .archive-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}

#archive-news-section .archive-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #bdc3c7;
}

#archive-news-section .archive-title {
    margin: 0;
    font-size: 1.2rem;
    color: #34495e;
    font-weight: 600;
    transition: color 0.2s ease;
}

#archive-news-section .archive-item:hover .archive-title {
    color: #c0392b;
}

#archive-news-section .archive-read-more {
    font-size: 0.9rem;
    color: #7f8c8d;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

#archive-news-section .archive-item:hover .archive-read-more {
    color: #c0392b;
}

#archive-news-section .archive-no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #dcdde1;
    color: #7f8c8d;
}

#archive-news-section .archive-no-results i {
    font-size: 2.5rem;
    color: #bdc3c7;
    margin-bottom: 15px;
}

#archive-news-section .archive-no-results p {
    margin: 0;
    font-size: 1.1rem;
}

.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    font-size: 0.95rem;
}

.archive-pagination .page-link {
    color: #ffffff;
    background-color: #2c3e50;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.archive-pagination .page-link:hover {
    background-color: #c0392b;
}

.archive-pagination .current-page {
    color: #7f8c8d;
    font-weight: bold;
}

#privacy-policy-container {
    direction: rtl;
    text-align: right;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.policy-main-title {
    color: #2c3e50;
    margin-bottom: 30px;
}

.policy-section-title {
    color: #34495e;
    margin-top: 25px;
    font-size: 1.4rem;
}

.policy-link {
    color: #3498db;
    text-decoration: none;
}

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

.notice-text {
    background-color: #fcf8e3;
    padding: 10px;
    border-right: 4px solid #f0ad4e;
}

/* ========================================================================== */
/*                        لـــــــوحة التحـــــــــكم                      */
/* ========================================================================== */

.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background-color: var(--panel-black);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.sidebar-header h2 {
    color: var(--gold-primary);
    font-size: 1.4rem;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.sidebar-menu li a i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--text-white);
    border-right: 4px solid var(--gold-primary);
}

.sidebar-menu .logout {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.sidebar-menu .logout a i {
    color: #e74c3c;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-navbar {
    height: 70px;
    background-color: var(--panel-black);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-black);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 15px;
    width: 300px;
    gap: 10px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    width: 100%;
}

.search-box i {
    color: var(--text-gray);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--gold-primary);
    color: var(--bg-black);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
}

.content-body {
    padding: 30px;
}

.page-title {
    margin-bottom: 25px;
}

.page-title h1 {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 5px;
}

.page-title p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--panel-black);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

.card-info h3 {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.card-info .number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.3rem;
}

.table-container {
    background-color: var(--panel-black);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: rgba(212, 175, 55, 0.03);
}

.user-info-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.user-info-cell i {
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.active {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.badge.inactive {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-action.delete {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-action.delete:hover {
    background-color: #e74c3c;
    color: #fff;
}

.btn-action.activate {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.btn-action.activate:hover {
    background-color: #2ecc71;
    color: #fff;
}

.btn-action.deactivate {
    background-color: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.btn-action.deactivate:hover {
    background-color: #f1c40f;
    color: #121212;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    background-color: var(--panel-black);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.page-btn:hover:not(.disabled) {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.page-btn.disabled {
    color: var(--text-gray);
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.article-manager {
    padding: 10px;
}

.manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.title-group h2 {
    color: var(--text-white);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.title-group p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.btn-create-article {
    background: linear-gradient(135deg, var(--gold-primary), #b89728);
    color: var(--bg-black);
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.btn-create-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.articles-grid-container {
    background-color: var(--panel-black);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.article-card {
    background-color: var(--bg-black);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.article-id {
    font-size: 0.8rem;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
}

.article-icon {
    width: 38px;
    height: 38px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
}

.article-body {
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-heading {
    color: var(--text-white);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.action-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.edit-btn {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.edit-btn:hover {
    background-color: var(--gold-primary);
    color: var(--bg-black);
}

.delete-btn {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.25);
}

.delete-btn:hover {
    background-color: #e74c3c;
    color: #fff;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.page-control {
    background-color: var(--bg-black);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.page-control:hover:not(.disabled) {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.page-control.disabled {
    color: var(--text-gray);
    opacity: 0.4;
    cursor: not-allowed;
}

.page-indicator {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.no-articles-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.no-articles-state i {
    font-size: 3.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-articles-state h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.no-articles-state p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.mt-15 {
    margin-top: 15px;
    display: inline-flex;
}

.form-wrapper {
    padding: 10px;
    max-width: 900px;
    margin: 0 auto;
}

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

.form-header h2 {
    color: var(--text-white);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.form-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.form-card {
    background-color: var(--panel-black);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.custom-article-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 500;
}

.custom-article-form input[type="text"],
.custom-article-form select,
.custom-article-form textarea {
    background-color: var(--bg-black);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.custom-article-form input[type="text"]:focus,
.custom-article-form select:focus,
.custom-article-form textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group.full-width .django_ckeditor_5 {
    width: 100% !important;
}

.ck-editor__editable_inline {
    background-color: var(--bg-black) !important;
    color: var(--text-white) !important;
    border-color: var(--border-color) !important;
    min-height: 250px;
}

.ck.ck-toolbar {
    background-color: var(--panel-black) !important;
    border-color: var(--border-color) !important;
}

.ck.ck-button {
    color: var(--text-white) !important;
}

.form-error-banner {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    flex-wrap: wrap;
}

.btn-save {
    background: linear-gradient(135deg, var(--gold-primary), #b89728);
    color: var(--bg-black);
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-cancel {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-cancel:hover {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

/* تعديلات وتحسينات التجاوب مع شاشات الهواتف المحمولة لوحة التحكم */
@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
        height: auto;
        overflow: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
        gap: 5px;
    }

    .sidebar-menu li {
        flex: 1 1 auto;
    }

    .sidebar-menu li a {
        padding: 10px 15px;
        justify-content: center;
        border-right: none !important;
        border-bottom: 3px solid transparent;
    }

    .sidebar-menu li a:hover,
    .sidebar-menu li a.active {
        border-right: none;
        border-bottom-color: var(--gold-primary);
    }

    .sidebar-menu .logout {
        margin-top: 0;
        border-top: none;
        width: 100%;
    }

    .main-content {
        overflow-y: visible;
    }

    .top-navbar {
        padding: 0 15px;
        height: auto;
        flex-direction: column;
        gap: 10px;
        padding-bottom: 15px;
        padding-top: 15px;
    }

    .search-box {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .content-body {
        padding: 15px;
    }

    .top-navbar {
        padding: 10px 15px;
    }

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

    .form-card {
        padding: 15px;
    }

    .articles-grid-container {
        padding: 15px;
    }
}