/* ════════════════════════════════════════════════════════════
   PODIA STAGE MANAGER — Premium Design System
   ════════════════════════════════════════════════════════════ */

:root {
    /* Palette */
    --bg-dark: #080c18;
    --bg-dark-alt: #0d1225;
    --bg-surface: rgba(16, 24, 48, 0.85);
    --bg-surface-hover: rgba(24, 36, 68, 0.9);
    --bg-card: rgba(20, 30, 60, 0.6);

    /* Accents */
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.25);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.2);
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #7c8db5;
    --text-muted: #4b5c80;

    /* Borders */
    --border-color: rgba(100, 140, 220, 0.12);
    --border-hover: rgba(100, 140, 220, 0.25);
    --border-active: rgba(59, 130, 246, 0.5);

    /* Effects */
    --glass-blur: blur(20px);
    --glass-blur-heavy: blur(40px);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--accent-blue-glow);

    /* Sizing */
    --header-h: 60px;
    --sidebar-w: 300px;
    --tool-panel-w: 56px;
    --bottom-bar-h: 72px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { font-size: 15px; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.06), transparent),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(139, 92, 246, 0.04), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(100, 140, 220, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(100, 140, 220, 0.3); }

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
header {
    height: var(--header-h);
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 300;
    position: relative;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle {
    display: none;
    width: 38px; height: 38px;
    border: none; background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}
.sidebar-toggle:hover {
    background: var(--accent-blue);
    color: white;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo span {
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

.brand-logo-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
    transition: transform 0.4s var(--ease-spring);
}

.logo:hover .brand-logo-svg {
    transform: rotate(12deg) scale(1.12);
}

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

.header-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease-out);
}
.view-badge.musician-view {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

#plan-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#plan-name:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

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

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    user-select: none;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

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

.btn-primary {
    background: var(--accent-blue);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 12px var(--accent-blue-glow);
}
.btn-primary:hover {
    background: #4f8ff7;
    box-shadow: 0 4px 20px var(--accent-blue-glow);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-duplicate {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--accent-purple);
}
.btn-duplicate:hover {
    background: rgba(139, 92, 246, 0.25);
}

.btn-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}

.btn-icon {
    width: 36px; height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.72rem;
}

/* ════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    left: 12px;
    top: calc(var(--header-h) + 12px);
    bottom: calc(var(--bottom-bar-h) + 24px);
    width: var(--sidebar-w);
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
    overflow: hidden;
}

.sidebar-section {
    flex-shrink: 0;
}

.sidebar-section.scrollable {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-section.scrollable .musician-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.section-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.section-title .badge {
    font-size: 0.65rem;
    background: var(--accent-blue);
    color: white;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

/* Tool icons grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 4px;
}

.tool-icon {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease-out);
    gap: 3px;
    user-select: none;
}

.tool-icon span {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tool-icon:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    transform: translateY(-1px);
}

.tool-icon.active {
    background: var(--accent-blue);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 12px var(--accent-blue-glow);
}

.tool-icon[draggable="true"] {
    cursor: grab;
}

.tool-icon[draggable="true"]:active {
    cursor: grabbing;
    opacity: 0.6;
}

.tool-icon.dragging {
    opacity: 0.4;
    transform: scale(0.9);
}

/* Drag ghost overlay */
.drag-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 9000;
    padding: 8px 14px;
    background: var(--accent-blue);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 20px var(--accent-blue-glow);
    opacity: 0.9;
    white-space: nowrap;
}

/* Row generator */
.row-gen-form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.row-gen-form input {
    flex: 1;
    min-width: 0;
}

.row-gen-form .btn {
    width: 100%;
}

/* Musician list */
.musician-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.musician-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: grab;
    transition: all 0.2s var(--ease-out);
    position: relative;
}

.musician-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.musician-item:active { cursor: grabbing; }

.musician-item .color-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.musician-item .info {
    flex: 1;
    min-width: 0;
}

.musician-item .info .name {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.musician-item .info .instrument {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.musician-item .actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.musician-item:hover .actions { opacity: 1; }

.musician-item .actions button {
    width: 24px; height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.15s;
}

.musician-item .actions button:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}
.musician-item .actions button.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.checkin-url-btn {
    width: 22px; height: 22px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    transition: all 0.15s;
    flex-shrink: 0;
}

.checkin-url-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

/* Properties panel */
.properties-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prop-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.prop-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.prop-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.prop-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Multi-select info bar */
.multi-select-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-purple);
}

.multi-select-info i {
    font-size: 0.85rem;
}

/* Multi-select count badge */
.multi-select-badge {
    position: fixed;
    bottom: calc(var(--bottom-bar-h) + 40px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--accent-purple);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--accent-purple-glow);
    z-index: 250;
    pointer-events: none;
    animation: badgePop 0.3s var(--ease-spring);
    white-space: nowrap;
}

@keyframes badgePop {
    0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Multi-selection visual feedback on canvas */
.multi-selected {
    outline: 2px dashed var(--accent-purple);
    outline-offset: 3px;
}

/* ════════════════════════════════════════════════════════════
   FORMS & INPUTS SYSTEM
   ════════════════════════════════════════════════════════════ */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Beautiful Icon Wrapper inside Input Fields */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
    z-index: 2;
}

/* Text inputs, select inputs, date/time inputs, textareas */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 11px 16px;
    background: rgba(8, 12, 24, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(4px);
    -webkit-appearance: none;
}

/* With icon */
.input-icon-wrapper input,
.input-icon-wrapper select {
    padding-left: 40px !important;
}

/* Hover and Focus States */
input[type="text"]:hover,
input[type="number"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="datetime-local"]:hover,
select:hover,
textarea:hover {
    background: rgba(16, 24, 48, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    background: rgba(4, 6, 12, 0.8);
    border-color: var(--accent-blue);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.25), inset 0 1px 2px rgba(0,0,0,0.4);
}

/* Icon response to Focus */
.input-icon-wrapper input:focus + i,
.input-icon-wrapper select:focus + i {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.form-group:focus-within label {
    color: var(--text-primary);
}

/* Styled HTML5 Datetime Picker */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(50%) saturate(1000%) hue-rotate(190deg) brightness(0.9);
    cursor: pointer;
    transition: transform 0.2s ease;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    transform: scale(1.15);
}

/* Custom Select drop-down indicator */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%237c8db5' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%233b82f6' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
}

select option {
    background: var(--bg-dark-alt);
    color: var(--text-primary);
    padding: 8px;
}

/* Beautiful custom range slider style */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    outline: none;
    margin: 8px 0;
    transition: background 0.3s;
}

input[type="range"]:hover {
    background: rgba(255, 255, 255, 0.1);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: 2.5px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.22);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.8), 0 0 0 6px rgba(59, 130, 246, 0.15);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: 2.5px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.22);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.8), 0 0 0 6px rgba(59, 130, 246, 0.15);
}

input[type="range"]::-moz-range-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    height: 7px;
    border: none;
}

/* Color Picker element styling */
input[type="color"] {
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    width: 54px;
    height: 38px;
    cursor: pointer;
    padding: 3px;
    transition: border-color 0.2s, transform 0.2s;
}
input[type="color"]:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}
input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ════════════════════════════════════════════════════════════
   TOOL PANEL (Right side)
   ════════════════════════════════════════════════════════════ */
.tool-panel {
    position: fixed;
    right: 12px;
    top: calc(var(--header-h) + 12px);
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 200;
}

.tool-panel .tool-btn {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s var(--ease-out);
    position: relative;
}

.tool-panel .tool-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
}

.tool-panel .tool-btn.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 2px 12px var(--accent-blue-glow);
}

.tool-panel .divider {
    width: 24px;
    height: 1px;
    background: var(--border-color);
    margin: 4px auto;
}

/* Tooltip */
.tool-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 10px;
    background: var(--bg-dark-alt);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(-50%) translateX(5px);
}

.tool-btn[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ════════════════════════════════════════════════════════════
   CANVAS
   ════════════════════════════════════════════════════════════ */
#stage-container {
    flex: 1;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(rgba(100, 140, 220, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    cursor: crosshair;
    position: relative;
    z-index: 1;
}

#stage-container.panning {
    cursor: grab;
}
#stage-container.panning:active {
    cursor: grabbing;
}

#stage-container.drag-over {
    outline: 2px dashed var(--accent-blue);
    outline-offset: -4px;
    background-color: rgba(59, 130, 246, 0.03);
}

/* ════════════════════════════════════════════════════════════
   BOTTOM BAR
   ════════════════════════════════════════════════════════════ */
.bottom-bar {
    position: fixed;
    bottom: 12px;
    left: calc(var(--sidebar-w) + 32px);
    right: calc(var(--tool-panel-w) + 32px);
    height: var(--bottom-bar-h);
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 200;
}

.stats-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    text-align: center;
    min-width: 60px;
}

.stat-value {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.bar-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
    flex-shrink: 0;
}

.floor-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.floor-selector label {
    margin: 0;
    white-space: nowrap;
    font-size: 0.7rem;
}

.floor-selector select {
    width: auto;
    min-width: 100px;
    padding: 6px 28px 6px 10px;
    font-size: 0.75rem;
}

/* ════════════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-dark-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s var(--ease-spring);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    width: 32px; height: 32px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}
.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ════════════════════════════════════════════════════════════
   TEMPLATES GRID
   ════════════════════════════════════════════════════════════ */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.template-card {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: all 0.25s var(--ease-out);
}

.template-card:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.template-card .icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.template-card .name {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.template-card .desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════
   PLANS LIST
   ════════════════════════════════════════════════════════════ */
.plans-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.plan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.plan-item:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

.plan-item .plan-info .plan-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.plan-item .plan-info .plan-date {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════
   AI ANALYSIS PANEL
   ════════════════════════════════════════════════════════════ */
.analysis-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.analysis-card {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.analysis-card h4 {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.analysis-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.analysis-card ul {
    list-style: none;
    padding: 0;
}

.analysis-card ul li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.analysis-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* ════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ════════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-dark-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastIn 0.4s var(--ease-spring) forwards;
    overflow: hidden;
    position: relative;
}

.toast.removing {
    animation: toastOut 0.3s var(--ease-out) forwards;
}

.toast .toast-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.toast .toast-msg {
    font-size: 0.8rem;
    font-weight: 500;
    flex: 1;
}

.toast .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 0 0 0 var(--radius);
    animation: toastProgress 3s linear forwards;
}

.toast.success { border-left: 3px solid var(--accent-green); }
.toast.success .toast-icon { color: var(--accent-green); }
.toast.success .toast-progress { background: var(--accent-green); }

.toast.error { border-left: 3px solid var(--accent-red); }
.toast.error .toast-icon { color: var(--accent-red); }
.toast.error .toast-progress { background: var(--accent-red); }

.toast.info { border-left: 3px solid var(--accent-blue); }
.toast.info .toast-icon { color: var(--accent-blue); }
.toast.info .toast-progress { background: var(--accent-blue); }

.toast.warning { border-left: 3px solid var(--accent-amber); }
.toast.warning .toast-icon { color: var(--accent-amber); }
.toast.warning .toast-progress { background: var(--accent-amber); }

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* ════════════════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 20px 10px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   KEYBOARD SHORTCUT HINT
   ════════════════════════════════════════════════════════════ */
kbd {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.shortcut-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    justify-content: center;
}

.shortcut-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════
   LOADING SPINNER
   ════════════════════════════════════════════════════════════ */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════
   CHECKIN URL SECTION
   ════════════════════════════════════════════════════════════ */
.checkin-url-section {
    padding: 10px;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.checkin-url-section .section-label {
    font-size: 0.68rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkin-url-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

.checkin-url-row input {
    flex: 1;
    font-size: 0.7rem;
    padding: 5px 8px;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════
   RESPONSIVE — PANTALLAS ANCHAS INTERMEDIAS (≤1150px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1150px) {
    .header-actions .btn span.btn-text {
        display: none;
    }
    .header-actions .btn {
        padding: 0;
        width: 38px; height: 38px;
        justify-content: center;
    }
    #plan-name {
        max-width: 130px;
    }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root {
        --sidebar-w: 250px;
    }

    .bottom-bar {
        left: calc(var(--sidebar-w) + 24px);
        right: calc(var(--tool-panel-w) + 24px);
    }

    #plan-name { display: none; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — PC CON BAJA ALTURA VERTICAL (≤800px)
   ════════════════════════════════════════════════════════════ */
@media (max-height: 800px) {
    .sidebar {
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .sidebar-section {
        flex-shrink: 0 !important;
        margin-bottom: 12px;
    }
    .sidebar-section.scrollable {
        flex: none !important;
        height: auto !important;
        overflow-y: visible !important;
    }
    .sidebar-section.scrollable .musician-list {
        max-height: 180px !important;
        overflow-y: auto !important;
        flex: none !important;
    }
    .properties-panel {
        max-height: none !important;
    }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE & TABLET (≤768px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --sidebar-w: 280px;
        --header-h: 54px;
        --bottom-bar-h: auto;
    }

    .sidebar-toggle { display: flex; }

    .sidebar {
        left: 0;
        top: var(--header-h);
        bottom: 0;
        border-radius: 0 var(--radius) var(--radius) 0;
        transform: translateX(-100%);
        opacity: 0;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        z-index: 400;
    }

    .sidebar.open {
        transform: translateX(0);
        opacity: 1;
    }

    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        top: var(--header-h);
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 350;
    }

    .sidebar-backdrop.active {
        display: block;
    }

    .tool-panel {
        top: auto;
        bottom: 80px;
        right: 12px;
        flex-direction: row;
        border-radius: var(--radius);
        z-index: 200;
    }

    .tool-panel .divider {
        width: 1px;
        height: 24px;
    }

    .tool-btn[data-tooltip]::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: calc(100% + 10px);
        transform: translateX(-50%);
    }

    .tool-btn[data-tooltip]:hover::after {
        transform: translateX(-50%);
    }

    .bottom-bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
        height: auto;
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .stats-group {
        gap: 16px;
        flex-wrap: wrap;
    }

    .bar-divider { display: none; }

    .floor-selector {
        width: 100%;
        justify-content: center;
        padding-top: 6px;
        border-top: 1px solid var(--border-color);
    }

    .header-center { display: none; }

    .modal {
        width: 95%;
        max-width: none;
        margin: 16px;
        max-height: 90vh;
    }

    .modal-lg {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .dashboard-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        overflow-y: auto !important;
        height: 100% !important;
    }

    /* Column switcher only for performances tab in mobile */
    #dashboard-content-performances {
        display: block !important;
        position: relative !important;
        height: calc(100% - 60px) !important;
        overflow: hidden !important;
        margin-top: 10px;
        background: transparent !important;
        border: none !important;
    }

    #dashboard-content-performances .dashboard-col {
        display: none !important;
        width: 100% !important;
        height: 100% !important;
        overflow-y: auto !important;
        opacity: 0;
        border-radius: 12px;
        background: rgba(10, 16, 32, 0.6) !important;
    }

    #dashboard-content-performances.active-col-1 .dashboard-col:nth-child(1),
    #dashboard-content-performances.active-col-2 .dashboard-col:nth-child(2),
    #dashboard-content-performances.active-col-3 .dashboard-col:nth-child(3) {
        display: flex !important;
        opacity: 1;
        animation: slideInColumn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes slideInColumn {
        from { transform: translateX(15px); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

    .dashboard-col {
        flex-shrink: 0 !important;
        height: auto !important;
        max-height: none !important;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .multi-select-badge {
        bottom: 70px;
    }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MÓVILES MEDIANOS (≤520px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 520px) {
    header {
        padding: 0 8px;
    }
    .header-actions {
        gap: 4px;
    }
    .header-actions .btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .sidebar-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    .logo {
        font-size: 1.1rem;
    }
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    html { font-size: 14px; }

    .logo { font-size: 1.2rem; }

    .btn span.btn-text { display: none; }

    .stat-item { min-width: 50px; }
    .stat-value { font-size: 1rem; }
}

/* ════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ════════════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 6px; }
.gap-md { gap: 12px; }
.gap-lg { gap: 20px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ════════════════════════════════════════════════════════════
   INSTRUMENT PREVIEW
   ════════════════════════════════════════════════════════════ */
.instrument-preview-box {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.instrument-icon-small {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* ════════════════════════════════════════════════════════════
   3D VIEW
   ════════════════════════════════════════════════════════════ */
#threed-container {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    bottom: var(--bottom-bar-h);
    z-index: 100;
    background: #000;
}

#threed-toggle.active {
    background: var(--accent-amber);
    color: white;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Selection colors */
::selection {
    background: var(--accent-blue);
    color: white;
}

/* ════════════════════════════════════════════════════════════
   PERFORMANCES & RSVP DASHBOARD STYLES
   ════════════════════════════════════════════════════════════ */

.modal-lg {
    max-width: 1150px;
    width: 95vw;
    height: 85vh;
    max-height: 85vh !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.modal-lg .modal-body {
    flex: 1;
    overflow: hidden;
    padding-top: 10px;
}

.modal-sm {
    max-width: 400px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 20px;
    height: 100%;
}

.dashboard-col {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.dashboard-col.scrollable {
    overflow-y: auto;
}

.dashboard-col h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    flex-shrink: 0;
}

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

.performances-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
}

.performance-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.performance-item:hover {
    background: rgba(59, 130, 246, 0.06);
    border-color: var(--accent-blue);
}

.performance-item .perf-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.performance-item .perf-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.performance-detail-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.detail-header-card {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius);
    padding: 16px;
}

.detail-header-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--text-main);
    border-bottom: none;
    padding-bottom: 0;
}

.detail-header-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.rsvp-lists-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    flex: 1;
    overflow: hidden;
}

.rsvp-list-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.2);
    height: 100%;
    overflow: hidden;
}

.rsvp-list-box h4 {
    margin: 0 0 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rsvp-scroll-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rsvp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

.rsvp-name {
    display: flex;
    flex-direction: column;
}

.rsvp-name strong {
    font-size: 0.8rem;
    color: var(--text-main);
}

.rsvp-name span {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.rsvp-list-box .no-data {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 20px 0;
    margin: 0;
}

#account-btn.logged-in {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--accent-green);
    color: var(--accent-green);
}


/* ════════════════════════════════════════════════════════════
   GÉNERO RÍTMICO TRADICIONAL
   ════════════════════════════════════════════════════════════ */
.genre-info-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.genre-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.genre-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.genre-info-header i {
    font-size: 1rem;
    animation: drumPulse 2s infinite ease-in-out;
}

@keyframes drumPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.genre-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 0 12px 0 !important;
}

.genre-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}

.genre-meta-item {
    display: flex;
    flex-direction: column;
}

.genre-meta-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.genre-meta-value {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 2px;
}

/* ─── Gestor de Plantillas de Músicos (Tabs & Editor) ─── */
.dashboard-tabs .tab-btn {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
}
.dashboard-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
.dashboard-tabs .tab-btn.active {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
}

/* Tabla de miembros en el editor */
.template-members-table th {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
}
.template-members-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.template-members-table input:focus {
    outline: none;
    border-bottom-color: var(--accent-blue) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Adaptación responsive para el grid del dashboard */
@media (max-width: 992px) {
    #dashboard-content-templates {
        grid-template-columns: 1fr !important;
    }
}

/* ─── Sync Status Indicator (LED Dot) ─── */
.sync-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-green);
    transition: all 0.3s var(--ease-out);
    user-select: none;
}

.sync-status i {
    font-size: 0.75rem;
}

.sync-status.saving {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--accent-amber);
    animation: sync-pulse 1.2s ease-in-out infinite;
}

.sync-status.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

@keyframes sync-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; transform: scale(1.02); }
}

/* ════════════════════════════════════════════════════════════
   MODERN DASHBOARD OPTIMIZATIONS (PREMIUM REDESIGN)
   ════════════════════════════════════════════════════════════ */

/* Glassmorphism updates */
.modal-lg {
    background: rgba(8, 12, 22, 0.75) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(59, 130, 246, 0.05) !important;
    border-radius: 18px !important;
}

.dashboard-col {
    background: rgba(13, 20, 38, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 18px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-col:hover {
    border-color: rgba(59, 130, 246, 0.12) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.02);
}

/* Form block modifications */
.form-row-stacked {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Premium performance card */
.performance-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    padding: 14px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.performance-item:hover {
    background: rgba(59, 130, 246, 0.05) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Segment Selector Styles */
.mobile-column-selector {
    display: none;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4px;
    margin: 8px 16px 12px;
    gap: 4px;
    flex-shrink: 0;
}

.mobile-column-selector .selector-btn {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-muted);
    padding: 10px 6px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-column-selector .selector-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

@media (max-width: 768px) {
    .mobile-column-selector {
        display: flex;
    }
}

/* Dynamic search input inside columns */
.dashboard-search-wrapper {
    position: relative;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.dashboard-search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.3s;
    z-index: 2;
}

.dashboard-search-wrapper input {
    padding-left: 38px !important;
}

.dashboard-search-wrapper input:focus + i {
    color: var(--accent-blue);
}

/* Attendance count badges */
.perf-rsvp-mini-badges {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.perf-rsvp-mini-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.perf-rsvp-mini-badge.confirmed {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.perf-rsvp-mini-badge.absent {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.perf-rsvp-mini-badge.pending {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.12);
}

/* Elevated details section empty state */
.dashboard-col .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    height: 100%;
}

.dashboard-col .empty-state i {
    font-size: 2.6rem;
    color: rgba(59, 130, 246, 0.15);
    margin-bottom: 12px;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.dashboard-col .empty-state p {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 260px;
    line-height: 1.5;
}

/* Table header improvements */
.template-members-list-wrapper table th {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.15);
}


