/* Custom font for better typography - works with picocss */
body {
    font-family: 'Inter', sans-serif;
}

/* Primary color for headings to match our theme */
h1 {
    color: #4361ee;
}

/* HTMX-specific styles for loading indicators */
.htmx-indicator {
    opacity: 0;
    transition: opacity 500ms ease-in;
}

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

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

/* Custom box component with hover effect */
.box {
    border: 1px solid #ced4da;
    border-radius: 8px;
    text-align: center;
    padding: 1.5em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Section styling for card-like appearance */
section {
    margin-bottom: 2.5em;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom navigation styling - uses SCSS nesting which is flattened by PostCSS */
nav {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    width: 100%;
    border-radius: 8px;
    font-size: 0.9em;
    padding: 0.8em 1.5em;
    margin-bottom: 1.5em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Nested: becomes "nav ul" after PostCSS processing */
nav ul {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
        margin: 0.5em auto;
        padding: 0;
        width: 100%;
        gap: 1em;
    }
/* Nested: becomes "nav li" after PostCSS processing */
nav li {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }
/* Nested: becomes "nav .separator" after PostCSS processing */
nav .separator {
        color: rgba(255, 255, 255, 0.5);
    }
/* Nested: becomes "nav a" after PostCSS processing */
nav a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 0.5em 0.8em;
        border-radius: 8px;
    }
/* Nested: becomes "nav a:hover" after PostCSS processing */
nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        text-decoration: none;
    }

/* Form validation error styling */
.form-error {
    color: #f44336;
    font-size: 0.9em;
    margin-top: 0.3em;
}

/* HTMX content update highlight effect */
.htmx-modified {
    animation: highlight-fade 2s ease-out;
}

@keyframes highlight-fade {
    from {
        background-color: rgba(240,76,180,0.86);
    }
    to {
        background-color: transparent;
    }
}

/* Page transition animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating checkbox counter box - uses SCSS nesting */
.checkbox-counter { /* Allow clicks to pass through to elements underneath */
}
/* Nested: becomes ".checkbox-counter p" after PostCSS processing */
.checkbox-counter p {
        margin: 0;
        pointer-events: none; /* Ensure paragraphs also don't intercept clicks */
    }
.checkbox-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-color: #005e7d;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 0.8rem;
    pointer-events: none;
}

/* Responsive styles - hide QR code image */
@media (max-width: 800px) {
    .qr-code-image {
        display: none;
    }
}

/* Responsive grid layout for selection choices - uses SCSS nesting */
#choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
    gap: 20px;
}
/* Nested: becomes "#choices a" after PostCSS processing */
#choices a {
        display: block;
    }
