:where([class^="ri-"])::before {
    content: "\f3c2";
}

.dark {
    color-scheme: dark;
}

.sidebar-transition {
    transition: transform 0.3s ease-in-out;
}

.modal-backdrop {
    backdrop-filter: blur(4px);
}

.table-row:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.dark .table-row:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.dark .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

@@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.custom-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    position: relative;
}

.dark .custom-checkbox {
    border-color: #4b5563;
    background-color: #374151;
}

.custom-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

    .custom-checkbox:checked::after {
        content: '?';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 0.75rem;
        font-weight: bold;
    }

.toggle-switch {
    width: 3rem;
    height: 1.5rem;
    background-color: #d1d5db;
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dark .toggle-switch {
    background-color: #4b5563;
}

.toggle-switch.active {
    background-color: #3b82f6;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active::after {
    transform: translateX(1.5rem);
}

/* Loading Start*/
@@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1.5s linear infinite;
}

.loading-circle {
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    animation: loading-progress 3s ease-in-out infinite;
}

@@keyframes loading-progress {
    0% {
        stroke-dashoffset: 126;
    }

    50% {
        stroke-dashoffset: 31.5;
    }

    100% {
        stroke-dashoffset: 126;
    }
}

.custom-switch {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dark .custom-switch {
    background-color: #4b5563;
}

.custom-switch.active {
    background-color: #3b82f6;
}

.dark .custom-switch.active {
    background-color: #3b82f6;
}

.custom-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark .custom-switch::after {
    background-color: #f9fafb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-switch.active::after {
    transform: translateX(1.5rem);
}
