/* Icon styles */
.icon-heart-filled {
    font-variation-settings: 'FILL' 1, 'wght' 700;
    color: crimson;
    font-size: 32px;
}
.icon-heart-filled-big {
    font-variation-settings: 'FILL' 1, 'wght' 700;
    color: crimson;
    font-size: 68px;
}
.icon-navbar {
    font-variation-settings: 'FILL' 1, 'wght' 700;
    color: #94a3b8;
    font-size: 24px;
}
.icon-header-title {
    font-variation-settings: 'FILL' 1, 'wght' 700;
    color: #475569;
    font-size: 28px;
}

/* Button styles */
.button-base {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}
.button-primary {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.button-primary:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.button-primary:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}
.button-secondary {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}
.button-secondary:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.button-secondary:focus-visible {
    outline: 2px solid #0891b2;
    outline-offset: 2px;
}
.button-tertiary {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    color: #ffffff;
}
.button-tertiary:hover {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.button-tertiary:focus-visible {
    outline: 2px solid #64748b;
    outline-offset: 2px;
}

/* Link styles */
.atag {
    color: #0891b2;
    transition: color 0.2s ease-in-out;
}
.atag:hover {
    color: #0e7490;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Card hover effects */
.card-hover {
    transition: all 0.2s ease-in-out;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Page layout - no scroll */
html, body {
    height: 100%;
    overflow: hidden;
}

/* Alert styles - ensure they appear above modals */
#alert-area {
    position: fixed !important;
    z-index: 9999 !important;
    pointer-events: none;
}

#alert-area > div {
    pointer-events: auto;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    isolation: isolate;
}

/* Alert animation */
@keyframes slideInFadeOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    10%, 85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}
.animate-slide-in-fade-out {
    animation: slideInFadeOut 3s ease-out forwards;
}

/* HTMX Indicator styles */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: flex;
}

/* Status loading indicator */
.status-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(239 246 255 / 1);
    border-radius: 0.5rem;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.animate-spin {
    animation: spin 1s linear infinite;
}
