:root {
    --bg-color: #0d1117;
    --panel-bg: rgba(30, 41, 59, 0.4);
    --panel-border: rgba(255, 255, 255, 0.08);
    --primary: #c026d3;
    --primary-glow: rgba(192, 38, 211, 0.5);
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --tertiary: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur: blur(12px);
    --sidebar-width: 260px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden; /* App feel */
    background: radial-gradient(circle at top right, rgba(192, 38, 211, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 40%),
                var(--bg-color);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-tertiary { color: var(--tertiary); }
.text-muted { color: var(--text-muted); }
.w-100 { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-auto { margin-top: auto; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { display: flex; flex-direction: column; gap: 0.5rem; }
.icon-lg { font-size: 2.5rem; }

/* Global Hidden Helper */
.hidden { display: none !important; }

h1, h2, h3, h4, .badge, .stat-val {
    font-family: var(--font-heading);
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Glass Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-right: 1px solid var(--panel-border);
    border-radius: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.logo i { font-size: 2rem; }

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-item i {
    font-size: 1.25rem;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.2), rgba(59, 130, 246, 0.2));
    color: var(--text-main);
    border-left: 3px solid var(--primary);
}

.nav-item.active i {
    color: var(--primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    margin-top: auto;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.info h4 { font-size: 0.95rem; }
.info p { font-size: 0.8rem; color: var(--text-muted); }

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    width: 350px;
    border-radius: 20px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    flex: 1;
    font-family: inherit;
}

.search-bar i { color: var(--text-muted); font-size: 1.1rem; }

.shortcut-hint {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.btn-icon {
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
}

.btn-icon:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #9333ea);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: var(--secondary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(192,38,211,0.1);
}

.btn-glow {
    box-shadow: 0 0 15px var(--primary-glow);
}
.btn-glow:hover {
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

/* Views */
.views-container {
    flex: 1;
    padding: 0 2.5rem 2.5rem;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
.views-container::-webkit-scrollbar { width: 6px; }
.views-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.view-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
    display: block;
}

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

.section-header { margin-bottom: 2rem; }
.section-header h2 { font-size: 2rem; margin-bottom: 0.25rem; }
.section-header .subtitle { color: var(--text-muted); font-size: 0.95rem; }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.widget {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.setlist-widget { grid-row: 1 / 3; }

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.widget-header h3 { display: flex; align-items: center; gap: 0.5rem; }

.badge {
    background: rgba(192,38,211,0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.setlist-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(0,0,0,0.2);
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}
.song-item:hover { border-color: rgba(255,255,255,0.1); transform: translateX(4px); }
.song-item.active {
    border-color: var(--primary);
    background: rgba(192,38,211,0.1);
}

.song-item .idx { color: var(--text-muted); font-size: 0.8rem; width: 20px;}
.song-item .details { flex: 1; margin: 0 0.75rem; }
.song-item .title { font-weight: 600; font-size: 0.95rem; }
.song-item .artist { font-size: 0.75rem; color: var(--text-muted); }
.song-item .meta { font-size: 0.8rem; font-family: var(--font-heading); background: rgba(255,255,255,0.1); padding: 0.1rem 0.4rem; border-radius: 4px; }

/* Playing Widget */
.playing-widget {
    position: relative;
    background: linear-gradient(135deg, rgba(30,41,59,0.8), rgba(15,23,42,0.9));
}
.gradient-border::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1;
    border-radius: 17px;
    opacity: 0.5;
}

.playing-status {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.playing-status::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.playing-widget .song-title { font-size: 2.5rem; margin-bottom: 0.25rem; }
.playing-widget .song-artist { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

.song-controls {
    display: flex;
    gap: 2rem;
    margin-top: auto;
}

.control-group {
    background: rgba(0,0,0,0.3);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    flex: 1;
}
.control-group .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; display: block; }
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stepper button {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.stepper button:hover { background: rgba(255,255,255,0.1); }
.stepper .val { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; }

/* Stats Widget */
.stats-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-info { display: flex; flex-direction: column; }
.stat-val { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.stat-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.filter-tab {
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.filter-tab:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }
.filter-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Repertoire Grid */
.repertoire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rep-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}
.rep-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.rep-card .rep-title { font-size: 1.1rem; font-weight: 600; }
.rep-card .rep-artist { font-size: 0.85rem; color: var(--text-muted); }
.rep-card .rep-tags { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.rep-tag { font-size: 0.7rem; padding: 0.2rem 0.5rem; background: rgba(255,255,255,0.1); border-radius: 4px; }

/* AI Grid */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.ai-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.ai-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.active-glow {
    border-color: rgba(192,38,211,0.5);
    box-shadow: 0 0 30px rgba(192,38,211,0.15);
}
.sparkle { display: inline-block; animation: sparkle 2s infinite; }
@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Wizard */
.wizard-container { padding: 3rem; }
.wizard-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.option-card {
    padding: 2rem 1rem;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.option-card i { font-size: 2.5rem; color: var(--text-muted); transition: var(--transition); }
.option-card:hover { background: rgba(255,255,255,0.05); }
.option-card.active {
    background: rgba(59,130,246,0.1);
    border-color: var(--secondary);
}
.option-card.active i { color: var(--secondary); }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.setting-group { padding: 2rem; }
.setting-group h3 { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; }
.setting-item { display: flex; justify-content: space-between; align-items: center; }
.setting-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.setting-item p { font-size: 0.85rem; color: var(--text-muted); }

/* Switch Toggle */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Range Slider */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

/* Performance Mode Overlay */
.performance-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000000;
    color: #ffffff;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: opacity 0.5s ease;
}
.performance-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.performance-overlay.hidden {
    opacity: 0; pointer-events: none;
}
.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.smart-controls {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.smart-controls .next-song {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}
.smart-controls .next-song:hover { transform: translateX(3px); }
.smart-controls .next-song .label { font-size: 0.8rem; color: var(--text-muted); }
.smart-controls .next-song .value { font-size: 0.95rem; font-weight: 600; color: #fff; }

.smart-controls .vr {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.2);
}

.btn-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-toggle:hover { color: #fff; transform: scale(1.1); }
.btn-toggle.active { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }

.song-meta h2 { font-size: 3rem; margin-bottom: 0.5rem; text-shadow: 0 0 20px rgba(192,38,211,0.5); }
.song-meta span { display: inline-block; margin-right: 1.5rem; font-size: 1.2rem; color: var(--accent); font-family: var(--font-heading); }
.lyrics-container {
    flex: 1;
    overflow-y: auto;
    font-size: 2.5rem;
    line-height: 1.8;
    text-align: center;
    padding: 0 10%;
    scrollbar-width: none; /* hide scrollbar for clean look */
}
.lyric-line { margin-bottom: 1rem; position: relative; }
.word { display: inline-block; margin-right: 0.5rem; }
.chord {
    display: block;
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: -15px; /* Pull chords close to words */
    text-shadow: 0 0 10px rgba(59,130,246,0.5);
}

.performance-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    gap: 2rem;
}

.lyrics-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#drawing-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none; /* Disabled by default */
}
#drawing-canvas.active {
    pointer-events: auto;
    cursor: crosshair;
}

.performance-sidebar {
    width: 250px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-radius: 20px;
    background: rgba(30,41,59,0.5);
    border: 1px solid var(--panel-border);
}

.tool-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tool-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tool-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem;
    border-radius: 12px;
}
.tool-val {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}
.btn-sm {
    padding: 0.5rem;
    min-width: 32px;
    height: 32px;
}

.beat-dot {
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #4ade80;
    transition: opacity 0.1s;
    opacity: 0.3;
}
.beat-dot.flash {
    opacity: 1;
    transform: scale(1.2);
}
/* Setlist Explorer (Bottom Bar) */
.setlist-explorer {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255,255,255,0.05);
}

.explorer-scroll {
    flex: 1;
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
.explorer-scroll::-webkit-scrollbar { height: 4px; }
.explorer-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.track-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    white-space: nowrap;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.track-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
}
.track-item.played {
    opacity: 0.5;
}
.track-item.played .track-no { text-decoration: line-through; }
.track-item.active {
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid var(--primary);
    color: var(--text-main);
    font-weight: 600;
}
.track-item.active .track-no { color: var(--primary); }
.track-no { font-family: var(--font-heading); font-size: 0.8rem; opacity: 0.7; }

.performance-controls-mini {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.performance-controls-mini .btn-play-pause { font-size: 1.5rem; padding: 0.5rem 1rem; border-radius: 12px; }

/* Welcome Video Overlay */
.welcome-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-content {
    position: relative;
    max-width: 700px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    background: var(--panel-bg);
}

.welcome-video {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 70vh;
    background-color: #000;
}

.welcome-text {
    padding: 2.5rem;
    text-align: center;
}

.welcome-text h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#btn-close-welcome {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(0,0,0,0.5);
}
#btn-close-welcome:hover {
    color: var(--tertiary);
    border-color: var(--tertiary);
}

/* Amber Concept Theme Overrides */
.amber-theme {
    background: #0d0a00; /* Warm dark black */
}
.amber-glow.active {
    color: #f59e0b !important;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.6) !important;
}
.amber-border {
    border-color: rgba(245, 158, 11, 0.3) !important;
}
.amber-text {
    color: #f59e0b;
    font-weight: 700;
}
.amber-chord {
    color: #f59e0b !important;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
}

.lyrics-center-header {
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.next-song-badge {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.5rem 2rem;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 30px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.serif-lyrics {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: 1px;
}

.amber-theme .performance-sidebar, .amber-theme .setlist-explorer {
    background: rgba(25, 15, 0, 0.7);
    border-color: rgba(245, 158, 11, 0.15) !important;
}

@keyframes pulse-eye {
    0% { opacity: 0.5; transform: scale(0.95); text-shadow: 0 0 5px rgba(245,158,11,0.5); }
    50% { opacity: 1; transform: scale(1.05); text-shadow: 0 0 20px rgba(245,158,11,1); }
    100% { opacity: 0.5; transform: scale(0.95); text-shadow: 0 0 5px rgba(245,158,11,0.5); }
}
.pulse-animation {
    animation: pulse-eye 2s infinite ease-in-out;
}

@keyframes scanAnim {
    0% { top: 0; }
    50% { top: calc(100% - 4px); }
    100% { top: 0; }
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .ai-grid { grid-template-columns: 1fr; }
    .wizard-options { grid-template-columns: repeat(2, 1fr); }
    .settings-grid { grid-template-columns: 1fr; }
}

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

@media (max-width: 768px) and (orientation: portrait) {
    /* Base Container Adjustments */
    .app-container { flex-direction: column; overflow: hidden; }
    .hidden-desktop { display: flex !important; }
    .hidden-mobile { display: none !important; }
    
    /* Make Sidebar a Bottom Navigation Bar */
    .sidebar { 
        width: 100%; 
        height: auto; 
        padding: 0.5rem; 
        flex-direction: row; 
        align-items: center; 
        justify-content: space-around; 
        border-right: none; 
        border-top: 1px solid var(--panel-border); 
        order: 3; 
        position: fixed; 
        bottom: 0; left: 0; 
        background: rgba(13, 17, 23, 0.95); 
        z-index: 1000; 
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    }
    
    .sidebar .logo, .sidebar .user-profile { display: none; }
    .sidebar .nav-links { flex-direction: row; justify-content: space-between; gap: 0; width: 100%; }
    
    .sidebar .nav-item { flex-direction: column; padding: 0.5rem 0; gap: 0.3rem; border-radius: 8px; flex: 1; justify-content: center; }
    .sidebar .nav-item span { font-size: 0.65rem; text-align: center; }
    .sidebar .nav-item i { font-size: 1.5rem; }
    .sidebar .nav-item.active { border-left: none; border-bottom: 3px solid var(--primary); background: rgba(192, 38, 211, 0.15); }

    /* Main App Content Flow */
    .main-content { padding-bottom: 80px; height: 100vh; overflow-y: auto; }
    .views-container { padding: 0 1rem 1rem; overflow: visible; }
    
    /* Header Adjustments */
    .top-header { flex-direction: column; padding: 1rem; gap: 1rem; }
    .search-bar { width: 100%; }
    .search-bar .shortcut-hint { display: none; }
    .header-actions { justify-content: space-between; width: 100%; }
    
    /* Typography & Modals */
    .section-header h2 { font-size: 1.6rem; }
    .section-header .subtitle { font-size: 0.85rem; }
    .welcome-content { max-width: 95%; margin: 1rem; }
    .welcome-text h2 { font-size: 1.8rem; }
    
    /* Dashboard & Widgets */
    .dashboard-grid { gap: 1rem; }
    .playing-widget .song-title { font-size: 2rem; }
    .song-controls { flex-direction: column; gap: 1rem; }
    .stats-widget { grid-template-columns: 1fr; gap: 1rem; }
    .repertoire-grid { grid-template-columns: 1fr; }
    
    /* Voca Global Chat Box Position */
    #voca-global-chat { top: auto !important; bottom: 90px !important; right: 1rem !important; left: auto !important; transform: none !important; }
    #voca-chat-box { width: calc(100vw - 2rem); height: 400px; }
    #voca-toast { bottom: 100px !important; width: 90% !important; max-width: none !important; }
    
    /* Performance Overlay Specifics */
    .performance-overlay { padding: 1rem; padding-bottom: 80px; overflow-y: auto; display: block; }
    .performance-header { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
    .performance-logo { flex-direction: column; align-items: flex-start; gap: 0.5rem; width: 100%; }
    .hybrid-mode-switcher { margin-left: 0 !important; width: 100%; display: flex; justify-content: center; }
    .performance-actions { margin-right: 0 !important; justify-content: space-between; width: 100%; flex-wrap: wrap; margin-top: 1rem; }
    
    /* Lyrics Sizing for Mobile */
    .lyrics-container { font-size: 1.6rem; line-height: 1.6; padding: 0 10px; height: auto; min-height: 40vh; text-align: left; }
    .lyric-line .chord { font-size: 1rem; margin-bottom: -10px; }
    
    .performance-body { flex-direction: column; overflow: visible; gap: 1rem; }
    .performance-sidebar { width: 100%; padding: 1rem; gap: 1rem; flex-direction: row; flex-wrap: wrap; justify-content: space-between; order: -1; margin-bottom: 1rem; }
    .performance-sidebar .tool-group { flex: 1; min-width: 45%; }
    
    .setlist-explorer { flex-direction: column; position: relative; width: 100%; margin: 1rem 0; }
    .performance-controls-mini { width: 100%; justify-content: center; }
}

@media (max-height: 600px) and (orientation: landscape), (max-width: 1024px) and (orientation: landscape) {
    /* Yatay kullanımda masaüstü görünümü serbestçe aşağı kaydırılabilir olacak */
    body { overflow: auto; height: auto; }
    .app-container { height: auto; min-height: 100vh; overflow: visible; }
    .sidebar { height: 100vh; position: sticky; top: 0; overflow-y: auto; padding-bottom: 2rem; border-right: 1px solid var(--panel-border); }
    .main-content { height: auto; min-height: 100vh; overflow: visible; }
    .views-container { overflow-y: visible; height: auto; }
}
