/**
 * style_v2_enhancements.css
 *
 * Marketing Wow-Factor Enhancements for Host Family Selection Page
 * Created: 2026-01-18
 *
 * This file layers on top of style_v2.css to add:
 * - Branded animated loading screen with logo
 * - Enhanced header button styling
 * - Elevated card styling with better shadows
 * - Improved interest button interactions
 * - Pulsing badge animations
 * - Spring/bounce easing transitions
 *
 * Rollback: Remove import from host.php or visit ?legacy_style=1
 */

/* ============================================================
   CSS CUSTOM PROPERTIES - Enhancement Variables
   ============================================================ */
:root {
    /* Brand Colors (matching existing) */
    --lh-navy: #000032;
    --lh-magenta: #E6007E;
    --lh-cyan: #2294D2;
    --lh-white: #ffffff;

    /* Enhanced Shadows */
    --shadow-elevation-1: 0 2px 8px rgba(0, 0, 50, 0.08);
    --shadow-elevation-2: 0 4px 16px rgba(0, 0, 50, 0.12);
    --shadow-elevation-3: 0 8px 32px rgba(0, 0, 50, 0.16);
    --shadow-elevation-glow: 0 4px 20px rgba(230, 0, 126, 0.25);

    /* Spring Easing for Delightful Animations */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Transition Durations */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}


/* ============================================================
   ENHANCED LOADING SCREEN
   Branded animated loader with London Homestays logo
   ============================================================ */

/* Override existing loading overlay styles */
.loading-overlay {
    background: linear-gradient(135deg, var(--lh-navy) 0%, #001045 50%, var(--lh-navy) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Logo container for branded loading */
.loading-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(230, 0, 126, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

/* Branded Logo Container */
.loading-logo-container {
    position: relative;
    margin-bottom: 30px;
    z-index: 2;
}

.loading-logo {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(0) invert(1) drop-shadow(0 0 0 rgba(230, 0, 126, 0));
    }
    50% {
        transform: scale(1.05);
        filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(230, 0, 126, 0.6));
    }
}

/* Enhanced spinner - replace with animated ring */
.loading-overlay .loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--lh-magenta);
    border-right: 4px solid var(--lh-cyan);
    animation: enhancedSpin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow:
        0 0 20px rgba(230, 0, 126, 0.3),
        inset 0 0 20px rgba(230, 0, 126, 0.1);
}

@keyframes enhancedSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading text enhancements */
.loading-overlay .loading-text {
    font-size: 1.8rem;
    color: var(--lh-white);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.loading-overlay .loading-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    animation: fadeInOut 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Personality loading messages */
.loading-personality {
    margin-top: 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    animation: textSwap 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes textSwap {
    0%, 30% { opacity: 1; }
    33%, 63% { opacity: 0; }
    66%, 96% { opacity: 1; }
    100% { opacity: 0; }
}

/* Enhanced top loading bar */
.top-loading-bar {
    background: linear-gradient(90deg, var(--lh-magenta), var(--lh-cyan), var(--lh-magenta));
    background-size: 200% 100%;
    animation: barShimmer 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(230, 0, 126, 0.5);
}

@keyframes barShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


/* ============================================================
   ENHANCED HEADER BUTTONS
   Stronger glass-morphism with better visual hierarchy
   ============================================================ */

#app-header .header-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--duration-normal) var(--ease-spring);
}

#app-header .header-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#app-header .header-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: var(--duration-fast);
}

/* Preferences button special styling */
#preferences-btn {
    position: relative;
}

/* Enhanced Badge with pulsing glow animation */
#preferences-btn .badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all var(--duration-normal) var(--ease-spring);
}

#preferences-btn .badge.badge-green {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 2px 15px rgba(40, 167, 69, 0.7), 0 0 25px rgba(40, 167, 69, 0.4);
        transform: scale(1.1);
    }
}

/* Badge pop animation when count changes */
@keyframes badgePop {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

#preferences-btn .badge.badge-animate {
    animation: badgePop 0.4s var(--ease-spring);
}


/* ============================================================
   ENHANCED HOST PROFILE CARDS
   Elevated styling with better visual hierarchy
   NOTE: Uses !important to override inline styles from getmarkerinfo.php
   ============================================================ */

/* Overlay panel enhancement */
.overlay,
.bottom-sheet {
    box-shadow: var(--shadow-elevation-3) !important;
}

.overlay.open {
    box-shadow:
        var(--shadow-elevation-3),
        -10px 0 40px rgba(0, 0, 50, 0.15) !important;
}

/* ============================================================
   DO NOT TOUCH - Overlay header backgrounds are controlled by JS
   The updateHeaderBackground() function sets inline styles based
   on interest selection (green/red/grey). CSS overrides break this.
   ============================================================ */

/* Content area enhancement */
.overlay-content,
.bottom-sheet-content {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%) !important;
}

/* ============================================================
   Host profile container and sections now styled in getmarkerinfo.php
   inline styles. These overrides removed to prevent conflicts.
   ============================================================ */


/* ============================================================
   ENHANCED INTEREST BUTTONS
   Marketing-grade with satisfying interactions
   NOTE: Uses !important to override inline styles from getmarkerinfo.php
   ============================================================ */

.host-interest-buttons {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 255, 0.98) 100%) !important;
    border: 2px solid rgba(0, 0, 50, 0.08) !important;
    box-shadow:
        0 4px 20px rgba(0, 0, 50, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Base button enhancement */
.interest-btn {
    transition: all var(--duration-normal) var(--ease-spring) !important;
    position: relative;
    overflow: hidden;
}

/* Shine effect on hover */
.interest-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.interest-btn:hover::before {
    left: 100%;
}

/* Interested Button - Enhanced Green */
.interest-btn-interested {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #28a745 100%) !important;
    background-size: 200% 200% !important;
    box-shadow:
        0 4px 15px rgba(40, 167, 69, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.interest-btn-interested:hover {
    background-position: 100% 100% !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow:
        0 8px 25px rgba(40, 167, 69, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.interest-btn-interested:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3) !important;
    transition-duration: var(--duration-fast) !important;
}

.interest-btn-interested.selected {
    background: linear-gradient(135deg, #28a745 0%, #34d399 50%, #28a745 100%) !important;
    animation: selectedPulse 2s ease-in-out infinite !important;
    box-shadow:
        0 0 0 3px rgba(40, 167, 69, 0.4),
        0 4px 20px rgba(40, 167, 69, 0.4) !important;
}

@keyframes selectedPulse {
    0%, 100% {
        box-shadow:
            0 0 0 3px rgba(40, 167, 69, 0.4),
            0 4px 20px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow:
            0 0 0 5px rgba(40, 167, 69, 0.3),
            0 4px 30px rgba(40, 167, 69, 0.5);
    }
}

/* Not Sure Button - Enhanced Grey/Pink */
.interest-btn-not-sure {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%) !important;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.interest-btn-not-sure:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #ddd 100%) !important;
    transform: translateY(-4px) scale(1.02) !important;
    border-color: var(--lh-magenta) !important;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12),
        0 0 0 2px rgba(230, 0, 126, 0.2) !important;
}

.interest-btn-not-sure:active {
    transform: translateY(-1px) scale(0.98) !important;
    transition-duration: var(--duration-fast) !important;
}

.interest-btn-not-sure.selected {
    border: 2px solid var(--lh-magenta) !important;
    box-shadow:
        0 0 0 3px rgba(230, 0, 126, 0.2),
        0 4px 15px rgba(230, 0, 126, 0.15) !important;
}

/* Not Interested Button - Enhanced Red */
.interest-btn-not-interested {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    box-shadow:
        0 4px 15px rgba(220, 53, 69, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.interest-btn-not-interested:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow:
        0 8px 25px rgba(220, 53, 69, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.interest-btn-not-interested:active {
    transform: translateY(-1px) scale(0.98) !important;
    transition-duration: var(--duration-fast) !important;
}

.interest-btn-not-interested.selected {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 50%, #dc3545 100%) !important;
    box-shadow:
        0 0 0 3px rgba(220, 53, 69, 0.4),
        0 4px 20px rgba(220, 53, 69, 0.4) !important;
}


/* ============================================================
   ENHANCED PHOTO GALLERY
   Photo gallery styling now in getmarkerinfo.php inline styles.
   Only lightbox enhancements remain here.
   ============================================================ */

/* Lightbox enhancements */
.lightbox,
.photo-lightbox {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-content img,
.photo-lightbox-content img {
    border-radius: 12px;
    box-shadow: var(--shadow-elevation-3);
}


/* ============================================================
   ENHANCED WELCOME STATE
   Trust indicators and improved visual hierarchy
   ============================================================ */

.welcome-state-multiple .welcome-header {
    background: linear-gradient(135deg, var(--lh-navy) 0%, #001050 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.welcome-state-multiple .welcome-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 0, 126, 0.1) 0%, transparent 50%);
    animation: floatBg 15s linear infinite;
}

@keyframes floatBg {
    0% { transform: translateX(-25%) translateY(-25%) rotate(0deg); }
    100% { transform: translateX(-25%) translateY(-25%) rotate(360deg); }
}

.welcome-icon-multiple {
    filter: drop-shadow(0 4px 15px rgba(230, 0, 126, 0.3));
}

/* Instruction items enhancement */
.instruction-item {
    background: var(--lh-white);
    border-left: 4px solid var(--lh-magenta);
    box-shadow: var(--shadow-elevation-1);
    transition: all var(--duration-normal) var(--ease-spring);
}

.instruction-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-elevation-2);
    border-left-color: var(--lh-cyan);
}

.instruction-number {
    background: linear-gradient(135deg, var(--lh-magenta) 0%, var(--lh-cyan) 100%);
    box-shadow: 0 4px 10px rgba(230, 0, 126, 0.3);
}

/* Trust Indicators Section */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 50, 0.03);
    border-top: 1px solid rgba(0, 0, 50, 0.08);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--lh-white);
    border-radius: 25px;
    box-shadow: var(--shadow-elevation-1);
    font-size: 0.85rem;
    color: var(--lh-navy);
    transition: all var(--duration-normal) var(--ease-spring);
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevation-2);
}

.trust-badge i {
    color: var(--lh-magenta);
    font-size: 1.1rem;
}

.trust-badge .badge-value {
    font-weight: 700;
    color: var(--lh-magenta);
}


/* ============================================================
   ENHANCED MAP CONTROLS
   Better floating button styling
   ============================================================ */

.map-control-btn {
    background: var(--lh-white);
    box-shadow: var(--shadow-elevation-2);
    transition: all var(--duration-normal) var(--ease-spring);
}

.map-control-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        var(--shadow-elevation-3),
        0 0 20px rgba(230, 0, 126, 0.2);
}

.map-control-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.map-control-btn.active {
    background: linear-gradient(135deg, var(--lh-magenta) 0%, var(--lh-cyan) 100%);
    color: var(--lh-white);
}


/* ============================================================
   ENHANCED MODAL / PREFERENCE OVERLAY
   Improved form styling
   ============================================================ */

.preference-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    box-shadow: var(--shadow-elevation-3);
    border-radius: 20px;
}

.modal-header {
    background: linear-gradient(135deg, var(--lh-navy) 0%, #001050 100%);
    border-radius: 20px 20px 0 0;
}

/* Form inputs enhancement */
.form-group input[type="text"],
.form-group input[type="email"] {
    border: 2px solid rgba(0, 0, 50, 0.1);
    border-radius: 10px;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: var(--lh-magenta);
    box-shadow: 0 0 0 4px rgba(230, 0, 126, 0.1);
}

/* Submit button enhancement */
#sendemail {
    background: linear-gradient(135deg, var(--lh-magenta) 0%, #c5006b 100%);
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(230, 0, 126, 0.3);
    transition: all var(--duration-normal) var(--ease-spring);
}

#sendemail:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 126, 0.4);
}

#sendemail:active:not(:disabled) {
    transform: translateY(-1px);
}

/* Progress bar enhancement */
.progress-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--lh-magenta), var(--lh-cyan));
    border-radius: 10px;
    transition: width 0.5s var(--ease-spring);
}


/* ============================================================
   PREFERENCE LIST ENHANCEMENTS
   Better drag-and-drop visual feedback
   ============================================================ */

#preferences-list .preference-item {
    transition: all var(--duration-normal) var(--ease-spring);
    border-radius: 8px;
    margin: 4px 0;
}

#preferences-list .preference-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    box-shadow: var(--shadow-elevation-1);
}

#preferences-list .preference-item.sortable-chosen {
    background: linear-gradient(135deg, rgba(230, 0, 126, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: var(--shadow-elevation-3);
    transform: scale(1.02);
}

#preferences-list .preference-item.sortable-ghost {
    background: linear-gradient(135deg, var(--lh-magenta) 0%, var(--lh-cyan) 100%);
    opacity: 0.3;
}


/* ============================================================
   CONFIRMATION MODAL ENHANCEMENTS
   ============================================================ */

.confirmation-modal {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.confirmation-content {
    border-radius: 20px;
    box-shadow: var(--shadow-elevation-3);
    animation: modalSlideIn 0.3s var(--ease-spring);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirmation-header {
    background: linear-gradient(135deg, var(--lh-navy) 0%, #001050 100%);
    border-radius: 20px 20px 0 0;
}

.confirmation-footer .btn {
    border-radius: 10px;
    transition: all var(--duration-normal) var(--ease-spring);
}

.confirmation-footer .confirm-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.confirmation-footer .confirm-no:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}


/* ============================================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ============================================================ */

@media (max-width: 768px) {
    /* Mobile loading screen */
    .loading-overlay .loading-spinner {
        width: 60px;
        height: 60px;
    }

    .loading-logo {
        width: 150px;
    }

    .loading-overlay .loading-text {
        font-size: 1.4rem;
    }

    /* Mobile header buttons */
    #app-header .header-btn {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* Mobile interest buttons */
    .host-interest-buttons {
        padding: 12px;
        border-radius: 16px 16px 0 0;
    }

    .interest-btn {
        border-radius: 10px;
    }

    /* Trust badges mobile */
    .trust-indicators {
        padding: 15px 10px;
        gap: 10px;
    }

    .trust-badge {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Mobile modal */
    .modal-content {
        border-radius: 16px;
        margin: 10px;
    }

    .confirmation-content {
        border-radius: 16px;
        margin: 10px;
    }
}


/* ============================================================
   ANIMATION UTILITIES
   Reusable animation classes
   ============================================================ */

/* Fade in animation */
.animate-fade-in {
    animation: fadeIn 0.5s var(--ease-smooth) forwards;
}

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

/* Slide up animation */
.animate-slide-up {
    animation: slideUp 0.5s var(--ease-spring) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale in animation */
.animate-scale-in {
    animation: scaleIn 0.3s var(--ease-spring) forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Attention pulse */
.animate-attention {
    animation: attention 1s var(--ease-spring);
}

@keyframes attention {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.02); }
}


/* ============================================================
   PREFERENCE MODAL ENHANCEMENTS
   Category headers with semantic colors & sticky progress bar
   ============================================================ */

/* Sticky Progress Bar - stays at top when scrolling */
.modal-body .progress-container {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 0 -30px 20px -30px;
    padding: 15px 30px;
    border-bottom: 1px solid rgba(0, 0, 50, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 50, 0.06);
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* Progress bar track wrapper - takes remaining space */
.modal-body .progress-container .progress-bar-track {
    flex: 1 1 auto;
    height: 8px;
    background: rgba(0, 0, 50, 0.1);
    border-radius: 4px;
    margin-right: 12px;
    overflow: hidden;
}

/* Progress bar fill - percentage of track, not container */
.modal-body .progress-container .progress-bar-fill {
    height: 100%;
    border-radius: 4px;
}

/* Progress percentage badge */
.modal-body .progress-container .progress-percentage {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Category Header: Interested - Green gradient */
#preferences-list .preference-group-title.interested-group-header,
#preferences-list .interested-group-header {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    color: white !important;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    border: none;
}

#preferences-list .interested-group-header i {
    color: white;
}

/* Category Header: Not Sure - Refined grey */
#preferences-list .preference-group-title.not-sure-group-header,
#preferences-list .not-sure-group-header {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    color: var(--lh-navy) !important;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 50, 0.1);
    border-bottom: none;
}

#preferences-list .not-sure-group-header i {
    color: #6c757d;
}

/* Category Header: Not Interested - Red gradient */
#preferences-list .preference-group-title.not-interested-group-header,
#preferences-list .not-interested-group-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    font-weight: 600;
    border: none;
}

#preferences-list .not-interested-group-header i {
    color: white;
}

/* Enhanced preference list items */
#preferences-list .preference-item {
    border-left: 3px solid transparent;
}

#preferences-list .preference-item[data-interest-status="interested"] {
    border-left-color: #28a745;
}

#preferences-list .preference-item[data-interest-status="not-sure"] {
    border-left-color: #6c757d;
}

#preferences-list .preference-item[data-interest-status="not-interested"] {
    border-left-color: #dc3545;
}

/* Action buttons hover states */
.preference-item .action-buttons .mini-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-elevation-1);
}

.preference-item .action-buttons .mini-btn:active {
    transform: translateY(0);
}


/* ============================================================
   MOBILE REORDER CONTROLS
   Up/down buttons for mobile devices
   ============================================================ */

/* Reorder buttons container */
.reorder-buttons {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-right: 12px;
}

.reorder-buttons .move-btn {
    width: 32px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #e9ecef;
    color: var(--lh-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all var(--duration-fast) ease;
}

.reorder-buttons .move-btn:hover {
    background: var(--lh-magenta);
    color: white;
}

.reorder-buttons .move-btn:active {
    transform: scale(0.95);
}

.reorder-buttons .move-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.reorder-buttons .move-btn:disabled:hover {
    background: #e9ecef;
    color: var(--lh-navy);
}

/* Reorder hint styling */
.reorder-hint {
    font-weight: 400;
    font-size: 0.85em;
    opacity: 0.85;
    margin-left: 4px;
}

/* Responsive visibility utilities */
.desktop-only {
    display: inline;
}

.mobile-only {
    display: none;
}

/* Mobile: show reorder buttons, hide drag handle, swap hints */
@media (max-width: 768px) {
    .preference-item[data-interest-status="interested"] .drag-handle {
        display: none !important;
    }

    .preference-item[data-interest-status="interested"] .reorder-buttons {
        display: flex;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline !important;
    }
}


/* ============================================================
   CONFIRMATION MODAL BUTTON REFINEMENTS
   Navy "No" button for less alarming appearance
   ============================================================ */

.confirmation-footer .confirm-no {
    background: var(--lh-navy);
    box-shadow: 0 3px 10px rgba(0, 0, 50, 0.3);
}

.confirmation-footer .confirm-no:hover {
    background: #001050;
    box-shadow: 0 8px 25px rgba(0, 0, 50, 0.4);
}


/* ============================================================
   MESSAGE DISPLAY REFINEMENTS
   Better borders and entrance animation
   ============================================================ */

#msg {
    border-radius: 0 0 12px 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

#msg.msg-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-top: none;
}

#msg.msg-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-top: none;
}

#msg.msg-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 2px solid #ffc107;
    border-top: none;
    color: #664d03;
}

/* Animate message appearance */
#msg.animate-in {
    animation: messageSlideIn 0.3s var(--ease-spring) forwards;
}

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


/* ============================================================
   PRINT STYLES
   Clean print output
   ============================================================ */

@media print {
    .loading-overlay,
    .top-loading-bar,
    .map-controls-floating,
    #app-header .header-actions,
    .host-interest-buttons,
    .preference-overlay {
        display: none !important;
    }

    .overlay,
    .bottom-sheet {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
    }
}
