/* CodeCraft Pro - Professional Website Styles */

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    /* Background Colors */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-glass: rgba(26, 26, 46, 0.8);
    --bg-card: rgba(255, 255, 255, 0.05);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muteds: #09090a;
    --text-muted: #94a3b8;
    --text-inverse: hsl(220, 3%, 66%);

    /* Border Colors */
    --border-primary: #ffffff1a !important;
    --border-secondary: #ffffff0d;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-width: 300px !important;
}





body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: visible !important;
}

/* 
Arabic Language Specific Styles 
body.ar-lang {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}
*/


body.ar-lang .navbar-brand,
body.ar-lang .hero-title,
body.ar-lang h1,
body.ar-lang h2,
body.ar-lang h3,
body.ar-lang h4,
body.ar-lang h5,
body.ar-lang h6 {
    font-family: 'Cairo', sans-serif;
}

/* Typography */
h1,
h2,
h3,
h4,
h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.75rem;
}

h5 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

h6 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    width: 100%;
    padding-right: var(--spacing-md);
    padding-left: var(--spacing-md);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0f0f23f2;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    z-index: var(--z-fixed, 1050);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.98);
    border-bottom: 1px solid var(--border-secondary);
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Responsive navbar toggler */
.navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

@media (min-width: 992px) {

    .navbar-toggler {
        display: none;
    }
}

/* Global responsive helpers */
img,
video {
    /* max-width: 100%; */
    height: auto;
}

.table {
    width: 100vh;
}
.table {
  word-break: normal;      /* خليه طبيعي */
  overflow-wrap: anywhere; /* لفّ النص بس عند الضرورة */
  white-space: normal;     /* خليه ينزل سطر جديد لو مش لاقي مساحة */
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table td,
.table th,
.card-body,
.legal-content {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Scale typography for small screens */
@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    box-shadow: 0 8px 20px rgba(67, 56, 202, 0.12);
    transition: transform .12s ease, box-shadow .12s ease;
}


.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(67, 56, 202, 0.18);
}

.btn-primary:focus {
    box-shadow: var(--focus-ring);
    outline: none;
}

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

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    font-size: 0,75rem;
}

@media (max-width: 768px) {
    .btn-sm {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
}
/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh !important;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    margin: 0;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 70%;
    animation-delay: 4s;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards */
.service-card,
.product-card,
.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:hover,
.product-card:hover,
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card::before,
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before,
.product-card:hover::before {
    left: 100%;
}

.service-icon,
.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-card h3,
.product-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p,
.product-card p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}


.service-features {
    margin-top: 40px !important;
}
.service-features ul {
    margin-top: 20px !important;
}

.service-features,
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-features span,
.product-features span {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.service-price,
.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Background Variations */
.bg-gradient {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    transition: var(--transition-base);
}

.feature-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .feature-item {
        padding: 0.5rem;
    }
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-right: 1.5rem; */
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-content p {
    color: var(--text-muted);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

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

/* Footer */
.footer {
    background-color: #090914;
    border-top: 1px solid var(--border-primary);
    padding: 3rem 0 1rem 0;
}

.footer h5 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer h6 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-base);
}
.hover a:hover {
    color: var(--primary-color) !important;
}


.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary-color) !important;
    color: var(--text-primary) !important;
    transform: translateY(-2px);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 1rem;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    accent-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-primary);
}

.table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.table-hover tbody tr:hover {
    background: var(--bg-glass);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--info-color);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius-full);
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .navbar-toggler {
        display: block;
    }

    /* Use Bootstrap's collapse, don't hide .navbar-nav directly */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-primary);
        padding: 1rem;
    }

    /* Explicit display rules for collapse */
    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-collapse.collapse.show {
        display: block !important;
    }

    .navbar-collapse .navbar-nav {
        flex-direction: column;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border-primary);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon, .feature-content {
        margin: 0 auto 1rem auto;
    }

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

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-description {
        font-size: 1.125rem;
    }

    .service-card,
    .product-card {
        padding: 1.5rem;
    }

    .service-icon,
    .product-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}
.text-center h5 {
    color: var(--bg-primary) ;
}


.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.d-inline-block {
    display: inline-block;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: flex-start;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: var(--spacing-xs);
}

.p-2 {
    padding: var(--spacing-sm);
}

.p-3 {
    padding: var(--spacing-md);
}

.p-4 {
    padding: var(--spacing-lg);
}

.p-5 {
    padding: var(--spacing-xl);
}

.py-1 {
    padding-top: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
}

.py-2 {
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.py-3 {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.py-4 {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.py-5 {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

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

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-info {
    color: var(--info-color);
}

/* Loading States */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* Focus styles for accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}







     /* داش بورض  */
    .dashboard-page {
        background: var(--bg-primary);
        min-height: 100vh;
        padding-top: 100px;
    }

    .dashboard-header {
        background: var(--bg-glass);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-primary);
        border-radius: var(--radius-lg);
        padding: 3rem;
    }

    .dashboard-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .dashboard-subtitle {
        font-size: 1.1rem;
        color: var(--text-muted);
        margin: 0;
    }

    .stat-card {
        background: var(--bg-glass);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-primary);
        border-radius: var(--radius-lg);
        padding: 2rem;
        text-align: center;
        height: 100%;
    }

    .stat-card .stat-icon i {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

    .stat-card .stat-content h4 {
        font-size: 2rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .dashboard-card {
        background: var(--bg-glass);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-primary);
        border-radius: var(--radius-lg);
    }

    .dashboard-card .card-header {
        background: none;
        border-bottom: 1px solid var(--border-primary);
        padding: 1.5rem;
        display: flex;
        justify-content: between;
        align-items: center;
    }

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

    .profile-section {
        display: flex;
        align-items: center;
        text-align: left;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
        color: white;
        font-size: 1.5rem;
        overflow: hidden;
    }

    /* Ensure the unified avatar image fills the circle */
    .profile-avatar img,
    .profile-avatar .profile-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid #ffffff14;
        display: block;
    }

    .profile-initial {
        font-weight: 700;
        font-size: 1.25rem;
    }

    .profile-info h6 {
        margin: 0;
        color: var(--text-primary);
    }

    .profile-info p {
        margin: 0.25rem 0 0 0;
        color: var(--text-muted);
    }

    .stat-mini {
        padding: 0.5rem 0;
    }

    .stat-mini strong {
        display: block;
        font-size: 1.25rem;
        color: var(--text-primary);
    }

    .stat-mini small {
        color: var(--text-muted);
        font-size: 0.75rem;
    }

    .empty-state {
        color: var(--text-muted);
    }

    .table {
        color: var(--text-primary);
    }

    .table th {
        border-color: var(--border-primary);
        background: var(--bg-secondary);
    }

    .table td {
        border-color: var(--border-primary);
    }

    .text-muted,
    .empty-state i,
    .empty-state h6 {
        color: var(--text-muted) !important;
    }

    @media (max-width: 768px) {
        .dashboard-title {
            font-size: 2rem;
        }

        .dashboard-header {
            padding: 2rem;
            text-align: center;
        }
    }
