.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.blur-content {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

/* Scrollbar globalny */
::-webkit-scrollbar {
    width: 8px;
    height: 8px; /* Dla scrolla poziomego w tabelach */
}

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

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

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

/* Ciemniejszy scrollbar dla ciemnego paska bocznego */
.custom-scrollbar::-webkit-scrollbar-track {
    background: #1e293b; /* slate-800 */
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569; /* slate-600 */
}

/* Toggle Switch */
.toggle-checkbox:checked {
    right: 0;
    border-color: #4f46e5;
}

.toggle-checkbox:checked + .toggle-label {
    background-color: #4f46e5;
}