:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --success-color: #10b981;
    --dark-color: #1e293b;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(45deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    min-height: 100vh;
}

body.rtl {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
    text-align: right;
}

body.rtl .container {
    direction: rtl;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: white;
    border-radius: 25px;
    padding: 4px;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--border-color);
}

body.rtl .language-toggle {
    right: auto;
    left: 20px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0 12px;
    /* border-left: 1px solid rgba(255, 255, 255, 0.1); */
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.lang-btn img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.lang-btn:hover img {
    transform: scale(1.1);
}

.lang-btn.active {
    /* border-color: #667eea; */
    background: rgba(102, 126, 234, 0.3);
    /* box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2); */
}

.lang-btn.active img {
    transform: scale(1.05);
}

/* Header */
.header {
    background: var(--gradient-main);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.version-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Table of Contents */
.toc {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: 2rem;
    margin: -50px auto 4rem auto;
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.toc h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.toc-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.toc-item:hover {
    background: var(--light-gray);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

body.rtl .toc-item:hover {
    transform: translateX(-5px);
}

.toc-item i {
    color: var(--primary-color);
    width: 24px;
    margin-right: 12px;
    font-size: 1.2rem;
}

body.rtl .toc-item i {
    margin-right: 0;
    margin-left: 12px;
}

.toc-item span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-main);
}

body.rtl .content-section::before {
    left: auto;
    right: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.section-icon {
    background: var(--gradient-main);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 1rem;
}

body.rtl .section-icon {
    margin-right: 0;
    margin-left: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Step Cards */
.steps-container {
    display: grid;
    gap: 2rem;
}

.step-card {
    display: flex;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.step-card:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

body.rtl .step-card:hover {
    transform: translateX(-10px);
}

.step-number {
    background: var(--gradient-main);
    color: white;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content {
    padding: 1.5rem;
    flex: 1;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.step-details {
    list-style: none;
}

.step-details li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

body.rtl .step-details li {
    padding-left: 0;
    padding-right: 1.5rem;
}

.step-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

body.rtl .step-details li::before {
    left: auto;
    right: 0;
}

/* Code Blocks */
.code-block {
    background: var(--dark-color);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: 'CODE';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Alert Boxes */
.alert {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    position: relative;
    border-left: 4px solid;
}

body.rtl .alert {
    border-left: none;
    border-right: 4px solid;
}

.alert-info {
    background: #eff6ff;
    border-color: var(--info-color);
    color: #1e40af;
}

.alert-warning {
    background: #fffbeb;
    border-color: var(--warning-color);
    color: #92400e;
}

.alert-success {
    background: #f0fdf4;
    border-color: var(--success-color);
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    border-color: var(--danger-color);
    color: #991b1b;
}

.alert-icon {
    margin-right: 0.5rem;
    font-weight: bold;
}

body.rtl .alert-icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

body.rtl th,
body.rtl td {
    text-align: right;
}

th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--text-primary);
}

tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .header .subtitle {
        font-size: 1.1rem;
    }

    .language-toggle {
        top: 10px;
        right: 10px;
    }

    body.rtl .language-toggle {
        right: auto;
        left: 10px;
    }

    .container {
        padding: 0 15px;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    .toc {
        margin: -30px auto 2rem auto;
        padding: 1.5rem;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

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

    .step-card {
        flex-direction: column;
    }

    .step-number {
        width: 100%;
        height: 60px;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .section-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    body.rtl .section-icon {
        margin-left: 0;
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .language-toggle {
        display: none;
    }

    .header {
        background: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .content-section {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
}

/* Hidden content for language switching */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}
.company-logo {
  /* height: 36px; */
  /* adjust as needed for your logo size */
  vertical-align: middle;
  display: inline-block;
  margin-right: 10px;
}
    .float {
        position: fixed;
        width: 40px;
        height: 40px;
        bottom: 100px;
        right: 10px;
        background-color: #25d366;
        color: #FFF;
        border-radius: 50px;
        text-align: center;
        font-size: 26px;
        box-shadow: 2px 2px 3px #999;
        z-index: 100;
    }
    .my-float {
        margin-top: 8px;
    }

    /* RTL Support via html[dir] attribute */
html[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .container { direction: rtl; }
html[dir="rtl"] .language-toggle { right: auto; left: 20px; }
html[dir="rtl"] .toc-item:hover { transform: translateX(-5px); }
html[dir="rtl"] .toc-item i { margin-right: 0; margin-left: 12px; }
html[dir="rtl"] .content-section::before { left: auto; right: 0; }
html[dir="rtl"] .section-icon { margin-right: 0; margin-left: 1rem; }
html[dir="rtl"] .step-card:hover { transform: translateX(-10px); }
html[dir="rtl"] .step-details li { padding-left: 0; padding-right: 1.5rem; }
html[dir="rtl"] .step-details li::before { left: auto; right: 0; }
html[dir="rtl"] .alert { border-left: none; border-right: 4px solid; }
html[dir="rtl"] .alert-icon { margin-right: 0; margin-left: 0.5rem; }
html[dir="rtl"] th, html[dir="rtl"] td { text-align: right; }

@media (max-width: 768px) {
    html[dir="rtl"] .language-toggle { right: auto; left: 10px; }
    html[dir="rtl"] .section-icon { margin-left: 0; margin-bottom: 1rem; }
}
/* ============================================
   List Markers RTL Support
   ============================================ */

/* Use logical properties for universal RTL support */
ul, ol {
    padding-inline-start: 2rem;
    padding-inline-end: 0;
}

html[dir="rtl"] ul,
html[dir="rtl"] ol {
    list-style-position: inside;
    padding-inline-start: 1rem;
}

html[dir="rtl"] .alert ul,
html[dir="rtl"] .alert ol {
    margin-inline-start: 1rem;
    padding-inline-start: 0;
}

body.rtl ul,
body.rtl ol {
    list-style-position: inside;
    padding-inline-start: 1rem;
}

body.rtl .alert ul,
body.rtl .alert ol {
    margin-inline-start: 1rem;
    padding-inline-start: 0;
}

/* Floating Start Now Button */
    .float-start {
        position: fixed;
        min-width: 50px;
        height: 50px;
        bottom: 150px;
        right: 10px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #FFF;
        border-radius: 50px;
        text-align: center;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 15px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        overflow: hidden;
    }

    .float-start:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        transform: translateY(-3px);
        min-width: 140px;
    }

    .start-label {
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        max-width: 0;
        opacity: 0;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .float-start:hover .start-label {
        max-width: 100px;
        opacity: 1;
        margin-right: 5px;
    }
    .float-start img {
        width: 30px;
        height: 30px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .float-start:hover img {
        transform: scale(1.1);
    }

    body.rtl .float-start {
        right: auto;
        /* left: 10px; */
        flex-direction: row-reverse;
    }

    body.rtl .float-start:hover .start-label {
        margin-right: 0;
        margin-left: 5px;
    }

    .start-icon {
        font-size: 20px;
        animation: pulse 2s infinite;
    }

    /* Show only relevant language label */
    .label-en {
        display: none;
    }

    body:not(.rtl) .label-en {
        display: inline;
    }

    body:not(.rtl) .label-ar {
        display: none;
    }

    body.rtl .label-ar {
        display: inline;
    }

    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
    }

   /* Mobile adjustments */
    @media (max-width: 768px) {
        .float-start {
            bottom: 160px;
            min-width: 60px;
            height: 60px;
            padding: 10px;
        }

        .float-start img {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }

        .float-start:hover {
            min-width: 150px;
        }

        .float {
            bottom: 80px;
        }
    }