@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

body {
    font-family: 'Outfit', system-ui, sans-serif;
}

* {
    border-radius: 0 !important;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none !important;
    border-color: #6c757d !important;
}

.btn:focus {
    box-shadow: none !important;
}

/* Page overlay for server-side SPA feel */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}

.page-overlay.active {
    opacity: 1;
    visibility: visible;
}

.page-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.1s ease-in;
}

.overlay-spinner {
    color: #6c757d;
}

/* Item highlight animation for visual feedback after actions */
.item-highlight {
    animation: highlight-fade 1.5s ease-out;
}

/* Prevent browser double-tap zoom on toggle areas */
[data-toggle-form] {
    touch-action: manipulation;
}

/* Hide Bootstrap dropdown caret for icon-only buttons */
.btn-link.dropdown-toggle::after {
    display: none;
}

@keyframes highlight-fade {
    0% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

/* Swipe gesture styles */
.list-group-item {
    position: relative;
    overflow: hidden;
}

.swipe-content {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    background: inherit;
    transition: transform 0.2s ease-out;
}

.swipe-hint {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.swipe-hint-left {
    right: 0;
    background: #4a90d9;
}

.swipe-hint-right {
    left: 0;
    background: #e67e22;
}

.list-group-item.swiping .swipe-hint {
    opacity: 1;
}

.list-group-item.swiping .swipe-content {
    transition: none;
}

/* Pinned item accent */
.item-pinned {
    border-left: 3px solid #0d6efd !important;
}

/* Recipe option group styling */
.option-group-item {
    border-left: 3px solid #6c757d;
    padding-left: 8px;
    margin-left: 12px;
}