@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    /* Brand Colors */
    --primary-orange: #FF5722;
    --primary-red: #E60000;
    --dark-bg: #0A0A0C;
    --card-bg: rgba(22, 22, 26, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-overlay: rgba(10, 10, 12, 0.85);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0AB;
    --accent-glow: rgba(255, 87, 34, 0.25);

    /* Timetable Scaling variables (Modified dynamically by JS) */
    --zoom-factor: 1.0;
    --base-min-width: 3.5px;
    /* pixels per minute */
    --minute-width: calc(var(--base-min-width) * var(--zoom-factor));

    --base-row-height: 95px;
    --row-height: calc(var(--base-row-height) * var(--zoom-factor));

    --base-header-width: 180px;
    --header-width: calc(var(--base-header-width) * var(--zoom-factor));

    --base-font-size: 14px;
    --font-size-main: calc(var(--base-font-size) * var(--zoom-factor));
    --font-size-sub: calc((var(--base-font-size) - 3px) * var(--zoom-factor));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.9) 0%, rgba(5, 5, 6, 0.98) 100%),
        url('/images/1742835588-closing_red.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 24px;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand h1 {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand span {
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.header-brand-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-toggle-btn {
    display: none;
}

.header-collapsible-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    gap: 16px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Custom Dropdown/Selector */
.user-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    transition: border-color 0.2s;
}

.user-selector-wrapper:hover {
    border-color: var(--primary-orange);
}

.user-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px currentColor;
    display: inline-block;
}

.user-select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    padding-right: 6px;
}

.user-select option {
    background: #141416;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-red));
    color: white;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(230, 0, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--primary-red);
    color: white;
}

.btn-danger:hover {
    background: #b71c1c;
}

/* Filter Controls */
.filter-group {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 10px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: rgba(255, 87, 34, 0.15);
    color: var(--primary-orange);
    border: 1px solid rgba(255, 87, 34, 0.3);
}

/* Day Tabs */
.tabs-container {
    max-width: 1600px;
    margin: 20px auto 10px;
    padding: 0 24px;
    display: flex;
    gap: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-orange);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-red));
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 10px var(--primary-orange);
}

/* Timetable Container */
.timetable-section {
    max-width: 1600px;
    margin: 0 auto 40px;
    padding: 0 24px;
    position: relative;
}

.timetable-wrapper {
    background: var(--glass-overlay);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.timetable-viewport {
    width: 100%;
    overflow: auto;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.timetable-viewport:active {
    cursor: grabbing;
}

.timetable-grid {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Time axis header */
.time-axis-header {
    display: flex;
    width: 100%;
    height: 40px;
    position: sticky;
    top: 0;
    background: #111115;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.time-axis-spacer {
    width: var(--header-width);
    flex-shrink: 0;
    background: #111115;
    border-right: 2px solid rgba(255, 255, 255, 0.08);
}

.time-axis-labels {
    position: relative;
    width: 100%;
    height: 100%;
    /* Hourly grid lines matching the canvas grid */
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: calc(60 * var(--minute-width)) 100%;
}

.time-axis-label {
    position: absolute;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-axis-label:first-child {
    transform: translateX(0);
    padding-left: 8px;
}

/* Stages Rows */
.stage-row {
    display: flex;
    height: var(--row-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

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

.stage-info-header {
    width: var(--header-width);
    height: 100%;
    flex-shrink: 0;
    position: relative;
    border-right: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 12px;
    color: white;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.stage-info-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

.stage-info-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.stage-name {
    font-weight: 900;
    font-size: clamp(12px, calc(16px * var(--zoom-factor)), 22px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stage-host {
    font-size: clamp(9px, calc(11px * var(--zoom-factor)), 13px);
    color: var(--text-secondary);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.host-star-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 2px;
    transition: all 0.2s;
}

.host-star-btn:hover {
    color: #ffd700;
    transform: scale(1.15);
}

.host-star-btn.active {
    color: #ffd700;
}

/* Set Tiles Canvas */
.stage-sets-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    /* Horizontal lines pattern placeholder for timeline grid */
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: calc(60 * var(--minute-width)) 100%;
    /* Line every 60 minutes */
}

/* Set Card Tile */
.set-card {
    position: absolute;
    top: calc(8px * var(--zoom-factor));
    bottom: calc(8px * var(--zoom-factor));
    left: calc(var(--start-minutes) * var(--minute-width));
    width: calc(var(--duration-minutes) * var(--minute-width));
    background: rgba(30, 30, 35, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: calc(8px * var(--zoom-factor));
    padding: calc(6px * var(--zoom-factor)) calc(10px * var(--zoom-factor));
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    z-index: 10;
}

.set-card:hover {
    background: rgba(40, 40, 48, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 1px 1px var(--primary-orange);
    z-index: 11;
}

.set-card.my-favorite {
    border-color: var(--user-fav-color, var(--primary-orange));
    background: rgba(255, 87, 34, 0.06);
    box-shadow: inset 0 0 8px rgba(255, 87, 34, 0.03);
}

.set-card-content {
    width: 100%;
    overflow: hidden;
}

.set-artist {
    font-weight: 700;
    font-size: var(--font-size-main);
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-right: calc(18px * var(--zoom-factor));
    /* space for star */
}

.set-time {
    font-size: var(--font-size-sub);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Star Favorite Toggle */
.star-btn {
    position: absolute;
    top: calc(6px * var(--zoom-factor));
    right: calc(8px * var(--zoom-factor));
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    font-size: calc(14px * var(--zoom-factor));
    padding: calc(2px * var(--zoom-factor));
    transition: all 0.2s;
    z-index: 25;
}

.star-btn:hover {
    color: #FFD700;
    transform: scale(1.2);
}

.star-btn.active {
    color: #FFD700;
}

/* User Bubbles */
.tile-bubbles {
    position: absolute;
    bottom: calc(6px * var(--zoom-factor));
    right: calc(8px * var(--zoom-factor));
    display: flex;
    gap: calc(3px * var(--zoom-factor));
    align-items: center;
    z-index: 20;
}

.bubble {
    width: calc(18px * var(--zoom-factor));
    height: calc(18px * var(--zoom-factor));
    border-radius: 50%;
    font-size: calc(9px * var(--zoom-factor));
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
}

.bubble-plus {
    background: #3F3F46;
    color: #D4D4D8;
    font-size: calc(8px * var(--zoom-factor));
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Current Time Indicator Line */
.current-time-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-orange), var(--primary-red));
    box-shadow: 0 0 8px var(--primary-orange), 0 0 15px var(--primary-red);
    left: calc(var(--header-width) + (var(--current-time-minutes) * var(--minute-width)));
    z-index: 90;
    pointer-events: none;
}

.current-time-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 8px var(--primary-orange);
}

/* Float Controls (Zoom) */
.float-controls {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 500;
}

.float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.2s;
}

.float-btn:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: scale(1.05);
}

/* Popups & Modals (Universal Style) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #141418;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: white;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Settings & Groups Modal styling */
.settings-card {
    max-width: 800px !important;
    width: 90%;
    background: #1C1C1E !important;
    color: #FFFFFF;
    border-radius: 16px;
}

.settings-card .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
}

.settings-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px;
    min-height: 450px;
    overflow-y: auto;
    max-height: calc(85vh - 120px);
}

.settings-left-panel {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-left-panel-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Detail Modal Styles */
.detail-stage {
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary-orange);
    margin-bottom: 6px;
}

.detail-artist {
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 12px;
}

.detail-time {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.detail-user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.detail-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.empty-favorites-text {
    font-size: 13px;
    font-style: italic;
    color: var(--text-secondary);
}

/* Admin Modal Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-orange);
}

.color-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-picker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.color-picker::-webkit-color-swatch {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-picker::-moz-color-swatch {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 18px;
    padding-right: 6px;
}

.admin-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Time Mock Controls Panel */
.mock-control-panel {
    background: rgba(20, 20, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 16px;
    margin: 10px auto 0;
    max-width: 1600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mock-time-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.mock-time-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mock-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    outline: none;
}

/* Utilities */
.text-danger {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 4px;
}

.hidden {
    display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

/* Top Menu links style */
.page-menu {
    display: flex;
    gap: 8px;
}

.menu-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.menu-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.menu-link.active {
    color: var(--primary-orange);
    background: rgba(255, 87, 34, 0.12);
    border: 1px solid rgba(255, 87, 34, 0.25);
}

/* Search Section styles */
.search-section {
    max-width: 1600px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.search-container {
    background: var(--glass-overlay);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-height: 400px;
}

.search-bar-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 24px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    padding: 12px 12px 12px 44px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.2);
}

.search-day-group {
    margin-bottom: 30px;
}

.search-day-group:last-child {
    margin-bottom: 0;
}

.search-day-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-orange);
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    margin-bottom: 16px;
}

.search-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.search-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 60px 0;
}

.search-placeholder-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.search-placeholder p {
    font-size: 14px;
    font-weight: 500;
}

/* Search Tile Card */
.search-set-card {
    position: relative;
    width: 100%;
    height: calc(90px * var(--zoom-factor));
    background: rgba(30, 30, 35, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: calc(8px * var(--zoom-factor));
    padding: calc(8px * var(--zoom-factor)) calc(12px * var(--zoom-factor));
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.search-set-card:hover {
    background: rgba(40, 40, 48, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 1px 1px var(--primary-orange);
}

.search-set-card.my-favorite {
    border-color: var(--user-fav-color, var(--primary-orange));
    background: rgba(255, 87, 34, 0.06);
    box-shadow: inset 0 0 8px rgba(255, 87, 34, 0.03);
}

.search-stage-time {
    font-size: var(--font-size-sub);
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive fixes */
@media (max-width: 768px), (max-height: 600px) {
    header {
        padding: 12px 16px;
    }

    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }

    .header-brand-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .header-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: var(--text-primary);
        width: 36px;
        height: 36px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .header-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .header-collapsible-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-height: 500px;
        opacity: 1;
        margin-top: 10px;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
        overflow: hidden;
    }

    .header-collapsible-content.collapsed {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        pointer-events: none;
    }

    .nav-controls {
        justify-content: space-between;
    }

    .tabs-container {
        padding: 0 16px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .timetable-section {
        padding: 0 16px;
    }

    .mock-control-panel {
        margin: 10px 16px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-card {
        width: 95% !important;
        margin: 10px auto;
    }

    .settings-card .modal-header {
        padding: 16px 20px;
    }

    .settings-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        min-height: auto;
        max-height: calc(85vh - 80px);
    }

    .settings-left-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 20px;
    }

    .settings-left-panel-actions {
        margin-top: 10px;
    }
}

/* Map Section Styles */
.map-section {
    max-width: 1600px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.map-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 150px);
    min-height: 500px;
    background: var(--glass-overlay);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#map-canvas {
    width: 100%;
    height: 100%;
}

/* Floating Overlay Control Panel on the Map */
.map-overlay-panel {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    background: rgba(20, 20, 24, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    width: 260px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-overlay-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.map-day-select {
    display: flex;
    gap: 4px;
}

.map-day-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 6px 4px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.map-day-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.map-day-btn.active {
    color: var(--primary-orange);
    background: rgba(255, 87, 34, 0.15);
    border-color: rgba(255, 87, 34, 0.4);
}

.map-action-controls {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
}

/* Toast / Status indicator when in Place Mode */
.map-status-toast {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255, 87, 34, 0.95);
    color: white;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 87, 34, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
    }
}

/* Mapbox Popup Theme Override */
.mapboxgl-popup-content {
    background: #141418 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    font-family: inherit !important;
}

.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
    border-bottom-color: #141418 !important;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: #141418 !important;
}

.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
    border-right-color: #141418 !important;
}

.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    border-left-color: #141418 !important;
}

.mapboxgl-popup-close-button {
    color: var(--text-secondary) !important;
    font-size: 16px !important;
    padding: 4px 8px !important;
    outline: none !important;
}

.mapboxgl-popup-close-button:hover {
    color: white !important;
    background: transparent !important;
}

/* Custom Marker CSS Badge */
.custom-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.custom-map-marker i {
    transform: rotate(45deg);
    color: white;
    font-size: 14px;
}

.custom-map-marker:hover {
    transform: scale(1.15) rotate(-45deg);
}

/* Marker details inside Popups */
.marker-popup-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--primary-orange);
}

.marker-popup-creator {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.btn-delete-marker {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff453a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-delete-marker:hover {
    background: #ff3b30;
    color: white;
}

.btn-share-marker {
    background: rgba(255, 87, 34, 0.15);
    border: 1px solid rgba(255, 87, 34, 0.3);
    color: var(--primary-orange);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-share-marker:hover {
    background: var(--primary-orange);
    color: white;
}


/* Icon Selector for Custom Markers Modal */
.icon-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-option i {
    font-size: 18px;
    color: var(--text-secondary);
}

.icon-option span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.icon-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-option.active {
    background: rgba(255, 87, 34, 0.15);
    border-color: var(--primary-orange);
}

.icon-option.active i,
.icon-option.active span {
    color: var(--primary-orange);
}

/* Simplified View Timeline list */
.simplified-list-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.simplified-card {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--primary-orange);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.simplified-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.simplified-card-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.simplified-artist {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.simplified-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.simplified-stage {
    font-weight: 700;
    text-transform: uppercase;
}

.simplified-time {
    color: #a0a0ab;
    display: flex;
    align-items: center;
    gap: 4px;
}

.simplified-star-btn {
    background: transparent;
    border: none;
    color: #ffd700;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    outline: none;
}

.simplified-star-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.simplified-empty {
    text-align: center;
    padding: 48px 16px;
    color: #a0a0ab;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.simplified-empty i {
    font-size: 32px;
    color: var(--primary-orange);
}