/* Custom Styles */

/* Smooth transitions for HTMX swaps */
.htmx-swapping {
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
}

.htmx-settling {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

/* Loading indicator */
.htmx-request {
    position: relative;
}

.htmx-request::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Toast notifications */
#toast-container > div {
    animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
