/* Prevent horizontal scroll on mobile */
/* * {
    box-sizing: border-box;
} 

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
} */


/* Prevent iOS horizontal scroll after keyboard */
html, body {
    overflow-x: hidden;
    position: relative;
}

body {
    min-height: 100vh;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #8B2500 0%, #D4691A 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header with Navigation */
.header {
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover; /* Prevents distortion */
}

.header-text h1 {
    margin: 0;
    font-size: 2em;
}

.tagline {
    margin: 5px 0 0 0;
    opacity: 0.95;
    font-size: 1em;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: opacity 0.3s;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-links a:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

.nav-login {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
}

.nav-login:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .header-text h1 {
        font-size: 1.3em;
    }
    
    .tagline {
        font-size: 0.75em;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
        flex-direction: column;
        padding: 80px 20px 20px 20px;
        gap: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        transition: right 0.3s;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2em;
        padding: 12px;
        text-align: center;
    }
}

/* Search Section */
.search-section {
    padding: 30px;
    background: #fff;
    border-bottom: 3px solid #667eea;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;  /* Add this for autocomplete positioning */
    flex-wrap: wrap;     /* Allow wrapping for autocomplete */
}

.search-input {
    width: 100%;  /* Full width of wrapper */
    padding: 15px 20px;
    border: 3px solid #D4691A;  /* Match orange theme */
    border-radius: 8px;
    font-size: 1.1em;
    transition: border-color 0.3s;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    min-width: 400px;
}

@media (max-width: 768px) {
    .search-input-wrapper {
        min-width: 100%;
    }
}

.search-input:focus {
    outline: none;
    border-color: #D4691A;
    box-shadow: 0 0 0 3px rgba(212, 105, 26, 0.1);
}

.btn-search {
    padding: 15px 30px;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 105, 26, 0.4);
}

.btn-search:active {
    transform: translateY(0);
}

.btn-clear {
    padding: 15px 30px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-clear:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-clear:active {
    transform: translateY(0);
}

.search-results {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 15px;
    background: #FFF8E7;
    border: 2px solid #D4691A;
    border-radius: 8px;
}

#searchResultsText {
    margin: 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

@media (max-width: 768px) {
    .main-content {
        padding: 10px;
    }
}

/* Form Section */
.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.form-section h2 {
    color: #8B2500;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #D4691A;
}

.instruction {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.location-display {
    background: white;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-height: 45px;
}

#locationText {
    color: #666;
    font-style: italic;
}

#locationText.selected {
    color: #28a745;
    font-weight: 600;
    font-style: normal;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 105, 26, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Map Section */
.map-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.map-section h2 {
    color: #8B2500;
    margin-bottom: 20px;
    font-size: 1.5em;
}

#map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.map-instruction {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .submissions-list {
        grid-template-columns: 1fr;
    }
}
/* Custom Map Markers with Price Labels */
.custom-div-icon {
    background: none;
    border: none;
}

/* Modern Store Markers */
.custom-div-icon {
    background: none;
    border: none;
}

.store-marker-container {
    position: relative;
    width: 50px;
    height: 50px;
}

.store-marker-circle {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.store-marker-circle:hover {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 6px 16px rgba(212, 105, 26, 0.5);
}

.beer-count-badge {
    position: absolute;
    top: -5px;
    right: 0;
    background: #28a745;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

/* Search Result Price Labels (appears above markers during search) */
.search-price-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    z-index: 1000;
}

.marker-pin::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    border: 3px solid #D4691A;
}

/* Hover effect for markers */
.custom-marker:hover .price-label {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(40, 167, 69, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1em;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 99999; /* Above all modals */
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* Hide the form section - will be moved to modal later */
.form-section {
    display: none !important;
}

/* Make map take full width */
.map-section {
    grid-column: 1 / -1;
}

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content Box */
.modal-content {
    background: white;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow: hidden; /* Add this */
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8em;
}

.modal-close {
    font-size: 2em;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
}

.modal-close:hover {
    transform: scale(1.2);
}

/* Modal Body */
.modal-body {
    padding: 30px;
}

.store-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    border-left: 4px solid #D4691A;
}

.store-info h3 {
    margin: 0 0 8px 0;
    color: #8B2500;
    font-size: 1.4em;
}

.store-info p {
    margin: 0;
    color: #666;
    font-size: 1em;
}

/* Form Rows for Side-by-Side Fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:has(.form-group:only-child) {
    grid-template-columns: 1fr;
}

/* Modal Form Groups */
.modal-body .form-group {
    margin-bottom: 0;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

.modal-body .form-group input,
.modal-body .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus {
    outline: none;
    border-color: #D4691A;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.btn-cancel {
    flex: 1;
    padding: 14px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-submit-modal {
    flex: 2;
    padding: 14px;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 105, 26, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #D4691A;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #fff8f0;
}

.autocomplete-item-name {
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.autocomplete-item-details {
    font-size: 0.85em;
    color: #666;
    margin-top: 3px;
}

.autocomplete-no-results {
    padding: 15px;
    text-align: center;
    color: #999;
    font-style: italic;
}

.selected-beer-info {
    margin-top: 10px;
    padding: 10px;
    background: #f0f8f4;
    border-left: 3px solid #28a745;
    border-radius: 5px;
}

.selected-beer-info small {
    color: #28a745;
}

/* Make form-group relative for autocomplete positioning */
.modal-body .form-group {
    position: relative;
}

/* User Location Marker */
.user-location-marker {
    background: none;
    border: none;
}

.user-location-dot {
    width: 20px;
    height: 20px;
    background: #4285F4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(66, 133, 244, 0.8), 0 0 0 10px rgba(66, 133, 244, 0.1);
    }
}

/* Inventory Modal - 3 Column Layout */
.inventory-modal-content {
    max-width: 95%;
    width: 1400px;
    max-height: 90vh;
}

/* Desktop: Default 3-Column Layout */
.inventory-modal-body {
    display: grid;
    grid-template-columns: 200px 300px 1fr;
    gap: 20px;
    padding: 20px;
    max-height: calc(90vh - 120px);
}

/* .inventory-column-favorites {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 15px;
    border-right: 2px solid #eee;
}

.favorite-beer-box {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.favorite-beer-box small {
    display: block;
    font-weight: bold;
    color: #8B2500;
    margin-bottom: 8px;
    font-size: 0.75em;
}

.favorite-beer-box p {
    margin: 0;
    color: #999;
    font-style: italic;
    font-size: 0.85em;
} */


/* Email Preferences */
.email-preferences {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preference-toggle {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: all 0.3s;
    margin-bottom: 25px;
}

.preference-toggle:hover {
    border-color: #D4691A;
    background: #fff8f0;
}

.preference-toggle input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #D4691A;
}

.toggle-label {
    flex: 1;
}

.toggle-label strong {
    display: block;
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.toggle-label small {
    display: block;
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
}

.btn-save-preferences {
    background: #D4691A;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.btn-save-preferences:hover {
    background: #B85616;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 105, 26, 0.3);
}

.btn-save-preferences:active {
    transform: translateY(0);
}


/* Favorites column */
.inventory-column-favorites {
    border-right: 2px solid #eee;
    padding-right: 20px;
}

.favorite-beer-box {
    background: #f8f9fa;
    border: 2px solid #D4691A;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.favorite-beer-box:hover {
    background: #fff8f0;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(212, 105, 26, 0.2);
}

.favorite-beer-box.empty {
    opacity: 0.5;
    cursor: default;
}

.favorite-beer-box.empty:hover {
    transform: none;
    box-shadow: none;
}

.favorite-beer-box small {
    display: block;
    color: #D4691A;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.75em;
    letter-spacing: 0.5px;
}

.favorite-beer-box p {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.favorite-beer-box .beer-details {
    color: #666;
    font-size: 0.85em;
    font-weight: 400;
    margin-top: 5px;
}

.favorite-beer-box.selected-favorite {
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    border-color: #8B2500;
}

.favorite-beer-box.selected-favorite small {
    color: white;
}

.favorite-beer-box.selected-favorite p {
    color: white;
}

.favorite-beer-box.selected-favorite .beer-details {
    color: rgba(255, 255, 255, 0.9);
}

/* Favorite message */
.favorite-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    color: #856404;
    text-align: center;
    font-weight: 600;
}

.inventory-column-list {
    display: flex;
    flex-direction: column;
    border-right: 2px solid #eee;
    padding-right: 20px;
}

.inventory-column-list h3 {
    margin: 0 0 15px 0;
    color: white;
    background: #D4691A;
    font-size: 1em;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    letter-spacing: 1px;
}

.inventory-instruction {
    text-align: center;
    color: #666;
    font-size: 0.85em;
    margin: -10px 0 10px 0;
    font-style: italic;
}

.inventory-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
    border: 2px solid #D4691A;
    border-radius: 8px;
    background: white;
    max-height: 180px;
}

/* Scrollbar styling */
.inventory-list::-webkit-scrollbar {
    width: 8px;
}

.inventory-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.inventory-list::-webkit-scrollbar-thumb {
    background: #D4691A;
    border-radius: 8px;
}

.inventory-list::-webkit-scrollbar-thumb:hover {
    background: #F4A624;
}

.inventory-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #333;
    outline: none;
}

.inventory-item:hover {
    background: #fff8f0;
}

.inventory-item:focus {
    outline: none;
}

.inventory-item:last-child {
    border-bottom: none;
}

.inventory-item.selected {
    background: #D4691A !important;
    color: white;
}

.inventory-item-name {
    font-weight: bold;
    font-size: 1em;
}

.inventory-column-actions {
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
    padding: 0 10px;
}

.update-beer-section {
    background: #f8f9fa;
    border: 2px solid #D4691A;
    border-radius: 10px;
    padding: 20px;
}

.update-beer-section h3 {
    margin: 0 0 15px 0;
    color: #8B2500;
    font-size: 1.1em;
    border-bottom: 2px solid #D4691A;
    padding-bottom: 10px;
}

.add-beer-section {
    background: #f8f9fa;
    border: 2px solid #D4691A;
    border-radius: 10px;
    padding: 20px;
}

.add-beer-section h3 {
    margin: 0 0 15px 0;
    color: #8B2500;
    font-size: 1.1em;
    border-bottom: 2px solid #D4691A;
    padding-bottom: 10px;
}

.selected-beer-display {
    background: white;
    padding: 12px;
    border-left: 3px solid #28a745;
    border-radius: 5px;
    margin-bottom: 12px;
}

.selected-beer-display strong {
    color: #28a745;
}

#availableQuantities {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.quantity-badge {
    background: #D4691A;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-align: center;
    min-width: 100px;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
}

.quantity-badge small {
    font-size: 0.75em;
    opacity: 0.9;
    font-weight: 400;
    display: block;
    margin-top: 3px;
}

.quantity-badge:hover {
    background: #F4A624;
    transform: scale(1.05);
}

.quantity-badge.selected-quantity {
    border-color: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.inventory-column-actions .form-group {
    margin-bottom: 15px;
    position: relative;
}

.inventory-column-actions .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.inventory-column-actions .form-group input,
.inventory-column-actions .form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
}

.inventory-column-actions .form-group input:focus,
.inventory-column-actions .form-group select:focus {
    outline: none;
    border-color: #D4691A;
}

.btn-report-out-of-stock {
    width: 100%;
    padding: 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-report-out-of-stock:hover {
    background: #c82333;
}

.report-warning {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.85em;
    color: #ff9800;
    font-weight: 700;
}

.btn-report-out-of-stock.has-reports {
    background: #e65100;  /* Darker orange */
}

.btn-report-out-of-stock.has-reports:hover {
    background: #bf360c;  /* Even darker on hover */
}

/* Desktop: Hide mobile elements */
.mobile-back-btn {
    display: none;
}

.header-store-info {
    flex: 1;
}

/* Mobile: Full-Page View */
@media (max-width: 768px) {
    #inventoryModal.show {
        background: none;
    }
    
    .inventory-modal-content {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        animation: slideInFromRight 0.3s ease;
    }
    
    @keyframes slideInFromRight {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
    
    .inventory-modal-content .modal-header {
        background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
        color: white;
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 15px;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .mobile-back-btn {
        display: block;
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid white;
        color: white;
        padding: 8px 15px;
        border-radius: 5px;
        font-size: 1em;
        font-weight: 600;
        cursor: pointer;
    }
    
    .header-store-info h2 {
        margin: 0;
        font-size: 1.2em;
    }
    
    .header-store-info p {
        margin: 3px 0 0 0;
        font-size: 0.85em;
    }
    
    .desktop-close {
        display: none;
    }
    
    .inventory-modal-body {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 15px 15px 150px 15px; /* Extra bottom padding */
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
    }
    
    /* Prevent body scroll when inventory modal is open on mobile */
    body.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .inventory-column-favorites {
        display: none;
    }
    
    .inventory-column-list {
        order: 1;
        border-right: none;
        border-bottom: 2px solid #eee;
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .inventory-list {
        max-height: 250px; /* Taller on mobile */
        border: 2px solid #D4691A;
        overflow-y: scroll; /* Force scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
    }
    
    .inventory-column-actions {
        padding-bottom: 60px;
        order: 2;
    }
    
    .update-beer-section,
    .add-beer-section {
        padding: 15px;
    }
    
    .update-beer-section h3,
    .add-beer-section h3 {
        font-size: 1em;
    }

}

/* Choice Modal - Manual vs Camera */
.choice-modal-content {
    max-width: 600px;
    width: 90%;
}

.choice-modal-body {
    padding: 40px 30px;
    text-align: center;
}

.choice-heading {
    font-size: 1.8em;
    color: #333;
    margin: 0 0 40px 0;
    font-weight: 600;
}

.choice-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.choice-btn {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 30px 20px;
    font-size: 1.3em;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 105, 26, 0.3);
}

.choice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 105, 26, 0.4);
    background: linear-gradient(135deg, #F4A624 0%, #D4691A 100%);
}

.choice-btn:active {
    transform: translateY(-1px);
}

/* Responsive for choice modal */
@media (max-width: 600px) {
    .choice-buttons {
        flex-direction: column;
    }
    
    .choice-btn {
        min-width: 100%;
    }
}

/* Barcode Scanner Modal */
.scanner-modal-content {
    max-width: 600px;
    width: 90%;
}

.scanner-modal-body {
    padding: 30px 20px;
}

.scanner-view,
.manual-upc-view,
.scanned-beer-info {
    text-align: center;
}

.scanner-view h3,
.manual-upc-view h3,
.scanned-beer-info h3 {
    color: #8B2500;
    margin: 0 0 20px 0;
    font-size: 1.3em;
}

/* Camera reader styling */
#barcodeReader {
    border: 3px solid #D4691A;
    border-radius: 10px;
    overflow: hidden;
}

#barcodeReader video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Manual UPC input */
.manual-upc-view .form-group {
    max-width: 400px;
    margin: 0 auto 20px auto;
}

.manual-upc-view input {
    text-align: center;
    font-size: 1.2em;
    letter-spacing: 2px;
}

/* Scanned beer display */
.scanned-beer-display {
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.scanned-beer-info .form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Mobile: Full screen scanner */
@media (max-width: 768px) {
    #scannerModal.show {
        background: none;
    }
    
    .scanner-modal-content {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        animation: slideInFromRight 0.3s ease;
    }
    
    .scanner-modal-content .modal-header {
        background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
        color: white;
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .scanner-modal-body {
        padding: 20px 15px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    #barcodeReader {
        max-width: 100%;
    }
}

/* Advanced Filters */
.filter-section {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.filter-toggle-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.filter-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 105, 26, 0.3);
}

#filterToggleIcon {
    transition: transform 0.3s;
}

#filterToggleIcon.rotated {
    transform: rotate(180deg);
}

.filter-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    border-radius: 0 0 8px 8px;
}

.filter-panel.open {
    max-height: 500px;
    border: 2px solid #D4691A;
    border-top: none;
}

.filter-content {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #D4691A;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-apply-filters,
.btn-clear-filters {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply-filters {
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 105, 26, 0.3);
}

.btn-clear-filters {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
}

.btn-clear-filters:hover {
    background: #e0e0e0;
}

/* Mobile filters */
@media (max-width: 768px) {
    .filter-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}

/* Location Validation Modal */
.location-validate-content {
    max-width: 500px;
    width: 90%;
}

.location-validate-body {
    padding: 30px;
    text-align: center;
}

.location-display {
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.location-display h3 {
    color: white !important;
}

.location-display p {
    color: white !important;
    opacity: 0.95;
}

.location-validate-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-location-yes,
.btn-location-no {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-location-yes {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-location-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-location-no {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
}

.btn-location-no:hover {
    background: #e0e0e0;
}

/* Scanner Price Entry Modal */
.scanner-price-content {
    max-width: 600px;
    width: 90%;
}

.scanner-price-body {
    padding: 30px;
}

.scanned-beer-card {
    background: #f8f9fa;
    border: 2px solid #D4691A;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.scanned-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #333;
}

.price-entry-group {
    margin-bottom: 30px;
}

.price-entry-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 3px solid #D4691A;
    border-radius: 8px;
    padding: 5px 15px;
}

.dollar-sign {
    font-size: 2em;
    color: #D4691A;
    font-weight: 700;
}

#scannerPriceInput {
    flex: 1;
    border: none;
    font-size: 2em;
    padding: 10px;
    text-align: right;
    font-weight: 600;
}

#scannerPriceInput:focus {
    outline: none;
}

.btn-submit-price {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 105, 26, 0.4);
}

/* Map Selection Modal */
.map-selection-content {
    max-width: 800px;
    width: 90%;
}

#mapSelectionView {
    width: 100%;
    height: 400px;
}

/* Mobile styles for scanner modals */
@media (max-width: 768px) {
    .scanner-price-content {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .scanner-price-body {
        padding: 20px 15px;
    }
    
    .location-validate-content {
        width: 95%;
    }
    
    .location-validate-body {
        padding: 20px;
    }
    
    #mapSelectionView {
        height: 300px;
    }
}

/* Authentication Modals */
.auth-modal-content {
    max-width: 450px;
    width: 90%;
}

.auth-modal-body {
    padding: 30px;
}

.auth-modal-body .form-group {
    margin-bottom: 20px;
}

.auth-modal-body .form-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.auth-modal-body .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.auth-modal-body .form-group input:focus {
    outline: none;
    border-color: #D4691A;
}

.btn-auth {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 105, 26, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-switch a {
    color: #D4691A;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Logged in user display in nav */
.user-menu {
    position: relative;
}

.user-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: white;
    color: #D4691A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 2px solid #D4691A;
    border-radius: 8px;
    margin-top: 10px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    color: #333;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.2s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #fff8f0;
}

.user-dropdown button {
    border-top: 1px solid #eee;
    color: #dc3545;
    font-weight: 600;
}

@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
    }
    
    .auth-modal-body {
        padding: 20px;
    }
}

/* Favorite Quick Access Buttons */
.favorite-quick-access {
    max-width: 800px;
    margin: 15px auto 0 auto;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #D4691A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quick-access-label {
    font-weight: 600;
    color: #D4691A;
    white-space: nowrap;
    min-width: fit-content;
}

.favorite-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.btn-favorite-quick {
    padding: 10px 18px;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-favorite-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 105, 26, 0.3);
}

@media (max-width: 768px) {
    .favorite-quick-access {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .quick-access-label {
        text-align: center;
        white-space: normal;  /* Allow wrapping on mobile */
        line-height: 1.4;
    }
    
    .favorite-buttons {
        justify-content: center;
    }
}


/* Page Content Centering */
.about-content,
.profile-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .about-content,
    .profile-content {
        padding: 20px 15px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   FAQ PAGE
   =================================== */

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
}

.page-header h1 {
    color: white;  /* Make title white */
    font-size: 2.5em;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);  /* Subtitle white too */
    font-size: 1.2em;
}

.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 50px;
}

.faq-section h2 {
    /* color: #D4691A; */
    color: #f4a624;
    /* border-bottom: 3px solid #D4691A; */
    border-bottom: 3px solid #f4a624;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.faq-item a {
    color: #D4691A;
    text-decoration: none;
    font-weight: 600;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Location Notice Banner */
.location-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px 30px;
    margin: 0 auto 40px;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.location-notice strong {
    display: block;
    color: #856404;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.location-notice p {
    color: #856404;
    margin: 0;
    font-size: 1em;
}

/* Submission Forms */
.submission-form-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.submission-form-container h4 {
    color: #D4691A;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.submission-form .form-group {
    margin-bottom: 20px;
}

.submission-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.submission-form input,
.submission-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.submission-form input:focus,
.submission-form textarea:focus {
    outline: none;
    border-color: #D4691A;
}

.submission-form textarea {
    resize: vertical;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
}

.btn-submit {
    background: #D4691A;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background: #B85616;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 105, 26, 0.3);
}

.contact-methods {
    background: #fff8f0;
    border-left: 4px solid #D4691A;
    padding: 20px;
    border-radius: 4px;
}

.contact-methods p {
    margin: 10px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .faq-section h2 {
        font-size: 1.5em;
    }
    
    .faq-item h3 {
        font-size: 1.1em;
    }
}

/* Footer */
.site-footer {
    background: #2c2c2c;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-section h4 {
    color: #D4691A;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #D4691A;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9em;
}

/* ===================================
   PROFILE PAGE
   =================================== */

/* ===================================
   PROFILE PAGE
   =================================== */

/* Force header to be centered on profile page */
body .header {
    width: 100%;
}

body .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.profile-sections {
    max-width: 100%;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(212, 105, 26, 0.3);
}

.profile-username {
    font-size: 2em;
    color: white;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-email {
    color: white;
    font-size: 1.1em;
    opacity: 0.95;
}

.profile-member-since {
    color: white;
    font-size: 0.95em;
    margin-top: 10px;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border: 2px solid #D4691A;
    border-radius: 15px;
    padding: 30px 15px; /* Changed from 30px */
    text-align: center;
    transition: all 0.3s;
    min-width: 0; /* Added this line */
}



.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 105, 26, 0.2);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.stat-label {
    color: #666;
    font-size: 1em;
    margin-top: 10px;
    font-weight: 600;
}

.section-title {
    font-size: 1.8em;
    color: white;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

/* Favorite Beers Styles */
#favoritesList {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.favorite-slot {
    background: white;
    border: 2px solid #D4691A;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.favorite-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    flex-shrink: 0;
}

.favorite-empty {
    flex: 1;
    text-align: center;
    color: #999;
}

.favorite-empty p {
    margin: 0 0 10px 0;
}

.favorite-filled {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorite-beer-info {
    flex: 1;
}

.favorite-beer-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.favorite-beer-details {
    color: #666;
    font-size: 0.95em;
}

.favorite-actions {
    display: flex;
    gap: 10px;
}

.btn-add-favorite,
.btn-search-favorite,
.btn-remove-favorite {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-add-favorite {
    background: linear-gradient(135deg, #D4691A 0%, #F4A624 100%);
    color: white;
}

.btn-add-favorite:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 105, 26, 0.3);
}

.btn-search-favorite {
    background: #28a745;
    color: white;
}

.btn-search-favorite:hover {
    background: #218838;
}

.btn-remove-favorite {
    background: #dc3545;
    color: white;
}

.btn-remove-favorite:hover {
    background: #c82333;
}

/* Profile Grid Layout */
@media (min-width: 1024px) {
    .profile-sections {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
}

/* Mobile Profile */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px 15px;
    }
    
    .profile-header {
        margin-bottom: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* Added */
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 10px; /* Added */
    }



 /* Favorite beer mobile fixes */
    .favorite-slot {
        padding: 15px;
        flex-direction: column; /* Stack vertically */
        align-items: flex-start;
    }
    
    .favorite-filled {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .favorite-beer-info {
        width: 100%;
    }
    
    .favorite-actions {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .btn-search-favorite,
    .btn-remove-favorite {
        flex: 1;
        padding: 10px 16px;
        font-size: 0.95em;
    }

    @media (max-width: 768px) {
    .inventory-column-list {
        overflow: visible;
    }
    
    .inventory-list {
        max-height: 250px !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }
    }
}


/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-bar-fill.weak {
    width: 20%;
    background: #e74c3c;
}

.strength-bar-fill.fair {
    width: 40%;
    background: #f39c12;
}

.strength-bar-fill.good {
    width: 60%;
    background: #f1c40f;
}

.strength-bar-fill.strong {
    width: 80%;
    background: #2ecc71;
}

.strength-bar-fill.very-strong {
    width: 100%;
    background: #27ae60;
}

.strength-text {
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 8px;
}

.strength-text.weak { color: #e74c3c; }
.strength-text.fair { color: #f39c12; }
.strength-text.good { color: #f1c40f; }
.strength-text.strong { color: #2ecc71; }
.strength-text.very-strong { color: #27ae60; }

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.requirement {
    font-size: 0.85em;
    color: #666;
    margin: 4px 0;
    display: flex;
    align-items: center;
}

.requirement.met {
    color: #27ae60;
}

.req-icon {
    margin-right: 8px;
    font-weight: bold;
}

.requirement.met .req-icon {
    content: '✓';
}

.requirement.met .req-icon::before {
    content: '✓';
}

/* Change Password Form Styling */
.change-password-form .form-group {
    margin-bottom: 20px;
}

.change-password-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white; /* White labels */
}

.change-password-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.change-password-form input:focus {
    outline: none;
    border-color: #D4691A;
}

/* Make password requirements white */
.change-password-form .password-requirements {
    color: white;
}

.change-password-form .requirement {
    color: white;
    opacity: 0.7;
}

.change-password-form .requirement.met {
    color: #2ecc71;
    opacity: 1;
}

.change-password-form .strength-text {
    color: white;
}