

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-outline-primary:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}


.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}


.dropdown-menu {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    transform-origin: top;
    transition: opacity 0.18s ease, transform 0.18s ease;
    will-change: opacity, transform;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    transition: background-color 0.18s ease, color 0.18s ease;
}


.modal.fade .modal-dialog {
    transition: transform 0.25s ease-out;
}

.modal.show .modal-dialog {
    animation: scaleIn 0.25s ease-out;
}

.offcanvas {
    transition: transform 0.3s ease, visibility 0.3s ease;
    will-change: transform;
}

.offcanvas-backdrop {
    transition: opacity 0.25s ease;
}


.form-control,
.form-select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}


.table-hover tbody tr {
    transition: background-color 0.15s ease;
}


a {
    transition: color 0.15s ease;
}


.sidebar {
    transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar .nav-link {
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.sidebar .nav-link:hover {
    padding-left: 1.5rem;
}


.alert {
    animation: slideInDown 0.3s ease-out;
}

.alert.fade.show {
    animation: fadeIn 0.3s ease-out;
}


.badge {
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border,
.spinner-grow {
    animation: spin 0.75s linear infinite;
}


.app-shell__content {
    animation: fadeIn 0.4s ease-out;
}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

button:focus-visible,
a:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}


html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}


.stagger-item {
    animation: slideInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.stagger-item:nth-child(1) {
    animation-delay: 0.05s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.15s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.25s;
}

.stagger-item:nth-child(6) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(7) {
    animation-delay: 0.35s;
}

.stagger-item:nth-child(8) {
    animation-delay: 0.4s;
}


:root {
    --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-smooth: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-smooth: cubic-bezier(0.4, 0, 1, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
