/* DeskEagle Custom Styles */

/* Calendar cell hover effects */
.calendar-cell {
    transition: all 0.15s ease-in-out;
}

.calendar-cell:not(.past):not(.full):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* 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;
    }
}

/* Modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .calendar-cell {
        min-height: 80px;
        padding: 0.5rem;
    }

    .calendar-cell .text-lg {
        font-size: 1rem;
    }
}
