/* desktop.css - Modern 3D Theme */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-hover: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #868e96;
    --border-color: #dee2e6;
    --accent-blue: #228be6;
    --accent-green: #40c057;
    --accent-orange: #fd7e14;
    --accent-red: #fa5252;
    --accent-purple: #7950f2;
    --accent-pink: #e64980;
    --accent-teal: #12b886;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --transition: 0.15s ease;
    --transition-slow: 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm: linear-gradient(135deg, #fa5252, #fd7e14);
    --gradient-cool: linear-gradient(135deg, #228be6, #12b886);
    --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(248,249,250,0.9) 100%);
}

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

body {
    font-family: 'Source Sans Pro', -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    color: var(--text-primary);
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(103, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(250, 82, 82, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 100%, rgba(18, 184, 134, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(121, 80, 242, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(253, 126, 20, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 25%, #e8ecf2 50%, #e2e8ef 75%, #dce3eb 100%);
    background-attachment: fixed;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.guide-page { overflow: auto; }

/* Header */
header {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(222, 226, 230, 0.8);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 48px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.logo-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo-text {
    font-family: 'Bungee', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fa5252, #fd7e14);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    filter: drop-shadow(2px 2px 4px rgba(250, 82, 82, 0.3));
    transition: filter var(--transition);
}

.site-logo-text:hover {
    filter: drop-shadow(3px 3px 6px rgba(250, 82, 82, 0.5));
}

.title-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.subtitle-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.subtitle-stats .separator {
    color: var(--border-color);
}

.subtitle-stats a {
    color: var(--text-muted);
    text-decoration: underline;
}

.subtitle-stats a:hover {
    color: var(--accent-blue);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

header p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.xotel-link {
    color: var(--accent-blue);
    text-decoration: none;
}
.xotel-link:hover { text-decoration: underline; }

.header-buttons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

/* Unified Buttons */
.header-btn {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
}

.header-btn:hover {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
}

.header-btn:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.header-btn i { font-size: 0.75rem; }

.header-btn.add-band { 
    background: linear-gradient(180deg, #51cf66 0%, #40c057 100%); 
    border-color: #37b24d; 
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}
.header-btn.add-band:hover { 
    background: linear-gradient(180deg, #40c057 0%, #37b24d 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.header-btn.copy-data { 
    background: linear-gradient(180deg, #845ef7 0%, #7950f2 100%); 
    border-color: #6741d9; 
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}
.header-btn.copy-data:hover { 
    background: linear-gradient(180deg, #7950f2 0%, #6741d9 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.header-btn.request-change { 
    background: linear-gradient(180deg, #ff922b 0%, #fd7e14 100%); 
    border-color: #f76707; 
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}
.header-btn.request-change:hover { 
    background: linear-gradient(180deg, #fd7e14 0%, #f76707 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.header-btn.chart-btn { 
    background: linear-gradient(180deg, #FFE066 0%, #FFD700 100%); 
    border-color: #FFC000; 
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.4);
}
.header-btn.chart-btn:hover { 
    background: linear-gradient(180deg, #FFD700 0%, #FFC000 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.4);
}

.header-btn.tour-btn { 
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%); 
    border-color: #FF8C00; 
    color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}
.header-btn.tour-btn:hover { 
    background: linear-gradient(135deg, #FFC000 0%, #FF7700 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}
.header-btn.request-change:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

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

/* Main */
main {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

body.guide-page main { height: auto; overflow: auto; display: block; padding: 1rem; }

/* Meta strip (ex-footer info) */
.meta-strip {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
    align-items: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.meta-strip span { white-space: nowrap; }
.meta-strip a { color: var(--accent-blue); text-decoration: none; }
.meta-strip a:hover { text-decoration: underline; }

/* Controls */
.controls {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(180deg, rgba(248,249,250,0.95) 0%, rgba(233,236,239,0.9) 100%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(222, 226, 230, 0.8);
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#search-name {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--text-primary);
    height: 34px;
    flex: 2;
    min-width: 200px;
    transition: all var(--transition);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.8);
}

#search-name:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.15), inset 0 1px 3px rgba(0,0,0,0.06);
    background: #fff;
}

#search-name::placeholder { color: var(--text-muted); }

/* Select2 */
.select2-container { width: 150px !important; min-height: 30px; }

.select2-selection--single {
    border: 1px solid var(--border-color) !important;
    background: var(--bg-primary) !important;
    height: 30px !important;
    min-height: 30px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
    border-radius: 3px !important;
}

.select2-selection__rendered {
    font-size: 0.8rem !important;
    color: var(--text-primary) !important;
    line-height: 28px !important;
    padding: 0 !important;
    padding-right: 18px !important;
}

.select2-selection__placeholder { color: var(--text-muted) !important; }

.select2-selection__arrow {
    height: 28px !important;
    width: 16px !important;
    right: 4px !important;
}

.select2-selection__arrow b {
    border-color: var(--text-muted) transparent transparent transparent !important;
    border-width: 4px 3px 0 3px !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: var(--accent-blue) !important;
}

.select2-dropdown {
    border: 1px solid var(--border-color) !important;
    background: var(--bg-primary) !important;
    border-radius: 3px !important;
    box-shadow: var(--shadow);
}

.select2-search__field {
    font-size: 0.8rem !important;
    border: 1px solid var(--border-color) !important;
    padding: 0.25rem !important;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    height: 30px !important;
    border-radius: 3px !important;
}

.select2-results__option {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    color: var(--text-primary);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--accent-blue) !important;
    color: #fff !important;
}

.select2-results__option[aria-selected="true"] {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

.clear-filters-btn {
    font-size: 0.8rem;
    color: #fff;
    background: linear-gradient(180deg, #ff6b6b 0%, #fa5252 100%);
    border: none;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

.clear-filters-btn:hover { 
    background: linear-gradient(180deg, #fa5252 0%, #e03131 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Table */
.table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 0.5rem 1rem 1rem 1rem;
    position: relative;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Scroll shadow overlays */
.scroll-shadow-top,
.scroll-shadow-bottom {
    position: absolute;
    left: 0;
    right: 8px; /* Account for scrollbar */
    height: 25px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.scroll-shadow-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.scroll-shadow-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.scroll-shadow-top.visible,
.scroll-shadow-bottom.visible {
    opacity: 1;
}

.table-wrapper::-webkit-scrollbar { width: 8px; }
.table-wrapper::-webkit-scrollbar-track { background: var(--bg-secondary); }
.table-wrapper::-webkit-scrollbar-thumb { background: var(--border-color); }
.table-wrapper::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Column widths: Name, City, Genre, SoundsLike, Links, Play, Status, Actions */
th:nth-child(1), td:nth-child(1) { width: auto; } /* Name - takes remaining space */
th:nth-child(2), td:nth-child(2) { width: 1%; white-space: nowrap; } /* City */
th:nth-child(3), td:nth-child(3) { width: 1%; white-space: nowrap; } /* Genre */
th:nth-child(4), td:nth-child(4) { width: 1%; white-space: nowrap; } /* Sounds like */
th:nth-child(5), td:nth-child(5) { width: 1%; white-space: nowrap; } /* Links */
th:nth-child(6), td:nth-child(6) { width: 1%; white-space: nowrap; text-align: center; padding: 0 0.3rem; } /* Play button */
th:nth-child(7), td:nth-child(7) { width: 1%; white-space: nowrap; text-align: center; padding: 0 0.3rem; } /* Status */
th:nth-child(8), td:nth-child(8) { width: 1%; white-space: nowrap; text-align: center; } /* Actions */

/* Play column styling */
.play-column {
    text-align: center;
}

th, td {
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

th {
    padding: 0.6rem 0.5rem;
    background: linear-gradient(180deg, #f1f3f5 0%, #e9ecef 100%);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

td { padding: 0.5rem 0.5rem; }

tr { transition: all var(--transition); }
tr:nth-child(even) { background: linear-gradient(90deg, rgba(248,249,250,0.5) 0%, rgba(248,249,250,0.8) 100%); }
tr:hover { 
    background: linear-gradient(90deg, rgba(227,242,253,0.7) 0%, rgba(227,242,253,0.95) 100%);
    box-shadow: inset 0 0 0 1px rgba(34, 139, 230, 0.1);
}

.name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

tr:hover .name { color: var(--accent-blue); }

/* Tags */
.band-label {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #fa5252 100%);
    color: #fff;
    padding: 0.12rem 0.35rem;
    margin: 0 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(250,82,82,0.25);
    transition: all var(--transition);
}

.band-label:hover {
    box-shadow: 0 3px 6px rgba(250,82,82,0.35);
}

.band-label.single-char {
    background: transparent;
    color: var(--accent-red);
    font-weight: 700;
    padding: 0.1rem 0.15rem;
    box-shadow: none;
}

.links a {
    margin-right: 0.3rem;
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: color var(--transition);
}

.links a:hover { color: var(--accent-blue); }

.links a.contact-link {
    background: var(--accent-pink);
    color: #fff;
    padding: 0.1rem 0.3rem;
    font-size: 0.65rem;
    display: inline-block;
    margin: 0 0.3rem 0 0;
}

.links a.contact-link:hover { background: #d6336c; }

/* Artist preview button in main list */
.artist-preview-btn {
    background: linear-gradient(180deg, #1ed760 0%, #1DB954 100%);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.artist-preview-btn i {
    font-size: 7px;
    color: #fff;
}

.artist-preview-btn:hover {
    background: linear-gradient(180deg, #1ed760 0%, #1DB954 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.artist-preview-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: linear-gradient(180deg, #adb5bd 0%, #868e96 100%);
    box-shadow: none;
}

.artist-preview-btn:disabled:hover {
    transform: none;
    background: linear-gradient(180deg, #adb5bd 0%, #868e96 100%);
    box-shadow: none;
}

.missing-data { color: var(--text-muted); opacity: 0.4; }
tr:hover .missing-data { opacity: 0.6; }

.genre-item, .sounds-like-item, .city-item {
    display: inline-block;
    color: #fff;
    padding: 0.12rem 0.3rem;
    margin: 0.05rem 0.05rem 0.05rem 0;
    font-size: 0.65rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition);
}

.genre-item { 
    background: linear-gradient(135deg, #845ef7 0%, #7950f2 100%);
    box-shadow: 0 2px 4px rgba(121,80,242,0.25);
}
.genre-item:hover {
    box-shadow: 0 3px 6px rgba(121,80,242,0.35);
}

.sounds-like-item { 
    background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
    box-shadow: 0 2px 4px rgba(34,139,230,0.25);
}
.sounds-like-item:hover {
    box-shadow: 0 3px 6px rgba(34,139,230,0.35);
}

.city-item { 
    background: linear-gradient(135deg, #20c997 0%, #12b886 100%);
    box-shadow: 0 2px 4px rgba(18,184,134,0.25);
}
.city-item:hover {
    box-shadow: 0 3px 6px rgba(18,184,134,0.35);
}

body.compact td { font-size: 0.65rem; }
body.compact .name { font-size: 0.8rem; }
body.compact .genre-item, body.compact .sounds-like-item, body.compact .city-item { font-size: 0.6rem; padding: 0.05rem 0.2rem; }
body.compact .links a { font-size: 0.9rem; }
body.compact .links a.contact-link { font-size: 0.6rem; padding: 0.05rem 0.2rem; }
body.compact .band-label { font-size: 0.6rem; padding: 0.05rem 0.2rem; }

/* Status */
.status-content {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-indent: -9999px;
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}

td[data-label="Статус"] { text-align: center; }

td[data-label="Статус"][data-status="Активен"] > span.status-content { 
    background: linear-gradient(180deg, #51cf66 0%, #40c057 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}
td[data-label="Статус"][data-status="Неактивен"] > span.status-content { 
    background: linear-gradient(180deg, #ff6b6b 0%, #fa5252 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}
td[data-label="Статус"][data-status="Можеби"] > span.status-content { 
    background: linear-gradient(180deg, #ffa94d 0%, #fd7e14 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}
td[data-label="Статус"][data-status="Непознато"] > span.status-content,
td[data-label="Статус"].missing-data > span.status-content { 
    background: linear-gradient(180deg, #adb5bd 0%, #868e96 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}

.status-tooltip {
    position: absolute;
    background: linear-gradient(180deg, #343a40 0%, #212529 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.status-header-icon { font-size: 0.7rem; color: var(--text-secondary); }

/* Actions */
.action-buttons { text-align: center; }

.action-btn {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0;
    margin: 0 0.1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color var(--transition);
}

.action-btn:hover { color: var(--accent-blue); }
.action-btn.delete-btn { color: var(--text-muted); }
.action-btn.delete-btn:hover { color: var(--accent-red); }
tr:hover .action-btn.edit-btn { color: var(--text-primary); }

/* Footer - hidden, content moved to stats bar */
footer { display: none; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    margin: 4% auto;
    padding: 1.25rem;
    border: 1px solid rgba(222, 226, 230, 0.8);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.8) inset;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-close {
    color: var(--text-muted);
    float: right;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover { color: var(--text-primary); }

.modal h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.form-group { margin-bottom: 0.6rem; }

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

.form-group input, .form-group select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--text-primary);
    font-family: 'Source Sans Pro', sans-serif;
    transition: all var(--transition);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.15), inset 0 1px 3px rgba(0,0,0,0.06);
    background: #fff;
}

.form-group select { height: 34px; }

/* Autocomplete dropdown */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--bg-secondary);
    color: var(--accent-blue);
}

.autocomplete-item .count {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

#links-container { margin-bottom: 0.4rem; }

.link-group {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    align-items: center;
}

.link-group select, .link-group input { flex: 1; }

.link-group .platform-select-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.link-group .platform-select-wrapper select {
    flex: 1;
    padding-left: 1.8rem;
}

.link-group .platform-icon {
    position: absolute;
    left: 0.5rem;
    pointer-events: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    z-index: 1;
}

.link-group button {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-group button:hover { background: #e03131; }

.add-link-btn, #save-band-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: linear-gradient(180deg, #339af0 0%, #228be6 100%);
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

.add-link-btn:hover, #save-band-btn:hover { 
    background: linear-gradient(180deg, #228be6 0%, #1c7ed6 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

#save-band-btn {
    width: 100%;
    margin-top: 0.75rem;
    background: linear-gradient(180deg, #51cf66 0%, #40c057 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

#save-band-btn:hover { 
    background: linear-gradient(180deg, #40c057 0%, #37b24d 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.2rem;
}

.tag-item {
    display: inline-block;
    color: #fff;
    padding: 0.15rem 0.3rem;
    font-size: 0.7rem;
}

.tag-item.city-tag { background: var(--accent-teal); }
.tag-item.genre-tag { background: var(--accent-purple); }
.tag-item.sounds-like-tag { background: var(--accent-blue); }
.tag-item.label-tag { background: var(--accent-orange); }

.edit-hidden { display: inline-block; }
th.edit-hidden, td.edit-hidden, .action-buttons { display: table-cell; }
.master-edit { display: none; }

/* New Release */
.new-release-artists {
    background: var(--bg-primary);
    padding: 0.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-orange);
    display: block;
    flex-shrink: 0;
    min-height: 36px;
}

.new-release-artists h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-release-icon { color: var(--accent-orange); font-size: 0.65rem; }

.new-release-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.25rem;
    scrollbar-width: thin;
}

.new-release-list::-webkit-scrollbar { height: 4px; }
.new-release-list::-webkit-scrollbar-track { background: var(--bg-secondary); }
.new-release-list::-webkit-scrollbar-thumb { background: var(--border-color); }

.new-release-list li {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--accent-purple);
    padding: 0.2rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 3px;
}

.new-release-list li a { color: #fff; text-decoration: none; }
.new-release-list li a:hover { text-decoration: underline; }
.new-release-list li i { font-size: 0.6rem; color: #fff; }
.new-release-list li .missing-data { color: rgba(255,255,255,0.4); }

/* New Release Section */
#new-release-artists {
    padding: 0.25rem 0.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

/* Content wrapper */
.new-release-content {
    overflow: visible;
}

/* Loading state for new releases */
.loading-releases {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
}

.loading-releases i {
    color: var(--accent-blue);
}

/* Release date styling */
.release-date {
    font-size: 0.55rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.release-date i {
    font-size: 0.5rem;
}

/* New Release Grid (with thumbnails) */
.new-release-artists {
    position: relative;
}

/* Horizontal scroll shadows for new releases */
.scroll-shadow-left,
.scroll-shadow-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.scroll-shadow-left {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.scroll-shadow-right {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.scroll-shadow-left.visible,
.scroll-shadow-right.visible {
    opacity: 1;
}

.new-release-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    scrollbar-width: thin;
    padding: 0.25rem 0;
}

.new-release-grid::-webkit-scrollbar { height: 4px; }
.new-release-grid::-webkit-scrollbar-track { background: var(--bg-secondary); }
.new-release-grid::-webkit-scrollbar-thumb { background: var(--border-color); }

.new-release-card {
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-width: 250px;
    max-width: 300px;
}

.new-release-card.no-thumbnail {
    min-width: auto;
    max-width: none;
    background: var(--accent-purple);
    padding: 0.2rem 0.5rem;
}

.new-release-card .release-thumbnail-link {
    display: block;
    flex-shrink: 0;
}

.new-release-card .release-thumbnail {
    position: relative;
    width: 64px;
    height: 64px;
    background: var(--bg-primary);
}

.new-release-card .release-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-release-card .release-thumbnail .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.new-release-card:hover .release-thumbnail .play-overlay {
    opacity: 1;
}

.new-release-card .play-overlay i {
    font-size: 1.2rem;
    color: #fff;
}

.new-release-card .release-info {
    flex: 1;
    padding: 0.3rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
}

.new-release-card .release-info.release-info-compact {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.new-release-card .release-artist {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-release-card.no-thumbnail .release-artist {
    color: #fff;
}

.new-release-card.no-thumbnail .release-artist a {
    color: #fff;
    text-decoration: none;
}

.new-release-card.no-thumbnail .release-artist a:hover {
    text-decoration: underline;
}

.new-release-card .release-title {
    font-size: 0.6rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.new-release-card .release-title:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.new-release-card .release-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.55rem;
}

.new-release-card .release-views {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.new-release-card .release-links {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
    vertical-align: middle;
}

.new-release-card .release-links .streaming-icon {
    color: var(--text-secondary);
    font-size: 0.55rem;
    line-height: 1;
}

.new-release-card .release-links .streaming-icon:hover {
    color: var(--accent-blue);
}

/* Preview button */
.new-release-card .preview-btn {
    background: #1DB954;
    border: none;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
    line-height: 1;
}

.new-release-card .preview-btn i {
    font-size: 6px;
    color: #fff;
    line-height: 1;
}

.new-release-card .preview-btn:hover {
    background: #1ed760;
}

.new-release-card .preview-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.new-release-card.no-thumbnail .release-links {
    color: rgba(255,255,255,0.7);
}

.new-release-card.no-thumbnail .release-links .streaming-icon {
    color: rgba(255,255,255,0.8);
}

.new-release-card.no-thumbnail .release-links .streaming-icon:hover {
    color: #fff;
}

/* Spotify Embed Modal */
.spotify-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.spotify-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #121212;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.spotify-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.spotify-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.spotify-modal-close i {
    font-size: 0.9rem;
}

#spotify-embed-container {
    width: 100%;
}

#spotify-embed-container iframe {
    display: block;
    border-radius: 12px;
}

/* Spotify-specific styles */
.new-release-card .release-thumbnail.no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1DB954, #191414);
}

.new-release-card .release-thumbnail .spotify-placeholder {
    font-size: 2rem;
    color: rgba(255,255,255,0.6);
}

.release-type-badge {
    font-size: 0.5rem;
    font-weight: 500;
    background: var(--accent-green);
    color: #fff;
    padding: 0.1rem 0.25rem;
    border-radius: 2px;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.new-release-card .play-overlay i.fa-spotify {
    color: #1DB954;
}

/* Guide */
.guide-content {
    background: var(--bg-primary);
    padding: 1rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.guide-content h2, .guide-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.guide-content h3 { font-size: 0.95rem; }
.guide-content p { font-size: 0.85rem; margin-bottom: 0.6rem; line-height: 1.4; color: var(--text-secondary); }
.guide-content ul { list-style: none; padding: 0; margin-bottom: 0.6rem; }
.guide-content li { font-size: 0.85rem; margin-bottom: 0.5rem; display: flex; align-items: flex-start; gap: 0.4rem; color: var(--text-secondary); }
.guide-content a { color: var(--accent-blue); text-decoration: none; }
.guide-content a:hover { text-decoration: underline; }
.guide-content .highlight { font-weight: 600; color: var(--accent-blue); }

.return-link {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-blue);
    padding: 0.4rem 0.8rem;
    text-decoration: none;
}

.return-link:hover { background: #1c7ed6; }

.guide-icon { font-size: 0.9rem; }
.status-icon, .edit-icon, .plus-icon, .pen-icon, .copy-icon { color: #fff; padding: 0.2rem; }
.status-icon { background: var(--accent-green); }
.edit-icon { background: var(--accent-blue); }
.plus-icon { background: var(--accent-green); }
.pen-icon { background: var(--accent-orange); }
.copy-icon { background: var(--accent-purple); }
.guide-list-icon { font-size: 0.75rem; flex-shrink: 0; margin-top: 0.1rem; }

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.3rem;
    vertical-align: middle;
}

.status-indicator.active { background: var(--accent-green); }
.status-indicator.inactive { background: var(--accent-red); }
.status-indicator.maybe { background: var(--accent-orange); }
.status-indicator.unknown { background: var(--text-muted); }

/* Loading */
.loading-bar {
    display: none;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--border-color) 50%, var(--bg-secondary) 100%);
    margin: 0;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.loading-bar.active { display: block; }

.loading-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-pink), var(--accent-blue));
    background-size: 300% 100%;
}

/* Dialog */
.dialog-modal-content {
    max-width: 400px;
    width: 90%;
    margin: 12vh auto;
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
}

#dialog-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

#dialog-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

#dialog-input-container { margin-bottom: 1rem; }

#dialog-input {
    width: 100%;
    padding: 0.4rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
}

#dialog-input:focus { outline: none; border-color: var(--accent-blue); }

.dialog-buttons { display: flex; justify-content: flex-end; gap: 0.4rem; }

.dialog-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cancel-btn { 
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%); 
    color: var(--text-primary); 
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
}
.cancel-btn:hover { 
    background: linear-gradient(180deg, #e9ecef 0%, #dee2e6 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
}
.confirm-btn { 
    background: linear-gradient(180deg, #339af0 0%, #228be6 100%); 
    color: #fff;
    box-shadow: 0 2px 4px rgba(34,139,230,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.confirm-btn:hover { 
    background: linear-gradient(180deg, #228be6 0%, #1c7ed6 100%);
    box-shadow: 0 4px 8px rgba(34,139,230,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* PR Form */
#pr-form-container .form-group { margin-bottom: 0.75rem; }
#pr-form-container label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.2rem; display: block; }
#pr-form-container input, #pr-form-container textarea { width: 100%; padding: 0.4rem; font-size: 0.8rem; border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); }
#pr-form-container input:focus, #pr-form-container textarea:focus { outline: none; border-color: var(--accent-blue); }
#pr-form-container textarea { resize: vertical; min-height: 60px; }
#pr-form-container .form-help { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; font-style: italic; }

/* Notifications */
.notification-area { position: fixed; top: 16px; right: 16px; z-index: 2000; max-width: 340px; }

.notification {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: var(--shadow-lg);
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.notification.success { 
    border-left-color: var(--accent-green); 
    background: linear-gradient(180deg, #ffffff 0%, #d3f9d8 100%);
}
.notification.error { 
    border-left-color: var(--accent-red);
    background: linear-gradient(180deg, #ffffff 0%, #ffe3e3 100%);
}
.notification.info { 
    border-left-color: var(--accent-blue);
    background: linear-gradient(180deg, #ffffff 0%, #d0ebff 100%);
}
.notification.warning { 
    border-left-color: var(--accent-orange);
    background: linear-gradient(180deg, #ffffff 0%, #fff3bf 100%);
}

.notification.fade-out { opacity: 0; }

/* Tablet */
@media (max-width: 900px) {
    .header-btn { font-size: 0.65rem; padding: 0.2rem 0.4rem; }
    header h1 { font-size: 0.85rem; }
    .controls { gap: 0.2rem; }
    #search-name { min-width: 100px; }
    .select2-container { width: 110px !important; }
}

/* Tour Overlay */
.tour-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    pointer-events: none;
}

.tour-overlay.active {
    display: block;
}

.tour-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.tour-highlight {
    position: absolute;
    box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 3001;
}

.tour-highlight::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #FFD700;
    border-radius: 6px;
}

.tour-tooltip {
    position: absolute;
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    max-width: 360px;
    min-width: 280px;
    z-index: 3002;
    pointer-events: auto;
}

.tour-tooltip-content {
    padding: 1rem;
}

.tour-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tour-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tour-description strong {
    color: var(--text-primary);
}

.tour-description i {
    color: var(--accent-blue);
}

.tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 8px 8px;
}

.tour-progress {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tour-buttons {
    display: flex;
    gap: 0.5rem;
}

.tour-btn-skip,
.tour-btn-prev,
.tour-btn-next {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.tour-btn-skip {
    background: transparent;
    color: var(--text-muted);
}

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

.tour-btn-prev {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tour-btn-prev:hover {
    background: var(--border-color);
}

.tour-btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tour-btn-next {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #1a1a1a;
}

.tour-btn-next:hover {
    background: linear-gradient(135deg, #FFC000, #FF7700);
}

.tour-btn-next i {
    color: inherit;
    margin-left: 0.25rem;
}

.tour-btn-prev i {
    margin-right: 0.25rem;
}

/* Tour tooltip arrow */
.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    transform: rotate(45deg);
}

.tour-tooltip.arrow-top::before {
    top: -6px;
    left: 50%;
    margin-left: -6px;
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.tour-tooltip.arrow-bottom::before {
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    background: var(--bg-secondary);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.tour-tooltip.arrow-left::before {
    left: -6px;
    top: 50%;
    margin-top: -6px;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.05);
}

.tour-tooltip.arrow-right::before {
    right: -6px;
    top: 50%;
    margin-top: -6px;
    box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* Welcome step - centered */
.tour-tooltip.tour-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tour-tooltip.tour-center::before {
    display: none;
}

/* ==================== DARK MODE ==================== */
body.dark-mode {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-hover: #1f3460;
    --text-primary: #eee;
    --text-secondary: #aaa;
    --text-muted: #777;
    --border-color: #2d3a5a;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(103, 126, 234, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 100% 0%, rgba(250, 82, 82, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 100%, rgba(18, 184, 134, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(121, 80, 242, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(253, 126, 20, 0.06) 0%, transparent 55%),
        linear-gradient(180deg, #1a1a2e 0%, #151a30 20%, #121929 40%, #0f172a 60%, #0c1322 80%, #0a101c 100%);
    background-attachment: fixed;
}

body.dark-mode header {
    background: linear-gradient(180deg, rgba(26,26,46,0.95) 0%, rgba(22,33,62,0.9) 100%);
    border-bottom-color: rgba(45,58,90,0.8);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .controls {
    background: linear-gradient(180deg, rgba(22,33,62,0.95) 0%, rgba(15,23,42,0.9) 100%);
    border-bottom-color: rgba(45,58,90,0.8);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.dark-mode #search-name {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.05);
}

body.dark-mode .table-wrapper {
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
}

body.dark-mode th {
    background: linear-gradient(180deg, #1f3460 0%, #16213e 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.dark-mode tr:nth-child(even) {
    background: linear-gradient(90deg, rgba(22,33,62,0.5) 0%, rgba(22,33,62,0.8) 100%);
}

body.dark-mode tr:hover {
    background: linear-gradient(90deg, rgba(31,52,96,0.7) 0%, rgba(31,52,96,0.95) 100%);
}

body.dark-mode .notification {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: var(--shadow-lg);
}

body.dark-mode .notification.success {
    background: linear-gradient(180deg, #1a1a2e 0%, #0c2a1e 100%);
}

body.dark-mode .notification.error {
    background: linear-gradient(180deg, #1a1a2e 0%, #2a0c0c 100%);
}

body.dark-mode .notification.info {
    background: linear-gradient(180deg, #1a1a2e 0%, #0c1e2a 100%);
}

body.dark-mode .notification.warning {
    background: linear-gradient(180deg, #1a1a2e 0%, #2a1e0c 100%);
}

body.dark-mode .select2-selection--single {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .select2-selection__rendered {
    color: var(--text-primary) !important;
}

body.dark-mode .select2-dropdown {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

body.dark-mode .select2-search__field {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .select2-results__option {
    color: var(--text-primary);
}

body.dark-mode .select2-results__option[aria-selected="true"] {
    background: var(--bg-hover) !important;
}

body.dark-mode .modal-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-color: var(--border-color);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

body.dark-mode .modal-content input,
body.dark-mode .modal-content select,
body.dark-mode .modal-content textarea {
    background: linear-gradient(180deg, #16213e 0%, #0f172a 100%);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

body.dark-mode .autocomplete-dropdown {
    background: var(--bg-primary);
    border-color: var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

body.dark-mode .autocomplete-item:hover,
body.dark-mode .autocomplete-item.selected {
    background: var(--bg-hover);
}

body.dark-mode .tour-tooltip {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-color: var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

body.dark-mode .tour-tooltip::before {
    background: var(--bg-primary);
}

body.dark-mode .dialog-btn.cancel-btn {
    background: linear-gradient(180deg, #2d3a5a 0%, #1f3460 100%);
    border-color: var(--border-color);
}

body.dark-mode .dialog-btn.cancel-btn:hover {
    background: linear-gradient(180deg, #1f3460 0%, #16213e 100%);
}

/* Dark mode toggle button */
.dark-mode-toggle {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(0,0,0,0.05) 100%) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all var(--transition);
}

.dark-mode-toggle:hover {
    background: linear-gradient(180deg, var(--bg-hover) 0%, rgba(0,0,0,0.08) 100%) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}

body.dark-mode .dark-mode-toggle {
    background: linear-gradient(180deg, #2d3a5a 0%, #252e45 100%) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

body.dark-mode .dark-mode-toggle:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}