        body,
        html {
            height: 100%;
            margin: 0;
            overflow: hidden;
            font-family: 'Oxygen', sans-serif;
        }
        
        /* Appmenu navbar height adjustment */
        .app-navbar {
            height: 40px;
            min-height: 40px;
        }

        aside {
            background-color: #f5ebf3;
            color: #55298a;
            min-height: calc(100vh - 40px);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 1rem 0;
        }
        
        aside .nav-link {
            color: #80689c;
            font-weight: 500;
            border-radius: 0;
            padding: 0.75rem 1rem;
        }
        
        aside .nav-link.active,
        aside .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        main {
            background-color: #f8f9fa;
            min-height: calc(100vh - 40px);
            overflow-y: auto;
            padding: 1rem;
        }
        
        .toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem 1rem;
        }
        
        .toolbar .nav-link {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

               /* Toolbar styling */
        .toolbar {
            background-color: #fff;
            border-bottom: 1px solid #dee2e6;
            position: relative;
            overflow: visible !important;
        }

        /* Ensure dropdowns appear outside toolbar */
        .toolbar .dropdown {
            position: static;
        }

        .toolbar .dropdown-menu {
            position: absolute;
            z-index: 1050;
        }

        /* Pending changes visual indicators */
        .pending-create {
            background-color: #d1f4d1 !important;
        }

        .pending-update {
            background-color: #fff3cd !important;
        }

        .pending-delete {
            background-color: #f8d7da !important;
            text-decoration: line-through;
            opacity: 0.7;
        }

        /* Resource actions on hover */
        .resource-id-cell {
            position: relative;
        }

        .resource-actions {
            display: none;
            align-items: center;
            gap: 4px;
        }

        .resource-actions i {
            font-size: 16px;
        }

        tr:hover .resource-actions {
            display: flex !important;
        }

        /* Keep resource actions visible when checkbox is checked */
        .resource-actions:has(.resource-checkbox:checked) {
            display: flex !important;
        }

        /* Sticky table header */
        .gridjs-wrapper {
            overflow: auto;
        }

        .gridjs-head {
            position: sticky !important;
            top: 0 !important;
            z-index: 10 !important;
        }

        .gridjs-thead {
            position: sticky !important;
            top: 0 !important;
            z-index: 10 !important;
        }

        /* Badge pills */
        .badge {
            font-size: 12px;
            font-weight: 500;
        }

        /* Filter dropdown styling */
        #filterDropdown {
            max-height: 80vh;
            overflow-y: auto;
        }

        #filterDropdown .dropdown-menu {
            --bs-dropdown-min-width: 600px;
        }

        /* Prevent dropdown from closing on click inside */
        .dropdown-menu.show {
            display: block;
        }

        /* Cell selection styling */
        .gridjs-td.selected-cell {
            outline: 2px solid #0d6efd !important;
            outline-offset: -2px;
            background-color: #e7f1ff !important;
            position: relative;
            z-index: 1;
        }

        .gridjs-td {
            cursor: cell; /* Spreadsheet-like cursor */
            position: relative;
            user-select: none; /* Prevents text selection during multi-select drag */
        }

        /* Fixed New Record button */
        #btn-new-resource {
            position: fixed;
            bottom: 90px;
            left: 220px;
            z-index: 1000;
            background-color: white !important;
            color: #0d6efd !important;
            border: 1px solid #dee2e6;
            padding: 0.375rem 0.75rem;
            font-weight: 500;
        }

        #btn-new-resource:hover {
            background-color: #f8f9fa !important;
            border-color: #0d6efd;
        }

        #btn-new-resource i {
            color: #0d6efd;
        }

        /* Row counter at bottom */
        #row-counter {
            position: fixed;
            bottom: 5px;
            left: 220px;
            z-index: 999;
            font-size: 12px;
            color: #6c757d;
            background-color: #f8f9fa;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }

        /* Extend grid container height */
        #grid-container {
            height: calc(100vh - 140px) !important;
        }

        #grid-container .gridjs-wrapper {
            height: 100%;
        }