/* Custom styles for Helsenorge branding */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0066CC;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052A3;
}

/* HTMX loading indicator styles */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
    pointer-events: none;
}

.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-request.htmx-indicator {
    opacity: 1;
}

/* Ensure form elements are always clickable */
form,
textarea,
input,
select,
button {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* Animation for results */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#search-results > div {
    animation: fadeIn 0.3s ease-in;
}

/* Focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Button hover effects */
button,
a.button {
    transition: all 0.2s ease;
}

button:hover,
a.button:hover {
    transform: translateY(-1px);
}

/* Result card hover */
.result-card {
    transition: all 0.2s ease;
}

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

/* License link - discrete styling */
footer + div a {
    font-size: 0.75rem;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

footer + div a:hover {
    background-color: rgba(255, 255, 255, 0.95);
}
