:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    /* الألوان الخاصة بموقعك */
    --primary-green: #2e8b57;
    --light-green: #f0fdf4;
    --gold: #d4af37;
    --nature-green: #0f766e;
    --main-text: #2d3748;
    --muted-text: #718096;
    --bg-color: #f7f9fb;
    --card-bg: #ffffff;
}

body.admin-body {
    background-color: #f5f7fa;
    font-family: 'Tajawal', sans-serif;
}

.admin-sidebar {
    background-color: var(--secondary-color);
    color: white;
    height: 100vh;
    position: fixed;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-nav a {
    color: #bdc3c7;
    transition: all 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active-admin-nav {
    background-color: var(--primary-color);
    color: white;
}

.main-content {
    margin-right: 250px;
    transition: all 0.3s;
}

.form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--warning-color);
    color: var(--dark-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.article-card {
    transition: all 0.3s;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.status-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-published {
    background-color: #d4edda;
    color: #155724;
}

.status-draft {
    background-color: #fff3cd;
    color: #856404;
}

.status-pending {
    background-color: #cce5ff;
    color: #004085;
}

.status-archived {
    background-color: #e2e3e5;
    color: #383d41;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-right: 0;
        width: 100%;
    }
}

/* Quill-specific styling adjustments for RTL and height */
#editor-container {
    height: 400px;
    direction: rtl;
    text-align: right;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-family: 'Tajawal', sans-serif;
}

.ql-editor {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    min-height: 380px;
}

.ql-toolbar.ql-snow+#editor-container {
    border-top: none;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* تنسيقات المقال المدمجة والمعدلة */
.container-article {
    max-width:920px;
    margin:0 auto;
}
header-article {
    margin-bottom:18px;
}
h1-article {
    font-size:28px;
    margin:8px 0 10px;
    color:var(--primary-green);
}
.meta-article {
    color:var(--muted-text);
    font-size:14px;
    margin-bottom:18px;
}
article {
    background:var(--card-bg);
    border-radius:10px;
    padding:26px;
    box-shadow:0 6px 20px rgba(15,30,50,0.06);
}
h2-article {
    color:var(--primary-green);
    margin-top:20px;
    margin-bottom:10px;
    font-size:20px;
}
p-article {
    margin:10px 0;
}
ul-article {
    margin:8px 0 14px 20px;
}
li-article {
    margin:6px 0;
}
.price {
    background:var(--light-green);
    border-left:4px solid var(--primary-green);
    padding:12px;
    border-radius:6px;
    margin:12px 0;
}
table-article {
    width:100%;
    border-collapse:collapse;
    margin:12px 0 20px;
}
th-article, td-article {
    text-align:right;
    padding:10px 12px;
    border:1px solid #e6eef7;
    vertical-align:top;
    font-size:15px;
}
th-article {
    background:var(--light-green);
    color:var(--primary-green);
}
.faq-dt {
    font-weight:700;
    margin-top:12px;
    color:var(--primary-green);
}
.cta-article {
    margin-top:18px;
    padding:14px;
    background:var(--primary-green);
    color:#fff;
    text-align:center;
    border-radius:8px;
    text-decoration:none;
    display:inline-block;
}
footer-article {
    margin-top:18px;
    color:var(--muted-text);
    font-size:14px;
    text-align:center;
}
a-article {
    color:var(--primary-green);
}
@media (max-width:560px){
    h1-article {
        font-size:22px;
    }
    h2-article {
        font-size:18px;
    }
    body {
        padding:14px;
    }
    .container-article {
        padding:0 6px;
    }
}
.logo {
  /* لضمان تنسيق اللوجو بشكل صحيح داخل الهيدر */
  display: flex;
  align-items: center;
  gap: 10px; /* مسافة بين أيقونة اللوجو والنص */
  margin-bottom: 12px;
}

.logo-icon {
  /* تنسيقات أيقونة اللوجو (إذا كان لديك أيقونة) */
  width: 40px; /* حجم الأيقونة */
  height: 40px;
  border-radius: 8px; /* حواف مستديرة قليلاً */
  background-color: var(--accent); /* لون خلفية الأيقونة */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  /* تنسيقات نص اللوجو */
  font-size: 24px;
  font-weight: 700;
  color: var(--accent); /* لون نص اللوجو */
  margin: 0;
}

.logo-text span {
  /* لتنسيق جزء معين من النص (مثال: كلمة "حلول") */
  color: var(--text); /* لون مختلف للجزء الثاني من النص */
  font-weight: 400;
}