:root {
    /* Primary Colors */
    --primary: 45 100% 56%;      /* #FFC107 (Yellow) */
    --primary-dark: 33 100% 50%; /* #FF9800 (Orange) */
    --primary-light: 45 100% 97%;/* #FFF8E1 (Light Yellow) */
    
    /* Secondary Colors */
    --secondary: 0 0% 7%;        /* #111111 (Black) */
    --secondary-light: 0 0% 13%; /* #222222 (Dark Gray) */
    
    /* Accent Colors */
    --success: 142 76% 36%;      /* #28A745 */
    --warning: 45 100% 51%;      /* #FFC107 */
    --danger: 14 100% 57%;       /* #FF5722 (Orange Red) */
    --info: 24 100% 50%;         /* #FFA726 (Orange) */
    
    /* Neutral Colors */
    --background: 45 100% 98%;   /* #FFFDE7 (Very Light Yellow) */
    --surface: 0 0% 100%;        /* #FFFFFF */
    --text-primary: 0 0% 7%;     /* #111111 (Black) */
    --text-secondary: 0 0% 40%;  /* #666666 (Dark Gray) */
    --border: 45 100% 90%;       /* #FFF3CD (Light Yellow Border) */
    
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-bg: 45 100% 92%;   /* #FFF8E1 (Very Light Yellow) */
    --sidebar-bg-gradient: linear-gradient(135deg, hsl(45 100% 97%), hsl(33 100% 90%));
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

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

body {
    background-color: hsl(var(--background));
    color: hsl(var(--text-primary));
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    transition: padding-left var(--transition-normal);
}

/* Remove .forsidebar padding-left */
@media (min-width: 992px) {
    .forsidebar {
        /* padding-left: var(--sidebar-width); */
    }
}

/* Layout for right-content (navbar + main) */
.right-content {
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* On large screens, push right-content to the right of sidebar */
    transition: margin-left var(--transition-normal);
}
@media (min-width: 992px) {
    .right-content {
        margin-left: var(--sidebar-width);
    }
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(90deg, hsl(45 100% 97%), hsl(33 100% 90%)) !important;
    left: 0;
    right: 0;
    width: 100%;
    margin-left: 0;
    z-index: 1030;
    /* Remove box-shadow if overlapping */
    /* box-shadow: var(--shadow); */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.profile-dropdown {
    color: hsl(var(--text-secondary)) !important;
    background: transparent !important;
    border: 2px solid hsla(45, 100%, 80%, 0.7) !important;
    transition: all var(--transition-fast);
}

.profile-dropdown:hover,
.profile-dropdown:focus {
    color: hsl(var(--primary-dark)) !important;
    background-color: hsla(45, 100%, 80%, 0.7) !important;
    border-color: hsla(45, 100%, 80%, 1) !important;
}

.animate-dropdown {
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    padding: 0;
}

.show.animate-dropdown {
    opacity: 1;
    transform: translateY(0);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100dvh;
    background: var(--sidebar-bg-gradient);
    box-shadow: var(--shadow-lg);
    z-index: 10211;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    
    padding-top: 0; /* Remove padding-top for full height */
}
.sidbarTop{
    height: 15dvh;
}
.sidebar .sidebar-nav{
overflow-y: auto;
height: 85dvh;
display: flex;
flex-direction: column;
}
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }
}

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

.sidebar-header {
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header img {
    width: 56px !important;
    height: 56px !important;
    max-width: 100%;
    margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    .sidebar-header img {
        width: 40px !important;
        height: 40px !important;
    }
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar .nav-link {
    color: hsl(var(--text-secondary)); /* dark text for inactive items */
    padding: 0.75rem 1.5rem;
    margin: 0.25rem 1rem;
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    text-decoration: none;
    border: none;
    background: none;
    width: calc(100% - 2rem);
}

.sidebar .nav-link:hover {
    background-image: linear-gradient(135deg, #ffc107, #0dcaf0);
    color: hsl(0deg 0% 100%);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background-image: linear-gradient(135deg, #ffc107, #0dcaf0);
    color: hsl(0deg 0% 100%);
    box-shadow
: var(--shadow-sm);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* Accordion Styles */
.accordion-toggle {
    cursor: pointer;
}

.accordion-arrow {
    transition: transform var(--transition-normal);
    font-size: 0.875rem;
}

.accordion-toggle[aria-expanded="true"] .accordion-arrow {
    transform: rotate(90deg);
}

.accordion-content {
    transition: all var(--transition-normal);
}

.sub-link {
    font-size: 0.9rem;
    margin: 0.125rem 0;
    padding: 0.5rem 1rem;
}

.sub-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

/* Main Content */
.main-content {
    padding: 2rem 1rem;
    min-height: calc(100vh - 76px);
   
}
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0.5rem;
    }
}

.page-header {
    margin-bottom: 2rem;
}
#transactionTab .nav-link.active, #commissionTab .nav-link.active{
    color: #ff8c00;
}
#transactionTab .nav-link, #commissionTab .nav-link {
    color: #666;
}
.page-title {
    color: hsl(var(--text-primary));
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.page-subtitle {
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Card Animations */
.animate-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.animate-card:nth-child(1) { animation-delay: 0.1s; }
.animate-card:nth-child(2) { animation-delay: 0.2s; }
.animate-card:nth-child(3) { animation-delay: 0.3s; }
.animate-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Card Styles */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    background-color: hsl(var(--surface));
}

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

.card-header {
    background-color: transparent;
    border-bottom: 1px solid hsl(var(--border));
    padding: 1.5rem;
}

.card-title {
    color: hsl(var(--text-primary));
    font-weight: 600;
    margin-bottom: 0;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, hsl(var(--surface)), hsl(var(--primary-light)));
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all var(--transition-fast);
}

.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex
;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    font-size: 18px;
}

.stat-icon.bg-primary { background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark))); }
.stat-icon.bg-success { background: linear-gradient(135deg, hsl(var(--success)), hsl(142 76% 30%)); }
.stat-icon.bg-warning { background: linear-gradient(135deg, hsl(var(--warning)), hsl(45 100% 45%)); }
.stat-icon.bg-info { background: linear-gradient(135deg, hsl(var(--info)), hsl(188 78% 35%)); }

.stat-number {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: hsl(var(--text-primary));
}

.stat-label {
    color: hsl(var(--text-secondary));
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Chart Cards */
.chart-card .card-body {
    padding: 1.5rem;
}

/* Data Table */
.data-table {
    background-color: hsl(var(--surface));
}

.data-table th {
    background-color: hsl(var(--primary-light));
    color: hsl(var(--text-primary));
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.data-table td {
    padding: 1rem;
    border-color: hsl(var(--border));
    vertical-align: middle;
}

.data-table tbody tr {
    transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
    background-color: hsl(var(--primary-light));
    transform: scale(1.01);
}

/* Search Container */
.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--text-secondary));
}

/* Buttons */
.btn-custom {
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-custom::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 var(--transition-normal);
}

.btn-custom:hover::before {
    left: 100%;
}

.btn-primary.btn-custom {
    background: linear-gradient(135deg, #ffc71f, #ff8c00);
    box-shadow: var(--shadow-sm);
}

.btn-primary.btn-custom:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-success.btn-custom {
    background: linear-gradient(135deg, hsl(var(--success)), hsl(142 76% 30%));
}

.btn-danger.btn-custom {
    background: linear-gradient(135deg, hsl(var(--danger)), hsl(354 70% 48%));
}

.btn-warning.btn-custom {
    background: linear-gradient(135deg, hsl(var(--warning)), hsl(45 100% 45%));
    color: hsl(var(--text-primary));
}



/* Badges */
.badge {
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
}

.activity-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 38px;
    width: 2px;
    height: calc(100% + 0.5rem);
    background-color: hsl(var(--border));
}

.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    margin-right: 1rem;
    z-index: 1;
    position: relative;
}

.activity-content h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* Pagination */
.pagination {
    --bs-pagination-border-radius: 0.5rem;
    --bs-pagination-color: hsl(var(--primary));
    --bs-pagination-hover-bg: hsl(var(--primary-light));
    --bs-pagination-active-bg: hsl(var(--primary));
    --bs-pagination-active-border-color: hsl(var(--primary));
}

/* Form Styles */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 0.2rem hsla(var(--primary), 0.25);
}

.form-select {
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
}

/* Modal Styles */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid hsl(var(--border));
}

.modal-footer {
    border-top: 1px solid hsl(var(--border));
}

/* Loading Spinner */
#loadingSpinner {
    display: none;
}
#sidebarToggle{
    background:linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)))
}
.sidbarTop {
    padding: 20px;
    display: flex
;
    justify-content: center;
    border-bottom: 1px solid #cfcfcf;
}
/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0.5rem;
        
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand span {
        display: none;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .btn-custom {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: hsl(var(--text-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary));
}

/* Dropdown menu color for better visibility */
.dropdown-menu {
    background-color: hsl(var(--surface));
    color: hsl(var(--text-primary));
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    border: 1px solid hsl(var(--border));
}

.dropdown-item {
    color: hsl(var(--text-secondary));
    transition: background 0.2s, color 0.2s;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: hsla(45, 100%, 80%, 0.7);
    color: hsl(var(--primary-dark));
}
 <style>
        /* Additional login-specific styles */
        body {
            background: hsl(var(--background));
            min-height: 100vh;
        }
        .login-container {
            min-height: 100vh;
            display: flex;
            align-items: stretch;
        }
        .login-offer {
            background: linear-gradient(120deg, #e3e1ff 0%, #fff8e1 100%);
            padding: 2.5rem 2rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .login-offer h2 {
            font-weight: 800;
            color: #2d217c;
            font-size: 2.1rem;
            margin-bottom: 1rem;
            letter-spacing: 1px;
        }
        .login-offer .earn-text {
            font-size: 1.5rem;
            font-weight: 700;
            color: #ff007a;
        }
        .login-offer .offer-cards {
            display: flex;
            gap: 1.5rem;
            margin: 2rem 0 1.5rem 0;
            justify-content: center; /* center horizontally */
            align-items: center;
            flex-wrap: wrap; /* allow wrap on small screens */
        }
        .login-offer .card-img {
            width: 140px;
            border-radius: 0.75rem;
            box-shadow: 0 4px 16px rgba(44,33,124,0.09);
            margin-bottom: 0.5rem;
        }
        .login-offer .special-price {
            background: hsl(var(--primary));
            color: #fff;
            font-weight: 700;
            border-radius: 1rem;
            padding: 0.25rem 1rem;
            margin-left: 0.5rem;
            font-size: 1rem;
            display: inline-block;
        }
        .login-offer .customer-benefits {
            font-size: 1rem;
            color: hsl(var(--text-secondary));
            margin-bottom: 0.5rem;
        }
        .login-offer .refer-btn {
            background: hsl(var(--primary-dark));
            color: #fff;
            border-radius: 1.2rem;
            padding: 0.5rem 1.5rem;
            font-weight: 600;
            border: none;
            margin-top: 1.5rem;
        }
        .login-form-side {
            background: #fff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 2rem 2rem 2rem 2rem;
            min-width: 340px;
            width: 100%;
            max-width: 420px;
            margin-left: auto;
            box-shadow: 0 0 32px 0 rgba(44,33,124,0.05);
        }
        .login-form-side .logo-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }
        .login-form-side .logo-row img {
            height: 36px;
        }
        .login-form-side .social-icons {
            margin-left: auto;
            display: flex;
            gap: 0.5rem;
        }
        .login-form-side .social-icons a {
            color: hsl(var(--primary-dark));
            font-size: 1.2rem;
        }
        .login-form-side .support-row {
            font-size: 0.95rem;
            color: hsl(var(--text-secondary));
            margin-bottom: 1.5rem;
            display: flex;
            gap: 1.5rem;
            align-items: center;
        }
        .login-form-side .login-box {
            background: #fff;
            border-radius: 1rem;
            box-shadow: 0 0 16px 0 rgba(44,33,124,0.07);
            padding: 2rem 1.5rem 1.5rem 1.5rem;
        }
        .login-form-side .login-title {
            font-weight: 700;
            font-size: 1.3rem;
            margin-bottom: 1.2rem;
            text-align: center;
            color: hsl(var(--text-primary));
        }
        .login-form-side .form-control, .login-form-side .form-label {
            font-size: 1rem;
        }
        .login-form-side .form-label {
            font-weight: 500;
            color: hsl(var(--text-secondary));
        }
        .captcha-box {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        .captcha-img {
            background: #f2f2f2;
            border-radius: 0.5rem;
            padding: 0.5rem 1.2rem;
            font-weight: 700;
            font-size: 1.1rem;
            letter-spacing: 2px;
            color: #222;
            user-select: none;
        }
        .captcha-refresh {
            border: none;
            background: transparent;
            color: hsl(var(--primary-dark));
            font-size: 1.1rem;
            cursor: pointer;
        }
        .qr-section {
            text-align: center;
            margin-top: 1.5rem;
        }
        .qr-section img {
            width: 90px;
            height: 90px;
            margin-bottom: 0.5rem;
        }
        .qr-section .qr-label {
            font-size: 1rem;
            color: hsl(var(--text-secondary));
        }
        @media (max-width: 991px) {
            .login-container {
                flex-direction: column;
            }
            .login-offer {
                min-height: 320px;
                padding: 2rem 1rem;
            }
            .login-form-side {
                margin: 0 auto;
                box-shadow: none;
                max-width: 100%;
            }
        }
        @media (max-width: 600px) {
            .login-offer {
                padding: 1rem 0.5rem;
            }
            .login-form-side {
                padding: 1rem 0.5rem;
            }
            .login-form-side .login-box {
                padding: 1rem 0.5rem;
            }
        }
@media (max-width: 991.98px) {
    .navbar-brand img.d-none.d-md-inline {
        display: none !important;
    }
    .navbar-brand img.d-inline.d-md-none {
        display: inline !important;
    }
}
@media (min-width: 992px) {
    .navbar-brand img.d-inline.d-md-none {
        display: none !important;
    }
    .navbar-brand img.d-none.d-md-inline {
        display: inline !important;
    }
}

/* Shortcut grid: equal height cards */
.shortcut-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.shortcut-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}