@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* ============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================ */

:root {
    /* Brand Colors - BAMAK */
    --main-color: #0f2446;
    --main-color-rgb: 15, 36, 70;
    --main-color-light: rgba(var(--main-color-rgb), 0.1);
    --main-color-dark: rgba(var(--main-color-rgb), 0.85);
    --main-color-border: rgba(var(--main-color-rgb), 0.2);
    --main-color-lighter: #1a3a5c;
    --main-color-lighter-rgb: 26, 58, 92;
    --main-color-darker: #0a1829;
    --main-color-darkest: #0d1f33;
    /* Accent Color - Golden Yellow */
    --accent-color: #fec000;
    --accent-color-rgb: 254, 192, 0;
    --accent-color-light: rgba(var(--accent-color-rgb), 0.1);
    --accent-color-dark: rgba(var(--accent-color-rgb), 0.85);
    --accent-color-border: rgba(var(--accent-color-rgb), 0.2);
    --accent-color-darker: #f0a500;
    --accent-color-lighter: #ffdd00;
    /* Status Colors */
    --color-success-green: #28a745;
    --color-success-green-rgb: 40, 167, 69;
    --color-info-blue: #17a2b8;
    --color-info-blue-rgb: 23, 162, 184;
    --color-neutral-gray: #6c757d;
    --color-neutral-gray-rgb: 108, 117, 125;
    /* Primitive Colors */
    --color-white: rgba(255, 255, 255, 1);
    --color-black: rgba(0, 0, 0, 1);
    --color-cream-50: rgba(252, 252, 249, 1);
    --color-cream-100: rgba(255, 255, 253, 1);
    --color-gray-200: rgba(245, 245, 245, 1);
    --color-gray-300: rgba(167, 169, 169, 1);
    --color-gray-400: rgba(119, 124, 124, 1);
    --color-slate-500: rgba(98, 108, 113, 1);
    --color-slate-900: rgba(19, 52, 59, 1);
    --color-slate-500-rgb: 98, 108, 113;
    --color-slate-900-rgb: 19, 52, 59;
    --color-brown-600: rgba(94, 82, 64, 1);
    --color-brown-600-rgb: 94, 82, 64;
    --color-charcoal-700: rgba(31, 33, 33, 1);
    --color-charcoal-800: rgba(38, 40, 40, 1);
    --color-teal-300: rgba(50, 184, 198, 1);
    --color-teal-400: rgba(45, 166, 178, 1);
    --color-teal-500: rgba(33, 128, 141, 1);
    --color-teal-600: rgba(29, 116, 128, 1);
    --color-teal-700: rgba(26, 104, 115, 1);
    --color-teal-800: rgba(41, 150, 161, 1);
    --color-teal-500-rgb: 33, 128, 141;
    --color-red-400: rgba(255, 84, 89, 1);
    --color-red-500: rgba(192, 21, 47, 1);
    --color-red-400-rgb: 255, 84, 89;
    --color-red-500-rgb: 192, 21, 47;
    --color-orange-400: rgba(230, 129, 97, 1);
    --color-orange-500: rgba(168, 75, 47, 1);
    --color-orange-400-rgb: 230, 129, 97;
    --color-orange-500-rgb: 168, 75, 47;
    --color-bg-1: rgba(59, 130, 246, 0.08);
    --color-bg-2: rgba(245, 158, 11, 0.08);
    --color-bg-3: rgba(34, 197, 94, 0.08);
    --color-bg-4: rgba(239, 68, 68, 0.08);
    --color-bg-5: rgba(147, 51, 234, 0.08);
    --color-bg-6: rgba(249, 115, 22, 0.08);
    --color-bg-7: rgba(236, 72, 153, 0.08);
    --color-bg-8: rgba(6, 182, 212, 0.08);
    /* Semantic Colors */
    --color-background: var(--color-cream-50);
    --color-surface: var(--color-cream-100);
    --color-text: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-500);
    --color-primary: var(--main-color);
    --color-primary-hover: var(--color-teal-600);
    --color-primary-active: var(--color-teal-700);
    --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
    --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
    --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
    --color-border: rgba(var(--color-brown-600-rgb), 0.2);
    --color-btn-primary-text: var(--color-cream-50);
    --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
    --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
    --color-error: var(--color-red-500);
    --color-success: var(--color-teal-500);
    --color-warning: var(--color-orange-500);
    --color-info: var(--color-slate-500);
    --color-success-rgb: 33, 128, 141;
    --color-error-rgb: 192, 21, 47;
    --color-warning-rgb: 168, 75, 47;
    --color-info-rgb: 98, 108, 113;
    --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
    --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);
    /* Typography */
    --bs-body-font-size: 1.1rem;
    --bs-body-line-height: 1.8;
    --bs-body-font-size-rtl: 1.2rem;
    --bs-body-line-height-rtl: 1.9;
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-arabic: Tajawal, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 30px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 550;
    --font-weight-bold: 600;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --letter-spacing-tight: -0.01em;
    /* Spacing */
    --space-0: 0;
    --space-1: 1px;
    --space-2: 2px;
    --space-4: 4px;
    --space-6: 6px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    /* Border Radius */
    --radius-sm: 6px;
    --radius-base: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --card-border-radius: 16px;
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    /* Animation */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
    --animation-speed: 0.3s;
    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --table-row-height: 80px;
    /* Other */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */

body {
    font-family: Poppins, sans-serif;
    font-size: var(--bs-body-font-size);
    line-height: var(--bs-body-line-height);
    color: #1d1d1b;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box;
}

body.rtl {
    font-family: var(--font-family-arabic) !important;
    font-size: var(--bs-body-font-size-rtl);
    line-height: var(--bs-body-line-height-rtl);
}

/* ============================================================================
   RTL ARABIC MOBILE FIXES
   Arabic font has taller characters that may get clipped on mobile
   ============================================================================ */
@media (max-width: 767px) {
    body.rtl {
        --line-height-tight: 1.4;
        --line-height-normal: 1.7;
    }

    /* Fix Arabic text clipping in headings */
    body.rtl h1,
    body.rtl h2,
    body.rtl h3,
    body.rtl h4,
    body.rtl h5,
    body.rtl h6 {
        line-height: 1.5;
        padding-top: 0.1em;
        padding-bottom: 0.1em;
    }

    /* Fix icon vertical centering in RTL */
    body.rtl .btn,
    body.rtl button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure icons are properly centered in circular buttons */
    /* Exclude main navigation elements to prevent layout issues */
    body.rtl [class*="-nav"]:not(.admin-nav-mobile):not(.admin-nav-links):not(.navbar-nav),
    body.rtl [class*="-btn"]:not(input):not(.navbar-toggler) {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

*::after {
    box-sizing: inherit;
}

html {
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.bg-main {
    background-color: var(--main-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h6 {
    font-size: var(--font-size-md);
}

h1 {
    font-size: 40px;
    font-weight: 550;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    h1 {
        font-size: 25px;
    }
}

h2 {
    color: #424a54;
    font-weight: 600;
    font-size: 20px;
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

p {
    margin: 0 0 var(--space-16) 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
    color: var(--color-primary-hover);
}

pre {
    padding: var(--space-16);
    margin: var(--space-16) 0;
    overflow: auto;
    border: 1px solid var(--color-border);
}

pre code {
    background: none;
    padding: 0;
}

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */

textarea.form-control {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
}

select.form-control {
    padding: var(--space-8) var(--space-12);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: var(--select-caret-light);
    background-repeat: no-repeat;
    background-position: right var(--space-12) center;
    background-size: 16px;
    padding-right: var(--space-32);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: var(--space-16);
}

.form-label.required::after {
    content: ' *';
    color: var(--main-color);
}

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    color: var(--color-neutral-gray);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.form-check-input:focus {
    box-shadow: var(--focus-ring);
}

.comment-form p,
.form-group,
.search-form label {
    margin-bottom: 1rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn--primary {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
}

.btn--primary:hover {
    background: var(--color-primary-hover);
}

.btn--primary:active {
    background: var(--color-primary-active);
}

.btn--secondary {
    background: var(--color-secondary);
    color: var(--color-text);
}

.btn--secondary:hover {
    background: var(--color-secondary-hover);
}

.btn--secondary:active {
    background: var(--color-secondary-active);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn--outline:hover {
    background: var(--color-secondary);
}

.btn--sm {
    padding: var(--space-4) var(--space-12);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

.btn--lg {
    padding: var(--space-10) var(--space-20);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-md);
}

.btn--full-width {
    width: 100%;
}

.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-edit {
    background: rgba(var(--main-color-rgb), 0.1);
    color: var(--main-color);
}

.btn-edit:hover {
    background: var(--main-color);
    color: white;
    transform: scale(1.05);
}

.btn-info {
    background: rgba(var(--color-info-blue-rgb), 0.1);
    color: var(--color-info-blue);
}

.btn-info:hover {
    background: var(--color-info-blue);
    color: white;
    transform: scale(1.05);
}

.btn-toggle {
    background: rgba(var(--color-success-green-rgb), 0.1);
    color: var(--color-success-green);
}

.btn-toggle:hover {
    background: var(--color-success-green);
    color: white;
    transform: scale(1.05);
}

.btn-toggle.inactive {
    background: rgba(var(--color-neutral-gray-rgb), 0.1);
    color: var(--color-neutral-gray);
}

.btn-toggle.inactive:hover {
    background: var(--color-neutral-gray);
    color: white;
}

.btn-delete {
    background: rgba(var(--color-error-rgb, 192, 21, 47), 0.1);
    color: var(--color-error);
}

.btn-delete:hover {
    background: var(--color-error);
    color: white;
    transform: scale(1.05);
}

.btn-delete:disabled {
    background: rgba(var(--color-neutral-gray-rgb), 0.1);
    color: var(--color-neutral-gray);
    cursor: not-allowed;
}

.btn-reply {
    background: rgba(var(--color-info-blue-rgb), 0.1);
    color: var(--color-info-blue);
}

.btn-reply:hover {
    background: var(--color-info-blue);
    color: white;
    transform: scale(1.05);
}

.btn-reply:disabled {
    background: rgba(var(--color-neutral-gray-rgb), 0.1);
    color: var(--color-neutral-gray);
    cursor: not-allowed;
}

.btn-forward {
    background: rgba(var(--color-success-green-rgb), 0.1);
    color: var(--color-success-green);
}

.btn-forward:hover {
    background: var(--color-success-green);
    color: white;
    transform: scale(1.05);
}

.btn-forward:disabled {
    background: rgba(var(--color-neutral-gray-rgb), 0.1);
    color: var(--color-neutral-gray);
    cursor: not-allowed;
}

.btn-create {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.3);
}

.btn-create:hover {
    background: var(--accent-color-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--main-color-rgb), 0.4);
}

.btn-create i {
    margin-right: 0.5rem;
}

.btn-action:hover {
    transform: scale(1.1);
}

.tox .tox-button {
    color: var(--color-text);
}

.tox .tox-button:hover {
    background: var(--color-secondary);
    color: var(--color-text);
}

.tox .tox-button--enabled {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card__body {
    padding: var(--space-16);
}

.card__footer {
    padding: var(--space-16);
    border-bottom: 1px solid var(--color-card-border-inner);
}

.card-header-enhanced {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 1.5rem;
    border-radius: 16px 16px 0 0 !important;
}

.card-header-enhanced h6 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.card-body-enhanced {
    padding: 2rem;
}

.stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Dashboard Sidebar Styles */
.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle i {
    font-size: 0.9rem;
}

/* Small icon circle for analytics cards */
.icon-circle-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle-sm i {
    font-size: 0.75rem;
}

/* Dashboard Chart Styles */
.chart-container {
    padding: 0 10px;
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-bar {
    width: 100%;
    max-width: 50px;
    transition: height 0.3s ease, background 0.3s ease;
}

.chart-bar:hover {
    opacity: 0.85;
    transform: scaleY(1.02);
}

/* Stat cards for visitor analytics */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.settings-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.info-card-blue {
    background: rgba(var(--main-color-rgb), 0.05);
    border-left-color: var(--main-color);
}

.info-card-green {
    background: rgba(var(--color-success-green-rgb), 0.05);
    border-left-color: var(--color-success-green);
}

.info-card i {
    margin-top: 0.125rem;
    font-size: 1.1rem;
}

.info-card-blue i {
    color: var(--main-color);
}

.info-card-green i {
    color: var(--color-success-green);
}

.text-main {
    color: var(--main-color-text);
}

.text-accent {
    color: var(--accent-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.ltr {
    direction: ltr;
    text-align: left;
}

.rtl {
    direction: rtl;
    text-align: right;
}

.text-tertiary {
    color: var(--tertiary-color);
}

.seo-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.seo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.content-tabs-card,
.quick-actions-card,
.settings-card,
.media-card,
.seo-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-tabs-card:hover,
.settings-card:hover,
.media-card:hover,
.seo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================================================
   TABLES
   ============================================================================ */

.table-header {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 2px solid var(--main-color-border);
}

.enhanced-table {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    table-layout: auto;
}

.enhanced-table thead th {
    background: #f8f9fa;
    border: none;
    padding: 1rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.enhanced-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.enhanced-table tbody tr:hover {
    background: var(--main-color-light);
}

.enhanced-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

.sortable-ghost {
    opacity: 0.4;
    background: #f8f9fa;
}

.sortable-chosen {
    background: #e8f4f8;
    transform: scale(1.02);
}

.sortable-drag {
    opacity: 0.8;
    transform: rotate(2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.table-check {
    margin-left: 0;
}

thead .table-check {
    margin-top: -1rem;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

/* --- Header Structure --- */
.c-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: var(--main-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(86, 52, 52, .4);
}

.c-header.admin-header {
    background-color: var(--main-color);
    box-shadow: 0 15px 0 var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--duration-normal) var(--ease-standard);
}

.c-header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
    max-width: 100%;
    width: 100%;
    padding: 0 var(--space-16);
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- Logo Section --- */
.logo-section {
    flex-shrink: 0;
    order: 1;
    cursor: pointer;
    transition: transform var(--duration-normal) var(--ease-standard);
}

.logo-section:hover {
    transform: scale(1.02);
    text-decoration: none;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.c-header__logo {
    width: 120px;
    height: auto;
}

.logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all var(--duration-normal) var(--ease-standard);
}

.logo-text-subtext {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    color: var(--accent-color);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    text-transform: uppercase;
    user-select: none;
    line-height: 1;
}

.logo-subtext {
    color: var(--color-white);
    font-weight: 500;
    font-size: 1.1rem;
    user-select: none;
    line-height: 1.2;
    margin-left: 1rem;
    /* LTR spacing */
}

[dir="rtl"] .logo-subtext {
    font-family: var(--font-family-arabic);
    text-align: right;
    margin-left: 0;
    margin-right: 1rem;
    /* RTL spacing */
}

.logo-section:hover .logo-text,
.logo-section:hover .logo-subtext {
    transform: scale(1.02);
}

/* Mobile Footer Logo Styling */
@media (max-width: 767px) {
    .footer-brand .logo-section {
        align-items: center !important;
        justify-content: center;
    }

    .footer-brand .logo-main {
        justify-content: center;
    }

    .footer-brand .logo-subtext {
        font-size: 1.2rem;
        text-align: center;
        margin-left: 0.75rem !important;
        margin-top: 0.5rem !important;
    }

    .footer-brand .c-header__logo {
        margin-bottom: 0;
    }
}

/* --- Desktop Navigation --- */
.c-header__nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    order: 2;
}

.c-header__menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
}

.c-header__menu li {
    display: block;
    position: relative;
}

.c-header__menu li a {
    padding: 0 20px;
    display: block;
    line-height: 50px;
    color: #fff;
    font-size: 14px;
    line-height: 1.2em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-standard);
}

.admin-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0;
}

.admin-nav-item {
    position: relative;
}

.admin-nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-md);
    padding: var(--space-10) var(--space-16);
    border-radius: var(--radius-base);
    transition: all var(--duration-normal) var(--ease-standard);
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    line-height: var(--line-height-tight);
    min-height: 45px;
    justify-content: center;
}

.admin-nav-link:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    text-decoration: none;
}

.admin-nav-link.active-admin-link {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 -3px 0 var(--color-white);
}

.admin-nav-icon {
    opacity: 0.5;
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.rtl .c-header__menu li a {
    font-size: 15px;
}

/* --- Language Switcher --- */
.admin-user-section {
    flex-shrink: 0;
    order: 3;
    display: flex;
    align-items: center;
    transition: all var(--duration-normal) var(--ease-standard) cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-header .dropdown {
    flex-shrink: 0;
    order: 3;
    position: relative;
}

.admin-user-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-16);
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Animated background effect */
.admin-user-dropdown-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.admin-user-dropdown-btn:hover::before {
    left: 100%;
}

.admin-user-dropdown-btn:hover,
.admin-user-dropdown-btn:focus {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-user-dropdown-btn[aria-expanded="true"] {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.admin-user-dropdown-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.admin-user-dropdown-btn:focus {
    outline: none;
    outline-offset: 2px;
}

.admin-user-dropdown-btn .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    opacity: 0.8;
}

.admin-user-dropdown-btn img {
    transition: transform 0.3s ease;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-user-dropdown-btn:hover img {
    transform: scale(1.1);
}

.admin-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-right: var(--space-10);
    font-size: var(--font-size-base);
}

.admin-user-name {
    font-weight: var(--font-weight-semibold);
    color: inherit;
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.dropdown-toggle::after {
    display: none;
}

/* Professional Dropdown Menu */
.admin-user-dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin-top: var(--space-12);
    min-width: 180px;
    background-color: var(--color-white);
    backdrop-filter: blur(10px);
    animation: dropdownFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes dropdownFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.admin-user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-white);
}

[dir="rtl"] .admin-user-dropdown-menu::before {
    right: auto;
    left: 20px;
}

.admin-user-dropdown-menu li {
    list-style: none;
    margin-bottom: var(--space-4);
}

.admin-user-dropdown-menu li:last-child {
    margin-bottom: 0;
}

.admin-dropdown-item {
    padding: var(--space-12) var(--space-16);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    gap: var(--space-8);
    border: 2px solid transparent;
    background: transparent;
    width: 100%;
    text-align: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* RTL: Reverse flex direction so Flag comes first (left side) */
.admin-dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width 0.3s ease;
    opacity: 0.1;
}

.admin-dropdown-item:hover::before {
    width: 100%;
}

.admin-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(var(--main-color-rgb, 15, 36, 70), 0.05) 0%, rgba(var(--accent-color-rgb, 254, 192, 0), 0.05) 100%);
    color: var(--main-color);
    border-color: var(--accent-color);
}

.admin-dropdown-item.active {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark, #0a1e3d) 100%);
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(var(--main-color-rgb, 15, 36, 70), 0.3);
    padding-right: 32px;
}

[dir="rtl"] .admin-dropdown-item.active {
    padding-right: var(--space-12) var(--space-14);
}

.admin-dropdown-item.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 0.875rem;
}

/* RTL: Keep checkmark on right side */
[dir="rtl"] .admin-dropdown-item.active::after {
    left: 12px;
    right: auto;
}

.admin-dropdown-item img {
    transition: transform 0.3s ease;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-dropdown-item:hover img {
    transform: scale(1.15);
}

.admin-dropdown-icon {
    width: var(--space-16);
    text-align: center;
}

/* --- Hamburger Menu --- */
.burger-wrap {
    display: none;
    flex-shrink: 0;
    order: 5;
    margin-left: var(--space-8);
}

[dir="rtl"] .burger-wrap {
    margin-left: 0;
    margin-right: var(--space-8);
}

.hamburger {
    padding: 15px;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: .15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}

.hamburger {
    padding-left: 15px;
}

.hamburger.is-active:hover,
.hamburger:hover {
    opacity: .7;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner:after,
.hamburger.is-active .hamburger-inner:before {
    background-color: #fff;
}

.c-header__hamburger {
    height: 60px;
}

.c-header__hamburger.hamburger {
    background: var(--main-color);
}

.c-header__hamburger.hamburger .hamburger-box {
    transform: scale(.6);
}

.c-header__hamburger.hamburger:focus {
    outline: none;
}

.hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner:after,
.hamburger-inner:before {
    width: 40px;
    height: 4px;
    background-color: #fff;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: .15s;
    transition-timing-function: ease;
}

.hamburger-inner:after,
.hamburger-inner:before {
    content: "";
    display: block;
}

.hamburger-inner:before {
    top: -10px;
}

.hamburger-inner:after {
    bottom: -10px;
}

.hamburger--squeeze .hamburger-inner {
    transition-duration: 75ms;
    transition-timing-function: cubic-bezier(.55, .055, .675, .19);
}

.hamburger--squeeze .hamburger-inner:before {
    transition: top 75ms ease .12s, opacity 75ms ease;
}

.hamburger--squeeze .hamburger-inner:after {
    transition: bottom 75ms ease .12s, transform 75ms cubic-bezier(.55, .055, .675, .19);
}

.hamburger--squeeze.is-active .hamburger-inner {
    transform: rotate(45deg);
    transition-delay: .12s;
    transition-timing-function: cubic-bezier(.215, .61, .355, 1);
}

.hamburger--squeeze.is-active .hamburger-inner:before {
    top: 0;
    opacity: 0;
    transition: top 75ms ease, opacity 75ms ease .12s;
}

.hamburger--squeeze.is-active .hamburger-inner:after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 75ms ease, transform 75ms cubic-bezier(.215, .61, .355, 1) .12s;
}

/* --- Mobile Navigation --- */
.c-header__nav-mob {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    background: var(--main-color);
    opacity: 1;
    transition: all .3s ease-out 0s;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
}

[dir="rtl"] .c-header__nav-mob {
    right: auto;
    left: -100%;
}

.c-header__nav-mob.c-header__nav-mob--open {
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

[dir="rtl"] .c-header__nav-mob.c-header__nav-mob--open {
    right: auto;
    left: 0;
}

.c-header__menu-mob {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.c-header__menu-mob li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.c-header__menu-mob li a {
    color: #fff;
    font-size: 16px;
    line-height: 3.5em;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    display: block;
    border-top: 1px solid #fff;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 var(--space-16);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-standard);
}

.c-header__menu-mob li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.c-header__menu-mob li a br {
    display: none;
}

.c-header__menu-mob li:first-child a {
    border-top: none;
}

.admin-nav-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--main-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-standard);
    z-index: 999;
    pointer-events: none;
    max-width: 100%;
    overflow-x: hidden;
}

.admin-nav-mobile.mobile-nav-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* RTL Support for Mobile Navigation */
[dir="rtl"] .admin-nav-mobile {
    left: 0;
    right: 0;
    text-align: center;
}

[dir="rtl"] .admin-mobile-link {
    text-align: center;
}

.admin-mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1000;
}

.admin-mobile-menu {
    list-style: none;
    margin: 0;
    padding: var(--space-20) 0;
    width: 100%;
    max-width: 100%;
}

.admin-mobile-item {
    border-bottom: 1px solid var(--color-border);
    width: 100%;
}

.admin-mobile-item:last-child {
    border-bottom: none;
}

.admin-mobile-link {
    text-decoration: none;
    display: block;
    padding: var(--space-16);
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    transition: all var(--duration-normal) var(--ease-standard);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-mobile-link:hover,
.admin-mobile-link.active-mobile-link {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.admin-mobile-item:last-child .admin-mobile-link {
    border-bottom: none;
}

.mobile-menu-open {
    overflow: hidden;
}

/* --- Mobile Language Switcher --- */
.mobile-language-switcher {
    padding: var(--space-20) var(--space-16);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: var(--space-8);
    text-align: center;
}

.mobile-language-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-12);
}

.mobile-language-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    padding: var(--space-12) var(--space-20);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 130px;
    justify-content: center;
}

.mobile-lang-btn img {
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.mobile-lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.mobile-lang-btn:hover img {
    transform: scale(1.1);
}

.mobile-lang-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--main-color);
    box-shadow: 0 4px 15px rgba(254, 192, 0, 0.4);
}

.mobile-lang-btn.active img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* RTL Support for Mobile Language Switcher */
[dir="rtl"] .mobile-language-switcher {
    text-align: center;
}

[dir="rtl"] .mobile-lang-btn {
    flex-direction: row-reverse;
}

/* --- Desktop-specific Navigation Styles --- */
@media (min-width: 992px) {
    .c-header__menu li {
        display: flex;
        justify-content: center;
        align-items: center;
        border-left: 1px solid #fff;
        min-width: 140px;
    }

    .c-header__menu li:first-child {
        border-left: none;
    }

    .rtl .c-header__menu li:last-child {
        border-left: none;
    }

    .rtl .c-header__menu li:first-child {
        border-left: 1px solid #fff;
    }

    .c-header__menu li a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: stretch;
        text-align: center;
        min-width: 100px;
        padding-top: 7px;
        padding-bottom: 5px;
    }
}

/* ============================================================================
   TABS & OTHER COMPONENTS
   ============================================================================ */

.custom-tabs {
    position: relative;
    overflow: visible;
}

.custom-tabs .nav-item {
    flex: 1;
    max-width: 120px;
    position: relative;
}

.custom-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    padding: var(--space-12) var(--space-20);
    border-radius: var(--radius-base);
    margin-right: var(--space-4);
    transition: all var(--duration-normal) var(--ease-standard);
    font-weight: var(--font-weight-medium);
    position: relative;
    overflow: visible;
}

.custom-tabs .nav-link:hover {
    background: rgba(var(--color-teal-500-rgb), 0.1);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.custom-tabs .nav-link.active {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
    box-shadow: 0 4px 12px rgba(var(--color-teal-500-rgb), 0.3);
}

.custom-tabs .nav-link:hover .tab-flag {
    filter: none;
}

.custom-tabs .nav-link.active .tab-indicator {
    transform: translateX(-50%) scaleX(1);
    z-index: 10;
}

.header-info h1 {
    font-size: 2.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.enhanced-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--color-neutral-gray);
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.enhanced-tabs .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-1px);
}

.enhanced-tabs .nav-link.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-link.active .completion-indicator {
    background: rgba(255, 255, 255, 0.7);
}

.nav-link.active .completion-indicator.completed {
    background: #90EE90;
}

/* ============================================================================
   MENU COMPONENTS
   ============================================================================ */

.menus-table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

#menusTable tbody tr:hover .drag-handle {
    color: var(--accent-color);
}

.mobile-menu-open {
    overflow: hidden;
}

.menu-management-header {
    background: linear-gradient(135deg, var(--main-color-dark) 0%, var(--main-color) 100%);
    color: white;
    padding: 2rem 0;
    margin: 10px -24px 2rem -24px;
    border-radius: 0 0 20px 20px;
}

.menu-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    background: var(--main-color-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 1.1rem;
}

.menu-details h6 {
    margin: 0;
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.menu-link {
    color: var(--color-neutral-gray);
    font-size: 0.8rem;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.menu-management-header h1,
.menu-management-header p,
.menu-management-header small {
    color: var(--color-white) !important;
}

.menu-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
}

.menu-summary h6 {
    color: var(--main-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.menu-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-badge {
    background: #e8f4f8;
    color: #2980b9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.h-metodo-nav:after {
    width: 25px;
    height: 30px;
    left: 0;
    bottom: -42px;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 15px solid #ededed;
    transform: rotate(270deg);
    border-left: 15px solid var(--main-color);
    transition: all .2s ease-out 0s;
}

.h-metodo-nav:after,
.h-metodo-nav:before {
    content: "";
    display: block;
    position: absolute;
}

.h-metodo__intro,
.h-metodo__intro p {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #424a54;
}

/* ============================================================================
   ADMIN PANEL
   ============================================================================ */

.admin-main {
    min-height: calc(100vh - 80px);
    padding: var(--space-24) 0;
}

.admin-container {
    max-width: var(--container-xl);
}


/* ============================================================================
   POSTS & CONTENT
   ============================================================================ */

.posts-table-container .table-responsive {
    border-radius: 0;
    border: none;
    margin: 0;
    padding: 0;
}

.stat-posts {
    color: var(--main-color);
}

.post-management-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.post-management-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.post-item-card {
    max-width: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.post-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.post-details {
    flex: 1;
    min-width: 0;
}

.post-details h6 {
    margin: 0 0 4px 0;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-summary {
    margin: 0;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.3;
    max-height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-row:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-row:hover .post-icon {
    transform: scale(1.1);
}

.post-row:hover .drag-handle {
    opacity: 1;
    color: #667eea;
}

.post-row {
    transition: all 0.2s ease;
}

.post-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.post-form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* ============================================================================
   MODALS
   ============================================================================ */

.modal-header.bg-gradient {
    background: linear-gradient(135deg, var(--main-color) 0%, #b91c2c 100%);
    color: white;
    border-bottom: none;
}

/* Change Password Modal */
#changePasswordModal .modal-content {
    border-radius: 18px;
    border: 1px solid rgba(var(--main-color-rgb), 0.15);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

#changePasswordModal .modal-header {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark) 100%);
    color: #fff;
    border-bottom: none;
    align-items: center;
    border-radius: 18px 18px 0 0;
}

#changePasswordModal .modal-title {
    font-weight: 700;
    letter-spacing: 0.3px;
}

#changePasswordModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#changePasswordModal .modal-body {
    padding: 1.75rem 1.5rem;
}

#changePasswordModal .form-label {
    font-weight: 600;
    color: #1f2a37;
}

#changePasswordModal .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transition: all 0.25s ease;
    box-shadow: none;
}

#changePasswordModal .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(var(--accent-color-rgb), 0.18);
}

#changePasswordModal .position-relative .password-toggle-icon {
    color: var(--main-color);
    opacity: 0.8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--main-color-rgb), 0.04);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#changePasswordModal .position-relative .password-toggle-icon:hover {
    opacity: 1;
    transform: scale(1.05);
    cursor: pointer;
    background: rgba(var(--accent-color-rgb), 0.12);
    box-shadow: 0 6px 16px rgba(var(--main-color-rgb), 0.15);
}

#changePasswordModal .position-relative .password-toggle-icon:active {
    transform: scale(0.98);
    background: rgba(var(--accent-color-rgb), 0.16);
}

#changePasswordModal .modal-footer {
    border-top: none;
    padding: 1.25rem 1.5rem 1.5rem;
}

#changePasswordModal .btn-primary {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 28px rgba(var(--main-color-rgb), 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#changePasswordModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(var(--main-color-rgb), 0.3);
}

#changePasswordModal .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(var(--main-color-rgb), 0.25);
}

#changePasswordModal .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#changePasswordModal .btn-secondary {
    border-radius: 12px;
    border: 1px solid rgba(var(--main-color-rgb), 0.15);
    color: var(--main-color);
    font-weight: 600;
}

#changePasswordModal .btn-secondary:hover {
    background: rgba(var(--main-color-rgb), 0.08);
    color: var(--main-color);
}

#changePasswordModal .btn-secondary:active {
    background: rgba(var(--main-color-rgb), 0.12);
}

#changePasswordModal .btn-secondary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

#changePasswordModal .btn-outline-primary {
    border-radius: 12px;
    border: 1px solid rgba(var(--main-color-rgb), 0.3);
    color: var(--main-color);
    font-weight: 600;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#changePasswordModal .btn-outline-primary:hover {
    background: rgba(var(--main-color-rgb), 0.08);
    color: var(--main-color);
    box-shadow: 0 8px 18px rgba(var(--main-color-rgb), 0.15);
}

#changePasswordModal .btn-outline-primary:active {
    background: rgba(var(--main-color-rgb), 0.12);
    transform: translateY(-1px);
}

#changePasswordModal .btn-outline-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#changePasswordModal .btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.25);
}

#changePasswordErrors ul {
    padding-left: 20px;
    margin: 0.5rem 0 0;
}

#changePasswordErrors li {
    list-style-type: disc;
    color: #dc3545;
    font-weight: 500;
}

#changePasswordSuccess {
    color: #198754;
    font-weight: 600;
    margin-top: 0.5rem;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.modal-fullscreen .modal-body {
    padding: 0;
}

/* ============================================================================
   TABS
   ============================================================================ */

.tab-flag {
    font-size: 20px;
    margin-bottom: 2px;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.tab-text {
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    height: 3px;
    width: 80%;
    background: var(--accent-color);
    border-radius: 2px 2px 0 0;
    transition: transform 0.3s ease;
    z-index: 10;
}

.tab-content {
    background: white;
    border-radius: 8px;
    padding: 5px 20px;
    border: 1px solid #e9ecef;
    min-height: 80px;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

.tab-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(var(--main-color-rgb), 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.tab-content>.tab-pane {
    display: none;
}

.tab-content>.active {
    display: block;
}

/* ============================================================================
   STATUS & BADGES
   ============================================================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 2px solid;
}

.status--success {
    background-color: rgba(var(--color-success-rgb, 33, 128, 141), var(--status-bg-opacity));
    color: var(--color-success);
    border: 1px solid rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
    background-color: rgba(var(--color-error-rgb, 192, 21, 47), var(--status-bg-opacity));
    color: var(--color-error);
    border: 1px solid rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
    background-color: rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-bg-opacity));
    color: var(--color-warning);
    border: 1px solid rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
    background-color: rgba(var(--color-info-rgb, 98, 108, 113), var(--status-bg-opacity));
    color: var(--color-info);
    border: 1px solid rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

.status-badge {
    transition: all 0.3s ease;
}

.status-active {
    background: rgba(var(--color-success-green-rgb), 0.1);
    color: var(--color-success-green);
    border-color: rgba(var(--color-success-green-rgb), 0.2);
}

.status-inactive {
    background: rgba(var(--color-neutral-gray-rgb), 0.1);
    color: var(--color-neutral-gray);
    border-color: rgba(var(--color-neutral-gray-rgb), 0.2);
}

.system-badge {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.2);
}

.order-badge {
    transition: all 0.3s ease;
}

.order-badge.updating {
    transform: scale(1.1);
    background-color: var(--color-success-green) !important;
    color: white !important;
}

.category-badge {
    background: #fef9e7;
    color: #f39c12;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.item-badge {
    background: #f4f6f7;
    color: #7f8c8d;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.status-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.featured-badge {
    background: white;
    border: none;
    font-size: 14px;
    padding: 5px;
    border-radius: 3px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.order-badge:hover {
    transform: scale(1.1);
}


/* ============================================================================
   UPLOAD COMPONENTS
   ============================================================================ */

.url-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.preview-box {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

#urlPreview {
    color: var(--main-color);
    font-weight: 600;
}

.preview-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    background: var(--selected-color, #d8262f);
}

/* ============================================================================
   FILE UPLOAD AREAS - ENHANCED
   ============================================================================ */

/* Featured Image Upload Area */
.image-upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: #f8f9fa;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

/* Icon Upload Area */
.icon-upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: #f8f9fa;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icon-upload-area:hover {
    border-color: var(--color-info-blue);
    background: rgba(var(--color-info-blue-rgb), 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--color-info-blue-rgb), 0.1);
}

/* Upload Placeholder */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-neutral-gray);
}

.upload-placeholder i {
    font-size: 2rem;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.image-upload-area:hover .upload-placeholder i {
    color: #667eea;
    transform: scale(1.1);
}

.icon-upload-area:hover .upload-placeholder i {
    color: var(--color-info-blue);
    transform: scale(1.1);
}

.upload-placeholder span {
    font-weight: 600;
    font-size: 1rem;
}

.upload-placeholder small {
    color: #adb5bd;
    font-size: 0.85rem;
}

/* Uploaded Images */
.uploaded-image {
    max-height: 250px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.uploaded-icon {
    max-height: 120px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Image Overlay - Fixed */
.upload-image-overlay,
.upload-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.upload-image-overlay i,
.upload-icon-overlay i {
    font-size: 2rem;
    color: #ffffff;
}

.upload-image-overlay span,
.upload-icon-overlay span {
    font-weight: 600;
    font-size: 1rem;
}

/* Show overlay on hover when image exists */
.image-upload-area:hover .upload-image-overlay,
.icon-upload-area:hover .upload-icon-overlay {
    opacity: 1;
}

/* Hide overlay when no image */
.image-upload-area .upload-image-overlay {
    display: none;
}

.icon-upload-area .upload-icon-overlay {
    display: none;
}

/* Show overlay only when image is present */
.image-upload-area.has-image .upload-image-overlay {
    display: flex;
}

.icon-upload-area.has-icon .upload-icon-overlay {
    display: flex;
}

/* Upload States */
.upload-success {
    border-color: var(--color-success-green);
    background: rgba(var(--color-success-green-rgb), 0.05);
}

.upload-success .upload-placeholder i {
    color: var(--color-success-green);
}

.upload-error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.upload-error .upload-placeholder i {
    color: #dc3545;
}

/* Drag and Drop States */
.upload-area-dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.upload-area-dragging {
    border-style: solid;
    border-width: 3px;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Upload Progress */
.upload-progress {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
    font-size: 0.875rem;
}

.upload-progress.show {
    display: block;
}

.upload-progress .progress {
    height: 4px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.2);
}

.upload-progress .progress-bar {
    background: #667eea;
}

/* Responsive */
@media (max-width: 767px) {
    .image-upload-area {
        min-height: 200px;
        padding: 1.5rem;
    }

    .icon-upload-area {
        min-height: 120px;
        padding: 1rem;
    }

    .upload-placeholder i {
        font-size: 2.5rem;
    }

    .uploaded-image {
        max-height: 200px;
    }

    .uploaded-icon {
        max-height: 100px;
    }
}


/* ============================================================================
   ARABIC & LANGUAGE SUPPORT
   ============================================================================ */

html[dir="rtl"] {
    font-family: var(--font-family-arabic) !important;
}

.arabic-font {
    font-family: var(--font-family-arabic) !important;
    direction: rtl;
    text-align: right;
    font-feature-settings: "liga" 1, "kern" 1, "arab" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.arabic-font-light {
    font-family: var(--font-family-arabic) !important;
    font-weight: 200;
    direction: rtl;
    text-align: right;
}

.arabic-font-regular {
    font-family: var(--font-family-arabic) !important;
    font-weight: 400;
    direction: rtl;
    text-align: right;
}

.arabic-font-medium {
    font-family: var(--font-family-arabic) !important;
    font-weight: 500;
    direction: rtl;
    text-align: right;
}

.arabic-font-bold {
    font-family: var(--font-family-arabic) !important;
    font-weight: 700;
    direction: rtl;
    text-align: right;
}

.arabic-font-sm {
    font-family: var(--font-family-arabic) !important;
    font-size: 0.875rem;
    direction: rtl;
    text-align: right;
    line-height: 1.5;
}

.arabic-font-base {
    font-family: var(--font-family-arabic) !important;
    font-size: 1rem;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

.arabic-font-lg {
    font-family: var(--font-family-arabic) !important;
    font-size: 1.125rem;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

.arabic-title {
    font-family: var(--font-family-arabic) !important;
    font-weight: 700;
    font-size: 2rem;
    direction: rtl;
    text-align: right;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.arabic-subtitle {
    font-family: var(--font-family-arabic) !important;
    font-weight: 600;
    font-size: 1.5rem;
    direction: rtl;
    text-align: right;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.arabic-body {
    font-family: var(--font-family-arabic) !important;
    font-weight: 400;
    font-size: 1rem;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.arabic-input {
    font-family: var(--font-family-arabic) !important;
    direction: rtl;
    text-align: right;
    font-size: 1rem;
    line-height: 1.5;
}

.arabic-textarea {
    font-family: var(--font-family-arabic) !important;
    direction: rtl;
    text-align: right;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
}

.arabic-label {
    font-family: var(--font-family-arabic) !important;
    font-weight: 500;
    direction: rtl;
    text-align: right;
    font-size: 0.875rem;
    line-height: 1.5;
}

.arabic-button {
    font-family: var(--font-family-arabic) !important;
    font-weight: 500;
    direction: rtl;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.5;
}

.arabic-table {
    font-family: var(--font-family-arabic) !important;
    direction: rtl;
}

.arabic-table th {
    font-weight: 600;
    text-align: right;
    font-size: 0.875rem;
}

.arabic-table td {
    font-weight: 400;
    text-align: right;
    font-size: 0.875rem;
    line-height: 1.5;
}

.arabic-badge {
    font-family: var(--font-family-arabic) !important;
    font-weight: 500;
    font-size: 0.75rem;
    direction: rtl;
    text-align: center;
    line-height: 1.4;
}

.mixed-content .arabic {
    direction: rtl;
    display: inline-block;
    font-family: var(--font-family-arabic) !important;
}

.text-arabic {
    font-family: var(--font-family-arabic) !important;
    direction: rtl;
    text-align: right;
}

.language-flags {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.flag-indicator {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: white;
    font-weight: 600;
}

.flag-en {
    background: var(--main-color);
}

.flag-fr {
    background: #0056b3;
}

.flag-tr {
    background: var(--main-color);
}

.flag-ar {
    background: var(--color-success-green);
}

.flag-icon {
    font-size: 1.2rem;
}

.language-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.language-sync {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
}

.language-tabs-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #e9ecef;
}

.flag-indicator.has-content {
    background: #27ae60;
    color: white;
    font-weight: 600;
}

.language-progress {
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-form {
    animation: fadeIn 0.5s ease;
}

.language-form[data-lang="ar"] {
    direction: rtl;
    text-align: right;
}

.rtl .logo-img {
    margin-left: auto;
    margin-right: var(--space-12);
}

.rtl .dropdown-item {
    text-align: right !important;
}

/* ============================================================================
   OTHER COMPONENTS
   ============================================================================ */

code {
    padding: var(--space-1) var(--space-4);
}

.ar-font,
.ar-font p,
.ar-font h1,
.ar-font h2,
.ar-font h3,
.ar-font span {
    font-family: var(--font-family-arabic) !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-base);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    border: none;
    text-decoration: none;
    position: relative;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.password-toggle-icon {
    position: absolute;
    top: 34px;
    right: 12px;
    cursor: pointer;
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--space-16);
    padding-left: var(--space-16);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.mixed-content {
    font-family: var(--font-family-arabic) !important;
    line-height: 1.6;
}

.mixed-content .english {
    direction: ltr;
    display: inline-block;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: var(--space-6) var(--space-12);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mx-8 {
    margin-left: var(--space-8);
    margin-right: var(--space-8);
}

.my-8 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.py-8 {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.px-8 {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

.py-16 {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.px-16 {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
}

:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--main-color);
    line-height: 1;
}

.stats-label {
    color: var(--color-neutral-gray);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-mini {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-item {
    font-size: 11px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-categories {
    color: var(--color-success-green);
}

.stat-products {
    color: #ffc107;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-neutral-gray);
}

.section-title {
    color: var(--main-color);
    border-bottom: 2px solid var(--main-color-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.base-url {
    color: var(--color-neutral-gray);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.summary-item .label {
    font-weight: 500;
    color: var(--color-neutral-gray);
}

.summary-item .value {
    font-weight: 600;
    color: #495057;
}

.custom-tabs {
    border: none;
    background: transparent;
    justify-content: center;
    gap: 4px;
}

.drag-handle {
    cursor: grab;
    color: var(--color-neutral-gray);
    margin-right: 8px;
}

.drag-handle:hover {
    color: var(--accent-color);
}

.drag-handle:active {
    cursor: grabbing;
}

.parent-info {
    color: #95a5a6;
    font-size: 11px;
    margin-top: 2px;
    display: block;
}

.stat-views {
    color: #3498db;
}

.stat-children {
    color: #e67e22;
}

.stat-date {
    color: #95a5a6;
}

.quick-filters {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-neutral-gray);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.filter-btn.active:hover {
    background: #5a6fd8;
    color: white;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#changePasswordErrors ul {
    padding-left: 20px;
    margin: 0;
}

#changePasswordErrors li {
    list-style-type: disc;
}

.save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-success-green);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(var(--color-success-green-rgb), 0.3);
}

.save-indicator.show {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInRight 0.3s ease;
}

.lang-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.completion-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
    transition: all 0.3s ease;
}

.completion-dot.completed {
    background: var(--color-success-green);
    box-shadow: 0 0 0 3px rgba(var(--color-success-green-rgb), 0.2);
}

.enhanced-tabs {
    border: none;
    background: transparent;
    gap: 4px;
    padding: 0 1rem;
}

.completion-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dee2e6;
    transition: all 0.3s ease;
}

.completion-indicator.completed {
    background: var(--color-success-green);
}

.char-counter {
    font-size: 0.75rem;
    color: var(--color-neutral-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.char-counter.text-warning {
    color: #f39c12 !important;
}

.char-counter.text-danger {
    color: #e74c3c !important;
}

.editor-toolbar {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.settings-toggles {
    background: var(--color-surface);
    border-radius: var(--radius-base);
    padding: var(--space-16);
}

.color-picker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker {
    width: 50px !important;
    height: 50px !important;
    padding: 4px !important;
    cursor: pointer;
}

.current-image {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    object-fit: cover;
}

.current-icon {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.or-divider {
    font-size: 0.8rem;
    color: var(--color-neutral-gray);
    font-weight: 500;
}

.sticky-sidebar {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding-right: 8px;
}

.completion-status h6 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.rich-editor-container {
    position: relative;
}

.rich-editor-container .mce-tinymce {
    border-radius: var(--radius-base);
    border: 2px solid var(--color-border);
    transition: border-color var(--duration-normal) var(--ease-standard);
}

.rich-editor-container .mce-tinymce:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.fullscreen-editor-container {
    height: calc(100vh - 120px);
    width: 100%;
}

.fullscreen-rich-editor {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
}

.fullscreen-editor-controls {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.editor-tools {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

.tox .tox-toolbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.tox .tox-toolbar__primary {
    background: transparent;
}

.tox .tox-statusbar {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.tox-fullscreen {
    z-index: 9999;
}

.rich-editor-container[data-lang="ar"] .tox-edit-area {
    direction: rtl;
    text-align: right;
}

.editor-loading {
    position: relative;
}

.editor-loading::before {
    background: rgba(var(--color-charcoal-800-rgb, 38, 40, 40), 0.8);
}

.editor-loading::after {
    content: 'Loading editor...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--color-teal-500-rgb), 0.4);
    }

    70% {
        box-shadow: 0 0 0 var(--space-10) rgba(var(--color-teal-500-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--color-teal-500-rgb), 0);
    }
}

.gap-4 {
    gap: var(--space-4);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-16 {
    gap: var(--space-16);
}

.m-0 {
    margin: 0;
}

.p-0 {
    padding: 0;
}

.block {
    display: block;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25;
}

.text-md {
    font-size: 0.95rem;
}

.dropdown-item.active {
    background-color: var(--color-primary);
    color: white;
}

.rich-editor-container:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--color-teal-500-rgb), 0.1);
}

.file-type-icon {
    font-size: var(--font-size-lg);
    margin-right: var(--space-8);
}

.file-type-image {
    color: var(--color-success);
}

.file-type-video {
    color: var(--color-error);
}

.file-type-document {
    color: var(--color-primary);
}

/* ============================================================================
   HEADING BLOCK - Section Headers with Decorative Line
   ============================================================================ */

.heading-block {
    --heading-padding-y: 1.5em;
    --heading-line-offset: 20px;
    /* Offset from top padding to center of h1 */
    text-align: center;
    padding: var(--heading-padding-y) 0;
    overflow: visible;
    position: relative;
}

/* The decorative line */
.heading-block::after {
    content: "";
    position: absolute;
    top: calc(var(--heading-padding-y) + var(--heading-line-offset));
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    z-index: 1;
    pointer-events: none;
}

.heading-block h1 {
    display: inline-block;
    position: relative;
    background: #fff;
    padding: 0 25px;
    margin: 0 0 10px;
    z-index: 2;
    line-height: 1.2;
}

.heading-block h2 {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-neutral-gray);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Light variant (for dark backgrounds) */
.heading-block-light::after {
    background: rgba(255, 255, 255, 0.3);
}

.heading-block-light h1 {
    background: var(--color-cream-50, #f8f6f3);
    color: var(--main-color);
}

.heading-block-light h2 {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .heading-block {
        --heading-padding-y: 1.2em;
        --heading-line-offset: 22px;
    }

    .heading-block h1 {
        padding: 0 15px;
        line-height: 1.4;
    }

    .heading-block h2 {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    /* RTL Arabic text fix - prevent clipping */
    [dir="rtl"] .heading-block {
        --heading-padding-y: 1.4em;
        --heading-line-offset: 25px;
    }

    [dir="rtl"] .heading-block h1 {
        line-height: 1.5;
        padding-top: 5px;
    }
}

@media (min-width: 768px) {
    .heading-block {
        --heading-padding-y: 2em;
        --heading-line-offset: 22px;
    }

    .heading-block h2 {
        font-size: 1rem;
        padding: 12px 30px;
        max-width: 750px;
    }
}

@media (min-width: 992px) {
    .heading-block {
        --heading-padding-y: 2.5em;
        --heading-line-offset: 30px;
        display: block;
        margin: 0 auto;
        max-width: 1400px;
    }

    .heading-block h1 {
        padding: 0 30px;
    }

    .heading-block h2 {
        font-size: 1.1rem;
        padding: 15px 40px;
        max-width: 800px;
    }
}

/* Global h1 styles */
h1 {
    color: var(--main-color);
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

@media (min-width: 992px) {
    h1 {
        font-size: 50px;
        font-weight: 900;
    }
}


@media (min-width: 768px) {
    .heading-block h1 {
        max-width: 100%;
    }
}

/* Global h2 styles */
h2 {
    color: #424a54;
    font-weight: 600;
    font-size: 20px;
}

@media (min-width: 992px) {
    h2 {
        font-size: 24px;
    }
}

.heading-block h2 {
    text-align: center;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-neutral-gray);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .heading-block h2 {
        font-size: 1.1rem;
        padding: 15px 40px;
        max-width: 800px;
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--color-teal-500-rgb), 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--color-teal-500-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--color-teal-500-rgb), 0);
    }
}


/* ============================================================================
   FONTS
   ============================================================================ */

@font-face {
    font-family: 'FKGroteskNeue';
    src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 768px) {
    .modal-xl .modal-body {
        padding: var(--space-16);
    }

    .image-upload-area,
    .icon-upload-area {
        min-height: 120px;
        padding: var(--space-16);
    }

    .upload-placeholder i {
        font-size: var(--font-size-3xl);
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .editor-tools {
        flex-direction: column;
        gap: var(--space-4);
    }

    .fullscreen-editor-controls {
        flex-direction: column;
        gap: var(--space-4);
    }

    .modal-header-actions {
        flex-direction: column;
        gap: var(--space-4);
    }
}

@media (min-width: 640px) {
    .container {
        max-width: var(--container-sm);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: var(--container-xl);
    }
}

@media (max-width: 1200px) {

    /* .admin-nav-menu { 
        gap: var(--space-24);
    }
    */
    .admin-nav-link {
        font-size: var(--font-size-sm);
        padding: var(--space-8) var(--space-12);
    }
}

@media (max-width: 992px) {
    .post-form-header h1 {
        font-size: 1.8rem;
    }

    .header-actions {
        flex-direction: column;
        gap: 8px;
    }

    .progress-indicator {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .sticky-sidebar {
        position: static;
        max-height: none;
    }

    .enhanced-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .flag-icon {
        font-size: 1rem;
    }

    .lang-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .modal-header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-4);
    }

    .editor-tools {
        flex-wrap: wrap;
        justify-content: center;
    }

    .custom-tabs .nav-link {
        padding: var(--space-6) var(--space-10);
        font-size: var(--font-size-xs);
        margin-right: var(--space-2);
    }

    .image-upload-area,
    .icon-upload-area {
        min-height: 100px;
        padding: var(--space-12);
    }

    .upload-placeholder i {
        font-size: var(--font-size-2xl);
    }

    .fullscreen-editor-container {
        height: calc(100vh - 80px);
    }
}

@media (prefers-contrast: high) {
    .admin-header {
        border-bottom: 2px solid var(--color-text);
    }

    .admin-nav-link,
    .admin-user-dropdown-btn {
        border: 1px solid var(--color-text);
    }
}

@media (prefers-reduced-motion: reduce) {

    .admin-header,
    .admin-nav-item,
    .admin-nav-link,
    .admin-user-dropdown-btn {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Disable scroll animations for users who prefer reduced motion */
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    /* Disable all decorative animations */
    .floating-shape,
    .grid-pattern,
    .engineering-grid,
    .blueprint-grid,
    .architectural-accent,
    .engineering-tool,
    [class*="animate-"],
    .shimmer {
        animation: none !important;
    }
}

@media print {

    .post-form-header,
    .progress-indicator,
    .save-indicator,
    .header-actions,
    .editor-toolbar,
    .quick-actions-card {
        display: none !important;
    }

    .enhanced-tabs {
        display: none !important;
    }

    .tab-content .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }
}

@media (min-width: 1200px) {
    .admin-user-name span {
        display: inline;
    }
}

@media (max-width: 1199.98px) {
    .admin-user-name span {
        display: none;
    }
}

@media (min-width: 992px) {
    h2 {
        font-size: 24px;
    }
}

@media (max-width: 991.98px) {
    .c-header__nav {
        display: none;
    }

    .burger-wrap {
        display: flex;
    }

    .admin-avatar {
        margin-right: 0;
    }

    .c-header .wrapper {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "logo user burger";
        align-items: center;
        gap: var(--space-8);
        height: 60px;
        padding: 0 var(--space-12);
    }

    .logo-section {
        grid-area: logo;
        order: unset;
        margin: 0;
    }

    [dir="rtl"] .logo-section {
        margin: 0;
    }

    .admin-user-section {
        grid-area: user;
        order: unset;
    }

    .burger-wrap {
        grid-area: burger;
        order: unset;
        margin: 0;
    }

    [dir="rtl"] .burger-wrap {
        margin: 0;
    }

    .admin-nav-mobile {
        grid-column: 1 / -1;
        grid-row: 2;
        order: unset;
    }

    .logo-subtext {
        font-size: 0.9rem;
    }

    /* Language Switcher adjustments for tablet */
    .admin-user-dropdown-btn {
        padding: var(--space-6) var(--space-12);
        gap: var(--space-6);
    }

    .admin-user-dropdown-btn span {
        font-size: 0.85rem;
    }

    .admin-user-dropdown-menu {
        min-width: 160px;
    }
}

@media (max-width: 767.98px) {

    .c-header .wrapper {
        height: 55px;
        padding: 0 var(--space-8);
        gap: var(--space-6);
    }

    .c-header__hamburger {
        height: 55px;
    }

    .logo-img {
        height: 35px;
        padding-left: 15px;
    }

    [dir="rtl"] .logo-img {
        padding-left: 0;
        padding-right: 15px;
    }

    .logo-subtext {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .logo-text {
        font-size: var(--font-size-xl);
    }

    /* Language Switcher adjustments for mobile */
    .admin-user-dropdown-btn {
        padding: var(--space-8) var(--space-12);
        font-size: var(--font-size-sm);
        gap: var(--space-6);
        min-height: 40px;
        border-radius: var(--radius-base);
    }

    .admin-user-dropdown-btn img {
        width: 24px;
        height: 18px;
        border-radius: 3px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .admin-user-dropdown-btn .fa-chevron-down {
        font-size: 0.7rem;
        opacity: 0.9;
    }

    .admin-user-name span {
        display: none;
    }

    .admin-user-dropdown-menu {
        min-width: 160px;
        padding: var(--space-8);
        position: fixed;
        top: auto !important;
        right: var(--space-8) !important;
        left: auto !important;
        transform: none !important;
        margin-top: var(--space-8);
    }

    [dir="rtl"] .admin-user-dropdown-menu {
        right: auto !important;
        left: var(--space-8) !important;
    }

    .admin-dropdown-item {
        padding: var(--space-12) var(--space-14);
        font-size: 0.95rem;
        min-height: 44px;
    }

    .admin-dropdown-item img {
        width: 24px;
        height: 18px;
        border-radius: 3px;
    }

    .admin-avatar {
        width: 20px;
        height: 20px;
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 479.98px) {

    .c-header .wrapper {
        height: 50px;
        padding: 0 var(--space-6);
        gap: var(--space-4);
    }

    .c-header__hamburger {
        height: 50px;
    }

    .logo-img {
        height: 30px;
    }

    .logo-subtext {
        font-size: 0.85rem;
        line-height: 1.15;
    }

    .logo-text {
        font-size: var(--font-size-lg);
    }

    /* Language Switcher adjustments for small mobile */
    .admin-user-dropdown-btn {
        padding: var(--space-4) var(--space-8);
        font-size: 0.75rem;
        border-width: 1.5px;
        min-height: 32px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.1);
        gap: var(--space-4);
    }

    .admin-user-dropdown-btn img {
        width: 18px;
        height: 12px;
        border-radius: 2px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    .admin-user-dropdown-btn .fa-chevron-down {
        font-size: 0.5rem;
        display: inline-block;
        opacity: 0.7;
        margin-left: 2px;
    }

    [dir="rtl"] .admin-user-dropdown-btn .fa-chevron-down {
        margin-left: 0;
        margin-right: 2px;
    }

    .admin-user-dropdown-menu {
        min-width: 150px;
        padding: var(--space-6);
        margin-top: var(--space-6);
        right: var(--space-6) !important;
    }

    [dir="rtl"] .admin-user-dropdown-menu {
        right: auto !important;
        left: var(--space-6) !important;
    }

    .admin-dropdown-item {
        padding: var(--space-10) var(--space-12);
        font-size: 0.9rem;
        gap: var(--space-8);
        min-height: 42px;
    }

    .admin-dropdown-item img {
        width: 22px;
        height: 16px;
        border-radius: 2px;
    }

    .admin-dropdown-item.active::after {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .custom-tabs .nav-link {
        padding: var(--space-8) var(--space-12);
        font-size: var(--font-size-sm);
    }

    .upload-placeholder span {
        font-size: var(--font-size-sm);
    }

    .upload-placeholder small {
        font-size: var(--font-size-xs);
    }
}

@media (prefers-reduced-motion:reduce) {
    .h-soluzioni_bg {
        transition: none;
    }
}

/* ============================================================================
   BACK TO TOP BUTTON - BAMAK THEME
   ============================================================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #fff;
    border: 2px solid rgba(var(--accent-color-rgb), 0.3);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(var(--accent-color-rgb), 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Accent border glow effect */
.back-to-top::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-lighter), var(--accent-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Inner circle for better visual depth */
.back-to-top::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 50%;
    z-index: 0;
}

.back-to-top i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Show state with pulse animation */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: fadeInUp 0.5s ease, pulse 2s ease-in-out 1s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(var(--accent-color-rgb), 0.4);
    }

    50% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(var(--accent-color-rgb), 0);
    }
}

/* Hover effects */
.back-to-top:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(var(--accent-color-rgb), 0.3);
    animation: none;
    /* Stop pulse on hover */
}

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top:hover i {
    transform: translateY(-3px);
    color: var(--accent-color);
}

/* Active/Click state */
.back-to-top:active {
    transform: translateY(-5px) scale(0.95);
}

/* Focus state for accessibility */
.back-to-top:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(var(--accent-color-rgb), 0.3);
}

/* RTL Support for Back to Top */
[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 991px) {
    .footer-heading {
        font-size: 16px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-world {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 3rem 0 !important;
    }

    .footer-brand {
        text-align: center !important;
        margin-bottom: 2rem;
    }

    .social-links-modern {
        justify-content: center !important;
    }

    .footer-links {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-link {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    [dir="rtl"] .back-to-top {
        right: auto;
        left: 20px;
    }

    /* Reduce pulse effect on mobile */
    @keyframes pulse {

        0%,
        100% {
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(var(--accent-color-rgb), 0.4);
        }

        50% {
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(var(--accent-color-rgb), 0);
        }
    }

    .footer-world {
        margin-top: 2rem;
    }
}

@media (max-width: 575px) {
    .footer-copyright {
        font-size: 13px;
        text-align: center !important;
    }

    .footer-copyright .col-md-6 {
        text-align: center !important;
        margin-bottom: 10px;
    }

    .footer-copyright .col-md-6:last-child {
        margin-bottom: 0;
    }

    .footer-copy-link {
        display: inline-block;
        margin: 5px 8px;
    }

    .footer-brand img {
        height: 60px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* ============================================================================
   RTL TEXT ALIGNMENT FIXES
   ============================================================================ */

[dir="rtl"] .text-md-start {
    text-align: right !important;
}

[dir="rtl"] .text-md-end {
    text-align: left !important;
}

[dir="rtl"] .text-lg-start {
    text-align: right !important;
}

@media (max-width: 767px) {

    [dir="rtl"] .text-md-start,
    [dir="rtl"] .text-md-end,
    [dir="rtl"] .text-lg-start {
        text-align: center !important;
    }
}

/* ============================================================================
   FOOTER RESPONSIVE ENHANCEMENTS
   ============================================================================ */

/* Quick Links - Vertical list on desktop */
@media (min-width: 993px) {
    .footer-quick-links {
        display: block;
    }

    .footer-quick-links .footer-list-item::after {
        display: none !important;
    }
}

/* Quick Links - Inline with separators on tablet/mobile */
@media (max-width: 992px) {
    .footer-quick-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    .footer-quick-links .footer-list-item {
        margin-bottom: 0 !important;
        position: relative;
        margin-right: 12px;
    }

    .footer-quick-links .footer-list-item::after {
        content: '|';
        position: absolute;
        right: -7px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--accent-color);
        font-weight: 300;
    }

    .footer-quick-links .footer-list-item:last-child {
        margin-right: 0;
    }

    .footer-quick-links .footer-list-item:last-child::after {
        display: none;
    }

    [dir="rtl"] .footer-quick-links .footer-list-item {
        margin-right: 0;
        margin-left: 12px;
    }

    [dir="rtl"] .footer-quick-links .footer-list-item::after {
        right: auto;
        left: -7px;
    }

    [dir="rtl"] .footer-quick-links .footer-list-item:last-child {
        margin-left: 0;
    }
}

/* Syria Map Container - Works on all screens */
.syria-map-container {
    cursor: pointer;
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.syria-map-container a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    outline: none;
}

.syria-map {
    max-width: 250px;
    margin: 0 auto;
    transition: all 0.4s ease;
    filter: brightness(0.95);
}

.syria-map-container:hover .syria-map {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(var(--accent-color-rgb), 0.4)) drop-shadow(0 0 20px rgba(var(--accent-color-rgb), 0.3)) drop-shadow(0 0 30px rgba(var(--accent-color-rgb), 0.2));
    animation: mapGlow 2s ease-in-out infinite;
}

/* Subtle glow animation on hover */
@keyframes mapGlow {

    0%,
    100% {
        filter: brightness(1.1) drop-shadow(0 0 10px rgba(var(--accent-color-rgb), 0.4)) drop-shadow(0 0 20px rgba(var(--accent-color-rgb), 0.3));
    }

    50% {
        filter: brightness(1.15) drop-shadow(0 0 15px rgba(var(--accent-color-rgb), 0.6)) drop-shadow(0 0 30px rgba(var(--accent-color-rgb), 0.4)) drop-shadow(0 0 45px rgba(var(--accent-color-rgb), 0.2));
    }
}

/* Hide Our Branches heading on mobile */
@media (max-width: 767px) {
    .footer-main .col-lg-3.col-md-6:last-child h5 {
        display: none;
    }
}

/* ============================================================================
   FOOTER STYLES - CONSOLIDATED
   ============================================================================ */

/* Footer Headings with Underline */
.footer-heading-enhanced {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-heading-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
}

[dir="rtl"] .footer-heading-underline {
    left: auto;
    right: 0;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 100%);
}

/* Enhanced Social Icons */
.social-icon-enhanced {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(var(--accent-color-rgb), 0.3);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-icon-enhanced:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--main-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.4);
}

/* Unified Footer List */
.footer-list {
    padding: 0;
    margin: 0;
}

.footer-list-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-list-item:last-child {
    margin-bottom: 0;
}

.footer-list-item i {
    flex-shrink: 0;
    width: 20px;
}

.footer-list-link {
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-list-link:hover {
    color: var(--accent-color);
}

.hover-accent:hover {
    color: var(--accent-color) !important;
}

/* Footer Copyright Styles */
.footer-copyright {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-lighter) 100%);
    border-top: 2px solid var(--accent-color);
}

.copyright-brand {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-chevron-icon {
    font-size: 0.7rem;
}

/* Footer Responsive Styles */
@media (max-width: 992px) {
    .footer-heading-enhanced {
        text-align: center;
    }

    .footer-heading-underline {
        left: 50%;
        transform: translateX(-50%);
    }

    [dir="rtl"] .footer-heading-underline {
        right: 50%;
        left: 50%;
        transform: translateX(50%);
    }

    .footer-links-enhanced {
        text-align: center;
    }

    .footer-contact-list {
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .social-links-modern {
        justify-content: center !important;
    }

    /* Center footer contact info list on mobile */
    .footer-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-list-item {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-brand {
        text-align: center;
    }

    .footer-brand a {
        justify-content: center;
    }

    .social-icon-enhanced {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    [dir="rtl"] .footer-contact-item span small {
        margin-left: -40px;
    }
}

/* ============================================================================
   PROJECT IMAGES GALLERY
   ============================================================================ */

.project-images-upload-zone {
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(var(--main-color-rgb), 0.02);
}

.project-images-upload-zone:hover,
.project-images-upload-zone.drag-over {
    border-color: var(--main-color);
    background: rgba(var(--main-color-rgb), 0.05);
    transform: scale(1.01);
}

.project-images-upload-zone.drag-over {
    border-style: solid;
    box-shadow: 0 0 20px rgba(var(--main-color-rgb), 0.2);
}

.upload-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-images-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.project-image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.project-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.project-image-card .image-wrapper {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.project-image-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.project-image-card .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
}

.project-image-card:hover .image-overlay {
    opacity: 1;
}

.project-image-card .delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 10;
}

.project-image-card:hover .delete-btn {
    opacity: 1;
    transform: scale(1);
}

.project-image-card .delete-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.project-image-card .image-order {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--main-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.project-image-card .alt-inputs {
    padding: 0.75rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.project-image-card .alt-inputs input {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    width: 100%;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s ease;
}

.project-image-card .alt-inputs input:focus {
    border-color: var(--main-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--main-color-rgb), 0.1);
}

.project-image-card .alt-inputs input:last-child {
    margin-bottom: 0;
}

.project-image-card .alt-inputs label {
    font-size: 0.7rem;
    color: var(--color-neutral-gray);
    margin-bottom: 0.25rem;
    display: block;
    font-weight: 500;
}

.project-images-empty {
    text-align: center;
    padding: 2rem;
    display: none;
}

.project-images-empty.show {
    display: block;
}

/* New image pending upload indicator */
.project-image-card.pending-upload {
    border: 2px dashed var(--accent-color);
}

.project-image-card.pending-upload .image-wrapper::after {
    content: 'Pending';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem;
    text-align: center;
    font-weight: 600;
}

/* Loading state for images */
.project-image-card.loading .image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}