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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Sidebar collapse */
#layout-sidebar {
    transition: width 0.22s ease, opacity 0.18s ease;
}
body.sidebar-collapsed #layout-sidebar {
    width: 0 !important;
    opacity: 0;
    overflow: hidden !important;
    border-right-width: 0 !important;
    pointer-events: none;
}

.sidebar-toggle-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 200ms ease;
    cursor: pointer;
}
.sidebar-toggle-btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}
html.dark .sidebar-toggle-btn {
    background-color: #334155;
    color: #cbd5e1;
    border-color: #475569;
}
html.dark .sidebar-toggle-btn:hover {
    background-color: #475569;
    color: #f1f5f9;
}