﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

tr.now-happening td {
    background-color: #e7fbe7;
}

tr.expired td {
    background-color: #f8f9fa;
    color: #6c757d;
}
/* align the left radio with multi-line address content */
.addr-radio {
    margin-top: .15rem; /* small vertical nudge */
    width: 1.05rem;
    height: 1.05rem;
}
/* make radios bigger + themed */
.addr-radio {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #0d6efd; /* Bootstrap primary */
}

.addr-radio:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem; /* bigger click target */
    height: 2.25rem;
    padding: 0;
    font-size: 1.25rem; /* bigger icon */
}

/* 🎨 GLOBAL THEME: 11PM Serenades */
:root {
    --night-sky-top: #1a1333; /* Deep midnight purple/blue */
    --night-sky-bot: #2c1e4a; /* Lighter purple gradient */
    --lamp-gold: #ffd700; /* The street lamp glow */
    --heart-pink: #f687b3; /* The floating hearts */
    --note-blue: #63b3ed; /* The music notes */
    --glass-bg: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
}

/* 1. Base Structure */
html {
    position: relative;
    min-height: 100%;
}

body {
    background: linear-gradient(180deg, var(--night-sky-top) 0%, var(--night-sky-bot) 100%);
    background-attachment: fixed; /* Keeps gradient fixed while scrolling */
    color: var(--text-color);
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--lamp-gold);
    text-shadow: 0px 0px 10px rgba(255, 215, 0, 0.2);
    font-family: 'Georgia', serif; /* Optional: adds that classy serenade feel */
}

a {
    color: var(--note-blue);
    text-decoration: none;
    transition: color 0.2s;
}

    a:hover {
        color: var(--heart-pink);
    }

.text-muted {
    color: var(--text-muted) !important;
}

/* 3. Bootstrap Component Overrides */

/* Cards (Glassmorphism) */
.card {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px); /* Blurs the background behind the card */
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    color: var(--lamp-gold);
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
}

/* Forms & Inputs */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

    .form-control:focus, .form-select:focus {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: var(--heart-pink);
        color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(246, 135, 179, 0.25);
    }

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

/* Primary Buttons (Gold) */
.btn-primary {
    background-color: var(--lamp-gold);
    border-color: var(--lamp-gold);
    color: #1a1333; /* Dark text for contrast */
    font-weight: bold;
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
        background-color: #e6c200 !important;
        border-color: #e6c200 !important;
        color: #000 !important;
    }

/* Secondary Buttons (Outlines) */
.btn-outline-secondary {
    color: var(--text-color);
    border-color: var(--text-muted);
}

    .btn-outline-secondary:hover {
        background-color: var(--text-muted);
        color: #000;
    }

/* Tables */
.table {
    color: var(--text-color);
    --bs-table-color: var(--text-color);
    --bs-table-hover-color: #fff;
    --bs-table-hover-bg: rgba(255,255,255,0.1);
}

    .table thead th {
        border-bottom: 2px solid var(--lamp-gold);
        color: var(--lamp-gold);
    }

    .table td {
        border-bottom: 1px solid var(--glass-border);
    }

/* Alerts/Toasts */
.toast {
    background-color: rgba(26, 19, 51, 0.95);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: rgba(0,0,0,0.3);
    border-top: 1px solid var(--glass-border);
}

/* Add to site.css if you want to standardize Chat UI */
.chat-panel {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.chat-window {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--note-blue);
    border-radius: 10px;
}

/* 🌍 Language Selector Fine-Tuning */
.serenade-lang-select {
    background-color: rgba(0, 0, 0, 0.3) !important; /* Semi-transparent dark */
    color: var(--lamp-gold) !important; /* Gold text */
    border: 1px solid var(--lamp-gold) !important; /* Gold border */
    border-left: none !important; /* Merge with icon */
    cursor: pointer;
    font-weight: 500;
}

.serenade-lang-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(251, 211, 141, 0.25) !important; /* Gold glow */
    border-color: var(--heart-pink) !important;
}

/* 🛑 CRITICAL FIX: Style the dropdown options */
/* Browsers often default these to white bg/black text, breaking dark themes. */
.serenade-lang-select option {
    background-color: #1a1333; /* Match your Deep Midnight Blue theme */
    color: #fff; /* White text for readability */
    padding: 10px;
}

/* Style the icon span to match */
.serenade-lang-select + .input-group-text,
.input-group-text:has(+ .serenade-lang-select) {
    border-color: var(--lamp-gold) !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: var(--lamp-gold) !important;
}

/* 🌍 Serenade Dropdown Styling */
.serenade-dropdown {
    background-color: var(--night-sky-top); /* Dark Purple/Blue background */
    border: 1px solid var(--lamp-gold); /* Gold Border */
    color: var(--text-color);
    backdrop-filter: blur(10px); /* Glass effect */
}

/* Ensure links/text inside the ViewComponent look correct */
.serenade-dropdown form,
.serenade-dropdown select,
.serenade-dropdown label {
    color: var(--text-color) !important;
}

/* If the component uses a standard select, style it to match */
.serenade-dropdown .form-select {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--lamp-gold);
}

.serenade-dropdown .form-select option {
    background-color: var(--night-sky-top); /* Fixes white option background */
    color: #fff;
}

/* Fix for dropdown menus being obscured by main content or navbar */
.dropdown-menu {
    /* Bootstrap default is 1000. Increase it to guarantee stacking over any fixed/sticky content. */
    z-index: 1060 !important;
    /* Ensures the menu container itself has the dark background/glass effect */
    background-color: var(--night-sky-top);
    border: 1px solid var(--glass-border);
}

/* Make sure the navbar & its dropdowns sit above page content */
header,
header .navbar {
    position: relative;
    z-index: 2000; /* higher than cards/hero/etc. */
}

/* Extra safety: boost dropdown menus inside the navbar */
header .navbar .dropdown-menu {
    z-index: 2100;
}

/* --- FIX: DROPDOWN TEXT CONTRAST (BLACK ON BLACK) --- */

/* 1. Ensure all default text inside the dark menu is light. */
.dropdown-menu {
    color: var(--text-color);
    /* Sets the background color again, just in case */
    background-color: var(--night-sky-top);
}

/* 2. Target the links (.dropdown-item) and enforce light text color */
.dropdown-menu .dropdown-item {
    color: var(--text-color) !important;
    transition: background-color 0.2s, color 0.2s;
    /* Remove any border that might interfere */
    border: none !important;
}

/* 3. Style the hover state using theme colors (Gold/Pink) */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    /* Use a lightened background color matching the gold theme */
    background-color: rgba(255, 215, 0, 0.15) !important;
    color: var(--lamp-gold) !important;
}

/* 4. Fix nested button text (like the Sign Out link) */
.dropdown-menu .dropdown-item .btn-link {
    color: var(--text-color) !important;
    font-weight: normal;
}

/* Ensure the divider is visible */
.dropdown-divider {
    border-top: 1px solid var(--glass-border);
}

/* --- AMENITIES LIST FIX: Custom Dark List Group --- */

/* 1. Target the List Group Container (.list-group) */
.list-group.dark-list-group {
    /* Remove default light background set by Bootstrap's base .list-group class */
    background-color: transparent !important;
    /* Use the glass border for clean separation */
    border-color: var(--glass-border) !important;
}

/* 2. Target the List Items (.list-group-item) */
.list-group-item.dark-list-group-item {
    /* Make the item transparent so the card/body background shows through */
    background-color: transparent !important;
    /* Ensure text is light by default */
    color: var(--text-color) !important;
    /* Use theme separator color */
    border-color: var(--glass-border) !important;
    /* Ensure the icon color is visible */
    font-weight: 500;
}

/* 3. Handle Hover/Focus States */
.list-group-item.dark-list-group-item:hover,
.list-group-item.dark-list-group-item:focus {
    /* Apply a subtle theme background on hover */
    background-color: rgba(255, 255, 255, 0.08) !important;
    /* Highlight text with the primary gold/yellow */
    color: var(--lamp-gold) !important;
}

/* 4. Ensure Check/X Icons Maintain Correct Color */
.list-group-item.dark-list-group-item .text-success {
    /* Standard success color is usually light green; override it with gold for consistency */
    color: var(--lamp-gold) !important;
}

.list-group-item.dark-list-group-item .text-muted {
    /* Keep muted color slightly brighter for visibility */
    color: var(--text-muted) !important;
}

/* --- THEME OVERRIDE: Custom Callout Box (Used for Notices/Warnings) --- */
.themed-callout {
    /* Background: Use a dark, slightly transparent gradient to contrast with the deep body background */
    background: linear-gradient(90deg, rgba(251, 211, 141, 0.05) 0%, rgba(26, 19, 51, 0.9) 100%);
    /* Border: Use the heart-pink or lamp-gold for emphasis */
    border: 1px solid var(--heart-pink);
    border-left: 5px solid var(--lamp-gold); /* Strong emphasis line */

    color: var(--text-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.themed-callout h4,
.themed-callout strong {
    color: var(--lamp-gold) !important;
}

.themed-callout ol,
.themed-callout p {
    color: var(--text-color);
    opacity: 0.9;
}

/* Must be in site.css */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.1); /* Dark, transparent background for the box */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; /* Ensure text in the box is light */
}

/* This is often the trickiest part: forcing the individual options to display a dark background 
so the light text is readable when the menu drops down. */
.form-select option {
    background-color: var(--night-sky-top); /* Forces the menu background to be dark */
    color: #fff;
}

/* Add this to site.css to ensure date/time input text is gold */
.form-control[type="datetime-local"],
.form-control-dark-text {
    /* Ensures the entered text is theme-compliant light/gold */
    color: var(--lamp-gold) !important;
    /* Sets the blinking cursor color */
    caret-color: var(--heart-pink) !important;
    /* Ensures the input background is dark/transparent (from global form-control style) */
}

/* This is often necessary to style the icons/arrows inside date inputs */
.form-control[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Invert the color of the native icon (usually black) to white/light */
}

/* --- THEME OVERRIDE: Custom Info Callout Pop --- */
.themed-callout-info-pop {
    /* Background: Use a subtle dark background that hints at the Note Blue accent */
    background: linear-gradient(90deg, rgba(99, 179, 237, 0.1) 0%, rgba(26, 19, 51, 0.85) 100%);
    /* Border: Strong Note Blue border on the left */
    border: 1px solid var(--note-blue);
    border-left: 5px solid var(--note-blue);
    color: var(--text-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.themed-callout-info-pop h4 {
    /* Ensure header stands out with gold */
    color: var(--lamp-gold) !important;
}

.themed-callout-info-pop strong {
    /* Ensure strong text uses theme colors */
    font-weight: 700;
}

/* Toast animation: slide from top-right & fade in */
.toast.slide-in {
    opacity: 0;
    transform: translateY(-20px) translateX(20px); /* slight diagonal slide */
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.toast.slide-in.show {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Bounce-in animation */
@keyframes toast-bounce-in {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(10px) scale(1.03);
    }

    80% {
        transform: translateY(-5px) scale(0.98);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Apply the animation when toast becomes visible */
.toast.bounce-in.show {
    animation: toast-bounce-in 0.6s cubic-bezier(.34,1.56,.64,1) forwards;
}

.event-hero-card .card-body {
    padding: 0; /* full-bleed image */
}

.event-hero-img {
    width: 100%;
    max-width: none;
    height: 320px; /* adjust to taste: 280–420px works well */
    object-fit: cover; /* crop instead of squish */
    display: block;
    border-radius: 0 0 .5rem .5rem; /* or 0 if you prefer square corners */
}

/* Recommendation panel wrapper */
.recommendation-panel {
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Each recommendation row */
.recommendation-item {
    position: relative;
    padding: 0.85rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(90deg, #111827, #020617);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

    /* Last item border cleanup */
    .recommendation-item:last-child {
        border-bottom: none;
    }

/* Accent bar on the left of each item */
.recommendation-accent {
    width: 4px;
    border-radius: 999px;
    align-self: stretch;
    background: #6b7280;
}

    /* System vs user accent colors */
    .recommendation-accent.accent-system {
        background: linear-gradient(180deg, #22c55e, #16a34a);
    }

    .recommendation-accent.accent-user {
        background: linear-gradient(180deg, #eab308, #f97316);
    }

/* Hover effect to make them “pop” */
.recommendation-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.6);
    background: radial-gradient(circle at top left, #1f2937, #020617);
}

/* Title emphasis */
.recommendation-title {
    font-size: 1rem;
    color: #e5e7eb;
}

/* View button */
.recommendation-view-btn {
    white-space: nowrap;
    border-radius: 999px;
}

.recommendation-thumb-wrap {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommendation-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Make links readable inside dark tables */
.table-dark a.hpn-title,
.table-dark a.hpn-title:visited {
    color: var(--text-color) !important; /* or #f8f9fa */
}

    .table-dark a.hpn-title:hover,
    .table-dark a.hpn-title:focus {
        color: var(--lamp-gold) !important; /* or var(--heart-pink) */
        text-decoration: underline;
    }


/* Keep your dark theme – don't let list-group reset it to white */
.recommendation-list .list-group-item {
    background-color: transparent; /* use parent card background */
    color: inherit; /* keep existing text color */
    border-color: rgba(255, 255, 255, 0.12); /* subtle divider on dark bg */
}

/* Tiny thumbnail */
.recommendation-thumb-wrap {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommendation-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-on-dark {
    color: #f8f9fa; /* Bootstrap light */
}

    .link-on-dark:hover {
        color: #ffffff; /* pure white on hover */
    }

.table a.hpn-title {
    color: var(--bs-light);
}

    .table a.hpn-title:hover {
        color: #fff;
        text-decoration: underline;
    }


/* Force table background to pure black */
.table-midnight {
    background-color: #000000 !important;
    border-color: #333 !important; /* Subtle border for separation */
}

    /* Ensure individual cells are also black (Bootstrap sometimes overrides this) */
    .table-midnight td,
    .table-midnight th {
        background-color: #000000 !important;
        color: #ffffff; /* Bright white text for maximum pop */
        border-bottom: 1px solid rgba(255, 215, 0, 0.2); /* Faint gold separator */
    }

    /* Make the hover effect a deep rich gray/gold mix instead of standard gray */
    .table-midnight tbody tr:hover td {
        background-color: #111111 !important; /* Very subtle lift */
        cursor: pointer;
    }

.cat.is-selected {
    background: linear-gradient(90deg, #ff5a82, #5cc6ff) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 12px 26px rgba(255,90,130,.18) !important;
}

/* Profile Drawer Styles */
.profile-hero {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    /* Gradient overlay for text readability */
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(33,37,41,1));
}

.profile-avatar-container {
    position: absolute;
    bottom: -40px;
    left: 20px;
    border-radius: 50%;
    padding: 4px;
    background: #212529; /* Matches offcanvas bg */
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #212529;
}

.offcanvas-body-custom {
    padding-top: 50px; /* Space for the avatar overlap */
    padding-bottom: 80px; /* Space for sticky footer */
}

.sticky-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: rgba(33, 37, 41, 0.95);
    border-top: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

/* --- Global Status Bar --- */
.status-bar {
    display: none;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-success {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 78, 59, 0.6) 100%);
    border-left: 4px solid #34d399;
}

.status-warning {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(120, 53, 15, 0.6) 100%);
    border-left: 4px solid #fbbf24;
}

.status-error {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, rgba(127, 29, 29, 0.6) 100%);
    border-left: 4px solid #f87171;
}

.status-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
}

/* Tile Icon (Small square in the list) */
.tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0; /* Prevent squishing */
}

/* Details Icon (Larger square in the offcanvas header) */
.details-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Ensure the X is always visible on top of any image */
.btn-close-hero {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    /* The Magic: Dark semi-transparent bubble */
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    padding: 10px; /* Bigger touch target */
    box-sizing: content-box; /* Keeps the X icon size correct */
    width: 1em;
    height: 1em;
    transition: all 0.2s ease;
}

.btn-close-hero:hover {
    background-color: rgba(0, 0, 0, 0.85); /* Darker on hover */
    transform: scale(1.1); /* Subtle zoom */
}

/* Dark modal list styling */
#venuePickerModal .list-group-item {
    background-color: #0b0d10;
    color: #e9ecef;
    border-color: rgba(255,255,255,0.15);
}

#venuePickerModal .list-group-item:hover,
#venuePickerModal .list-group-item:focus {
    background-color: #12161c;
    color: #fff;
}

#venuePickerModal .list-group-item.active {
    background-color: rgba(255, 193, 7, 0.18); /* warning glow */
    border-color: rgba(255, 193, 7, 0.45);
    color: #fff;
}

#venuePickerModal .form-control::placeholder {
    color: rgba(255,255,255,0.45);
}

