body{overflow-x: hidden;}

.bg-green-600 {
    background-color: #008000;
}

.bg-green-700 {
    background-color: #006400;
}

.bg-green-800 {
    background-color: #004d00;
}

/* Delete button styles */
.bg-red-600 {
    background-color: #dc2626;
}

.bg-red-700 {
    background-color: #b91c1c;
}

.bg-red-800 {
    background-color: #991b1b;
}

.hover\:bg-red-500:hover {
    background-color: #ef4444;
}

.hover\:bg-red-700:hover {
    background-color: #b91c1c;
}

.active\:bg-red-800:active {
    background-color: #991b1b;
}

.table-actions button{
    width: 30px;
    margin: 10px;
}

/* Dark sidebar theme - Global styles */
.side-nav-dark {
    background-color: #1f2937 !important;
    color: white !important;
}

/* Ensure dark theme is applied regardless of page class */
.side-nav-dark,
html .side-nav-dark,
.light .side-nav-dark,
.dark .side-nav-dark {
    background-color: #1f2937 !important;
    color: white !important;
}

.side-nav-dark .menu-item-text {
    color: white !important;
}

.side-nav-dark .menu-item-icon {
    color: white !important;
}

.side-nav-dark .menu-item-link {
    color: white !important;
}

/* Additional specificity for menu items */
.side-nav-dark .menu-item,
.side-nav-dark .menu-item * {
    color: white !important;
}

/* Ensure menu items are visible */
.side-nav-dark .menu-item-link:hover {
    background-color: #374151 !important;
    color: white !important;
}

/* Active menu item styling - More specific selectors */
.side-nav-dark .menu-item.active .menu-item-link,
.side-nav-dark .menu-item[data-menu-item].active .menu-item-link,
.side-nav .menu-item.active .menu-item-link,
.side-nav-dark .menu-item.active .menu-item-link *,
.side-nav-dark .menu-item[data-menu-item].active .menu-item-link *,
.side-nav .menu-item.active .menu-item-link * {
    background-color: #3b82f6 !important;
    color: white !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3) !important;
    transform: none !important;
}

/* Additional specificity for menu item icons and text */
.side-nav-dark .menu-item.active .menu-item-icon,
.side-nav-dark .menu-item[data-menu-item].active .menu-item-icon,
.side-nav .menu-item.active .menu-item-icon {
    color: white !important;
}

.side-nav-dark .menu-item.active .menu-item-text,
.side-nav-dark .menu-item[data-menu-item].active .menu-item-text,
.side-nav .menu-item.active .menu-item-text {
    color: white !important;
}

/* Enhanced active state with transition */
.side-nav-dark .menu-item-link {
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
    margin: 2px 0 !important;
    padding: 8px 12px !important;
}

/* Hover effect for non-active items */
.side-nav-dark .menu-item:not(.active) .menu-item-link:hover {
    background-color: #374151 !important;
    color: white !important;
    transform: translateX(2px) !important;
}

.side-nav-dark .logo {
    border-bottom: 1px solid #374151 !important;
}

.side-taggg{
    position: absolute;
    left: 100vw;
    top: 0;
}

/* Side nav toggle button */
.side-nav-toggle-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-nav-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.side-nav-toggle-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.side-nav-header {
    position: relative;
}

/* Fix side navigation scrolling */
.side-nav-content {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

.side-nav-content::-webkit-scrollbar {
    width: 6px;
}

.side-nav-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.side-nav-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.side-nav-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* When collapsed, hide menu text and only show icons */
.side-nav.side-nav-collapsed {
    width: 70px !important;
    transition: width 0.3s ease;
}

.side-nav.side-nav-expand {
    max-width: 230px !important;
    transition: width 0.3s ease;
}

.side-nav.side-nav-collapsed .menu-item-text {
    display: none !important;
}

.side-nav.side-nav-collapsed .logo img {
    width: 50px !important;
    transition: width 0.3s ease;
}

.side-nav.side-nav-collapsed .side-nav-header .logo {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.side-nav.side-nav-collapsed .menu-item {
    justify-content: center !important;
}

.side-nav.side-nav-expand .logo img {
    width: 100px !important;
    transition: width 0.3s ease;
}