html {
    overflow-x: hidden;
}

body {
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.list-group-item {
    transition: background-color 0.2s;
    border-left: none;
    border-right: none;
}

.list-group-item.bought {
    background-color: #f8f9fa;
    color: #6c757d;
}

.list-group-item.bought .item-name {
    text-decoration: line-through;
}

.item-name {
    word-break: break-word;
    white-space: normal;
}

#storeFilters {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#storeFilters::-webkit-scrollbar {
    display: none;
}

@keyframes highlight-pulse {
    0% {
        background-color: rgba(13, 110, 253, 0.1);
    }

    50% {
        background-color: rgba(13, 110, 253, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

.highlight-top {
    animation: highlight-pulse 1s ease-out;
}

/* Shop Mode Logic */
body.shop-mode #addFormContainer,
body.shop-mode #adminActions {
    display: none !important;
}

#shopModeToggle:checked {
    background-color: #ffc107 !important;
    /* Warning yellow for high contrast on blue */
    border-color: #ffc107 !important;
}

body.shop-mode .form-check-label[for="shopModeToggle"] {
    font-weight: 800;
    color: #ffc107 !important;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.form-switch .form-check-input {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.item-qty {
    font-size: 0.85rem;
    color: #6c757d;
}

.category-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Subtle required indicator */
.required-subtle {
    border-left: 3px solid #0d6efd !important;
}

.clear-completed-btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Improve button tap targets for mobile */
.btn-bought {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
}

.btn-bought i {
    font-size: 1.25rem !important;
}

.btn-edit {
    padding: 0.5rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .clear-completed-btn {
        width: auto !important;
        min-width: 400px;
    }
}
/* Recipe Hero Image */
.recipe-hero {
    height: 350px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #212529; /* Placeholder dark */
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.recipe-hero img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.recipe-hero:hover img {
    transform: scale(1.05);
}

.recipe-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.recipe-hero-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #adb5bd;
    background-color: #e9ecef;
    border: 2px dashed #dee2e6;
}
