
  .navbar {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
    margin-right: 1rem;
  }
  
  .nav-link {
    padding: 0.3rem 0.8rem !important;
    margin: 0;
    color: white !important;
    border-radius: 5px;
    transition: all 0.2s ease;
  }
  
  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--silver-light);
  }
  
  .dropdown-item {
    transition: all 0.2s ease;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem;
  }
  
  .dropdown-item:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-primary) !important;
  }
  
  .flag-icon {
    width: 1.2em;
    height: 1.2em;
  }

  /* Mobile adjustments */
  @media (max-width: 992px) {
    .navbar-brand span {
      font-size: 0.95rem;
    }
    
    .navbar-collapse {
      padding-top: 0.5rem;
    }
    
    .nav-item {
      margin-bottom: 0.3rem;
    }
    
    .d-flex.flex-nowrap.text-white {
      margin-top: 0.5rem;
      flex-direction: column;
      gap: 0.3rem;
    }
  }
    /* تنسيقات القائمة المنسدلة للغة */
  .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--silver-light);
  }
  
  .dropdown-item {
    transition: all 0.2s ease;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem;
  }
  
  .dropdown-item:hover {
    background-color: var(--accent-cyan) !important;
    color: var(--bg-primary) !important;
  }
  
  /* تنسيقات أزرار اللغة والإشعارات */
  .btn-outline-light {
    color: var(--text-primary) !important;
    border-color: var(--accent-cyan) !important;
    background-color: transparent !important;
  }
  
  .btn-outline-light:hover {
    background-color: var(--accent-cyan) !important;
    color: var(--bg-primary) !important;
    border-color: var(--accent-cyan) !important;
  }
  
  /* تنسيقات عامة */
  .flag-icon {
    width: 1.2em;
    height: 1.2em;
  }
  











  :root {
    /* Dark Mode Color Palette */
    --primary-blue: #00d4ff;
    --dark-blue: #0f3460;
    --light-blue: #1a1a2e;
    --silver: #8b8b9e;
    --silver-light: #2d2d44;
    --silver-dark: #6b6b7e;
    
    /* Dark Mode Backgrounds */
    --bg-primary: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252540;
    --bg-card: #1e1e2e;
    --bg-hover: #2d2d44;
    
    /* Dark Mode Text */
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0c0;
    --text-muted: #8b8b9e;
    
    /* Accent Colors */
    --accent-cyan: #00d4ff;
    --accent-purple: #7b2cbf;
    --accent-coral: #ff6b6b;
    --accent-gold: #ffd700;
  }
  
  body {
    background-color: var(--bg-primary);
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    color: var(--text-primary);
    padding-top: 70px; /* For fixed navbar */
  }

  /* Dark Mode Overrides for Bootstrap Classes */
  .bg-white, .bg-light {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
  }

  .text-dark, .text-black {
    color: var(--text-primary) !important;
  }

  .text-muted {
    color: white !important;
  }

  .border, .border-primary, .border-secondary {
    border-color: var(--silver-light) !important;
  }

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

  .table-bordered {
    border-color: var(--silver-light) !important;
  }

  .table thead th {
    background-color: var(--bg-tertiary) !important;
    color: var(--accent-cyan) !important;
    border-color: var(--silver-light) !important;
    font-weight: 600;
  }

  .table tbody tr {
    background-color: var(--bg-card) !important;
    border-color: var(--silver-light) !important;
    transition: background-color 0.2s ease;
  }

  .table tbody tr:hover {
    background-color: var(--bg-hover) !important;
  }

  .table td, .table th {
    border-color: var(--silver-light) !important;
    color: var(--text-primary) !important;
    vertical-align: middle;
    background-color: var(--bg-card) !important;
  }

  .table tbody td,
  .table tbody th {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
  }

  /* Table Primary Override for Dark Mode */
  .table-primary,
  .table-primary > *,
  .table-primary thead,
  .table-primary tbody,
  .table-primary tfoot {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
  }

  .table-primary thead th,
  .table-primary thead td,
  .table-primary thead tr th,
  .table-primary thead tr td {
    background-color: var(--bg-tertiary) !important;
    color: var(--accent-cyan) !important;
    border-color: var(--silver-light) !important;
  }

  .table-primary tbody,
  .table-primary tbody tr {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
  }

  .table-primary tbody tr:hover,
  .table-primary tbody tr:hover td {
    background-color: var(--bg-hover) !important;
    color: var(--text-primary) !important;
  }

  .table-primary tbody td,
  .table-primary tbody th,
  .table-primary td,
  .table-primary th {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--silver-light) !important;
  }

  .table-primary tbody tr td,
  .table-primary tbody tr th {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
  }

  /* Table Striped Override */
  .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
  }

  .table-striped tbody tr:nth-of-type(even) {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
  }

  .table-striped tbody tr:nth-of-type(odd) td,
  .table-striped tbody tr:nth-of-type(even) td {
    background-color: inherit !important;
    color: var(--text-primary) !important;
  }

  .form-control, .form-select {
    background-color: var(--bg-secondary) !important;
    border-color: var(--silver-light) !important;
    color: var(--text-primary) !important;
  }

  .form-control:focus, .form-select:focus {
    background-color: var(--bg-secondary) !important;
    border-color: var(--accent-cyan) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25) !important;
  }

  .form-label {
    color: var(--text-primary) !important;
  }

  .form-control-plaintext {
    color: var(--text-primary) !important;
  }

  .list-group-item {
    background-color: var(--bg-card) !important;
    border-color: var(--silver-light) !important;
    color: var(--text-primary) !important;
  }

  .list-group-item:hover {
    background-color: var(--bg-hover) !important;
  }

  .card {
    background-color: var(--bg-card) !important;
    border-color: var(--silver-light) !important;
    color: var(--text-primary) !important;
  }

  .card-header {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--silver-light) !important;
    color: var(--accent-cyan) !important;
  }

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

  .modal-content {
    background-color: var(--bg-card) !important;
    border-color: var(--silver-light) !important;
  }

  .modal-header {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--silver-light) !important;
    color: var(--text-primary) !important;
  }

  .modal-body {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
  }

  .modal-footer {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--silver-light) !important;
  }

  .btn-primary {
    background-color: var(--accent-cyan) !important;
    border-color: var(--accent-cyan) !important;
    color: var(--bg-primary) !important;
  }

  .btn-primary:hover {
    background-color: var(--accent-purple) !important;
    border-color: var(--accent-purple) !important;
    color: var(--text-primary) !important;
  }

  .btn-outline-primary {
    border-color: var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
  }

  .btn-outline-primary:hover {
    background-color: var(--accent-cyan) !important;
    border-color: var(--accent-cyan) !important;
    color: var(--bg-primary) !important;
  }

  .alert {
    border-color: var(--silver-light) !important;
  }

  .alert-info {
    background-color: rgba(0, 212, 255, 0.1) !important;
    border-color: var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
  }

  .alert-success {
    background-color: rgba(0, 255, 0, 0.1) !important;
    border-color: #00ff00 !important;
    color: #00ff00 !important;
  }

  .alert-warning {
    background-color: rgba(255, 215, 0, 0.1) !important;
    border-color: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
  }

  .alert-danger {
    background-color: rgba(255, 107, 107, 0.1) !important;
    border-color: var(--accent-coral) !important;
    color: var(--accent-coral) !important;
  }

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

  .badge.bg-warning {
    background-color: var(--accent-gold) !important;
    color: var(--bg-primary) !important;
  }

  .page-link {
    background-color: var(--bg-card) !important;
    border-color: var(--silver-light) !important;
    color: var(--accent-cyan) !important;
  }

  .page-link:hover {
    background-color: var(--bg-hover) !important;
    border-color: var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
  }

  .page-item.active .page-link {
    background-color: var(--accent-cyan) !important;
    border-color: var(--accent-cyan) !important;
    color: var(--bg-primary) !important;
  }

  .shadow, .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5) !important;
  }

  .shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.6) !important;
  }

  /* Links */
  a {
    color: var(--accent-cyan);
    text-decoration: none;
  }

  a:hover {
    color: var(--accent-purple);
  }

  /* Input Groups */
  .input-group-text {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--silver-light) !important;
    color: var(--text-primary) !important;
  }

  /* Nav Tabs */
  .nav-tabs {
    border-color: var(--silver-light) !important;
  }

  .nav-tabs .nav-link {
    color: var(--text-secondary) !important;
    background-color: var(--bg-card) !important;
    border-color: var(--silver-light) !important;
  }

  .nav-tabs .nav-link.active {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--silver-light) var(--silver-light) var(--bg-tertiary) !important;
    color: var(--accent-cyan) !important;
  }

  /* Dropdown Divider */
  .dropdown-divider {
    border-color: var(--silver-light) !important;
    opacity: 0.5;
  }

  /* Custom Form Classes */
  .my-form, .my-content {
    background-color: var(--bg-card) !important;
    border-color: var(--accent-cyan) !important;
    color: var(--text-primary) !important;
  }

  /* Text Colors */
  h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
  }

  p, span, div {
    color: var(--text-primary);
  }

  /* Strong/Bold Text */
  strong, b {
    color: var(--accent-cyan);
  }

  /* Code Blocks */
  code, pre {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--silver-light) !important;
  }

  /* Blockquote */
  blockquote {
    border-left-color: var(--accent-cyan) !important;
    color: var(--text-secondary) !important;
  }

  /* Hero Section */
  .hero-section {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 50%, #0f0f1e 100%);
    color: var(--text-primary);
    padding: 7rem 1rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -70px; /* Compensate for navbar */
  }
  
  .hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('{% static "img/hexagon-pattern.png" %}') center/cover;
    opacity: 0.1;
  }

  .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    position: relative;
  }

  /* Carousel */
  .main-carousel {
    margin-top: -50px;
    z-index: 10;
    position: relative;
  }
  
  .carousel-item {
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.8);
  }
  
  .carousel-caption {
    background: rgba(15, 52, 96, 0.85);
    border-radius: 10px;
    padding: 20px;
    bottom: 30%;
    border: 1px solid var(--accent-cyan);
  }
  
  .carousel-control-prev, 
  .carousel-control-next {
    width: 5%;
    filter: brightness(0.8);
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    background-color: rgba(0, 212, 255, 0.3);
    border-radius: 50%;
  }

  .carousel-control-prev:hover .carousel-control-prev-icon,
  .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 212, 255, 0.6);
  }


      .title-divider {
        display: block;
        width: 70px;
        height: 3px;
        background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
        margin: 10px auto 0;
    }
    
    .product-card {
        transition: all 0.3s ease;
        border-radius: 10px;
    }
    
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    }
    
    .product-img-container {
        background-color: var(--bg-secondary);
    }





  /* About Section */
  .about-section {
    background-color: var(--bg-card);
    border-radius: 15px;
    padding: 3rem;
    margin: 3rem auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--silver-light);
    position: relative;
    overflow: hidden;
  }
  
  .about-section::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: url('{% static "img/img4.jpg" %}') center/contain;
    opacity: 0.05;
    z-index: 0;
  }
  
  .about-content {
    position: relative;
    z-index: 1;
  }
  
  .section-title {
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
  }
  
  .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    border-radius: 3px;
  }

  /* Products Section */
  .products-section {
    padding: 3rem 0;
    background: url('{% static "img/img4.jpg" %}') bottom/cover no-repeat;
    background-size: 100% auto;
    background-position-y: bottom;
  }
  
  .product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    margin-top: 20px;
    height: 100%;
    position: relative;
  }
  
  .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
    border-color: var(--accent-cyan);
  }
  
  .product-card img {
    height: 180px;
    object-fit: contain;
    padding: 15px;
    background: var(--bg-secondary);
  }
  
  .product-card .card-body {
    padding: 1.5rem;
    border-top: 1px solid var(--silver-light);
    background: var(--bg-card);
  }
  
  .product-card .card-title {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .product-card .card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }

  /* Features Section */
  .features-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
  }
  
  .feature-box {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--silver-light);
  }
  
  .feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    border-color: var(--accent-cyan);
  }
  
  .feature-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
  }
  
  .feature-title {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .feature-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
  }

  /* CTA Section */
  .cta-section {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 50%, #0f0f1e 100%);
    color: var(--text-primary);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--accent-cyan);
  }
  
  .cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('{% static "img/dots-pattern-white.png" %}') center/contain;
    opacity: 0.1;
  }
  
  .cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
  }
  
  .cta-btn {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: none;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    position: relative;
    z-index: 1;
  }
  
  .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
    background: var(--accent-purple);
    color: var(--text-primary);
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .hero-title {
      font-size: 2.5rem;
    }
    
    .hero-subtitle {
      font-size: 1.2rem;
    }
    
    .carousel-item {
      height: 300px;
    }
    
    .about-section {
      padding: 2rem;
    }
  }














  /* Footer Styles */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

.btn-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: var(--bg-tertiary);
    color: var(--accent-cyan);
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    background-color: var(--accent-cyan);
    color: var(--bg-primary);
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Payment Methods */
.payment-method {
    height: 25px;
    width: auto;
    filter: grayscale(100%) brightness(150%);
    transition: all 0.3s ease;
}

.payment-method:hover {
    filter: grayscale(0%) brightness(100%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-logo-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo-container img {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    .footer-links, .footer-contact {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-social {
        justify-content: center !important;
    }
    
    .payment-methods {
        justify-content: center !important;
    }
}



/* index latest cards*/
    .unavailable-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        color: var(--text-primary);
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
    }
    
    .card {
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4) !important;
        border-color: var(--accent-cyan) !important;
    }
    
    .card-title a {
        color: var(--accent-cyan) !important;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .card-title a:hover {
        color: var(--accent-purple) !important;
    }
    
    /* Disable hover effects for unavailable products */
    .card:has(.unavailable-overlay) {
        cursor: default;
    }
    
    .card:has(.unavailable-overlay):hover {
        transform: none;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3) !important;
        border-color: var(--silver-light) !important;
    }
    
    /* Product card specific styles */
    .product-card .card img {
        background-color: var(--bg-secondary);
    }

/* ============================================
   SIDEBAR STYLES - Fixed and Independent
   ============================================ */

/* Sidebar Container - Fixed on right side, independent from content */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 50%, #0f0f1e 100%);
    box-shadow: -2px 0 25px rgba(0, 212, 255, 0.3);
    border-left: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1rem 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.sidebar-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
}

.sidebar-brand:hover {
    opacity: 0.8;
    color: var(--text-primary);
}

.sidebar-logo {
    height: 35px;
    width: auto;
    margin-left: 0.75rem;
    object-fit: contain;
}

.sidebar-brand-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.sidebar-toggle-btn:hover {
    color: var(--accent-cyan);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin: 0.25rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border-right: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border-right-color: var(--accent-cyan);
}

.sidebar-link.active {
    background-color: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
    border-right-color: var(--accent-cyan);
    font-weight: 600;
}

.sidebar-icon {
    width: 20px;
    text-align: center;
    margin-left: 0.75rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar-text {
    flex: 1;
}

.sidebar-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-right: auto;
    flex-shrink: 0;
}

.sidebar-dropdown .sidebar-link[aria-expanded="true"] .sidebar-arrow {
    transform: rotate(180deg);
}

/* Sidebar Submenu */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    border-right: 2px solid var(--accent-cyan);
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem 0.75rem 3rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-submenu-link:hover {
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    padding-right: 1.5rem;
}

.sidebar-submenu-header {
    padding: 0.75rem 1.25rem 0.5rem 3rem;
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}

.sidebar-divider {
    margin: 0.5rem 1.25rem;
    border-color: rgba(0, 212, 255, 0.2);
    opacity: 0.5;
}

/* Sidebar Badge */
.sidebar-badge {
    background-color: var(--accent-coral);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: auto;
    flex-shrink: 0;
}

/* Sidebar Balance Info (in header) */
.sidebar-balance-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    margin-top: 0.75rem;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.balance-value {
    font-weight: 600;
    font-size: 1rem;
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 50%, #0f0f1e 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.05);
}

/* Main Content - Completely independent from sidebar */
body {
    padding: 0 !important;
    margin: 0 !important;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }
}

/* Scrollbar Styling for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}
