        :root {
            --sidebar-width: 16rem;
            --header-height: 3.5rem; /* Add header height variable */
        }
        
        /* Main content styles */
        .main-content {
            margin-left: var(--sidebar-width);
            width: calc(100% - var(--sidebar-width));
            min-height: 100vh;
            transition: all 0.3s ease;
            padding-top: var(--header-height);
            background: #f3f4f6;
        }
        
        /* Sidebar styles */
        #sidebar {
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            width: var(--sidebar-width);
            z-index: 20;
            overflow-y: auto;
            transition: transform 0.3s ease-in-out;
        }
        
        /* Mobile responsive styles */
        @media (max-width: 767px) {
            .fixed.top-0 {
                z-index: 50;
            }

            .main-content {
                margin-left: 0;
                width: 100%;
                padding-top: var(--header-height);
                transition: transform 0.3s ease-in-out;
                position: relative;
                z-index: 20;
                background: #fff;
                min-height: 100vh;
            }

            .search-form {
                display: flex;
                gap: 1rem;
                align-items: flex-end;
            }
            .search-form .form-control {
                margin-bottom: 0;
                flex: 1;
            }
        }
        
        /* Fix for RTL alignment */
        [dir="rtl"] .rtl\:text-right {
            text-align: left !important;
        }
        
        [dir="rtl"] .rtl\:text-left {
            text-align: right !important;
        }
        
        /* Fix for dropdown menus in RTL */
        [dir="rtl"] .dropdown-end .dropdown-content {
            right: auto !important;
            left: 0 !important;
        }
        
        /* Fix for sidebar in RTL */
        [dir="rtl"] .sidebar {
            transform: translateX(100%);
        }
        
        [dir="rtl"] .sidebar.active {
            transform: translateX(0);
        }

        .dataTables_wrapper .dataTables_filter input {
            margin-left: 0.5em;
            display: inline-block;
            width: auto;
        }
        .dataTables_wrapper .dataTables_length select {
            width: auto;
            display: inline-block;
            margin: 0 0.5em;
        }
        .progress {
            height: 1.5rem;
            margin-bottom: 0;
        }
        .progress-bar {
            line-height: 1.5rem;
        }
        .card-set-stats {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        .stat-card {
            background: #fff;
            border-radius: 0.5rem;
            padding: 1rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            border-left: 4px solid #3490dc;
        }
        .stat-card h3 {
            font-size: 0.875rem;
            color: #6b7280;
            margin: 0 0 0.5rem 0;
            font-weight: 500;
        }
        .stat-card p {
            font-size: 1.5rem;
            font-weight: 600;
            margin: 0;
            color: #111827;
        }
        .stat-card .stat-detail {
            font-size: 0.875rem;
            color: #6b7280;
            margin-top: 0.25rem;
        }
        .transaction-in { color: #10B981; }
        .transaction-out { color: #EF4444; }
        .search-form .form-control { margin-bottom: 1rem; }
        .search-card {
            transition: all 0.3s ease;
        }
        .search-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }
        .status-badge {
            padding: 0.25rem 0.5rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .status-active {
            background-color: #e6f7ee;
            color: #10b981;
        }
        .status-inactive {
            background-color: #fef3f2;
            color: #f04438;
        }
        .status-used {
            background-color: #e6f4ff;
            color: #1890ff;
        }
        .status-unused {
            background-color: #f5f5f5;
            color: #8c8c8c;
        }
        .filter-section {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        .form-group {
            margin-bottom: 10px;
        }
        .toggle-container {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        .toggle-label {
            margin-left: 10px;
            font-weight: normal;
        }
        .disabled {
            opacity: 0.5;
            pointer-events: none;
        }

        /* Fix for dropdown menus in RTL */
        [dir="rtl"] .dropdown-end .dropdown-content {
            right: auto !important;
            left: 0 !important;
        }
        
        /* Fix for sidebar in RTL */
        [dir="rtl"] .sidebar {
            transform: translateX(100%);
        }
        
        [dir="rtl"] .sidebar.active {
            transform: translateX(0);
        }