@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&family=JetBrains+Mono:wght@700&display=swap');

:root {
    --bg-dark: #020617;
    --bg-sidebar: #050b1a;
    --bg-surface: #0f172a;
    --bg-elevated: #1e293b;
    --primary: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --primary-hover: #60a5fa;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --accent: #ff6b00; /* Laranja Vibrante para combinar com a logo */
    --success: #10b981;
    --danger: #ef4444;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.06);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

body.light-mode {
    --bg-dark: #fdfbf0; /* Tom de papel levemente creme */
    --bg-sidebar: #f5f4ea;
    --bg-surface: #ffffff;
    --bg-elevated: #fefefe;
    --primary: #4f46e5;
    --primary-rgb: 79, 70, 229;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.2);
    --accent: #d97706; /* Ambar profundo estilo Cifra Club */
    --success: #059669;
    --danger: #dc2626;
    --text: #1f2937;
    --text-dim: #6b7280;
    --border: rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body { background: var(--bg-dark); color: var(--text); height: 100vh; width: 100vw; overflow: hidden; display: flex; flex-direction: column; }

button { cursor: pointer; border: none; outline: none; transition: var(--transition); }

/* --- TITLE BAR --- */
.title-bar {
    height: 48px; background: var(--bg-sidebar); display: flex; justify-content: space-between;
    align-items: center; padding: 0 16px; -webkit-app-region: drag; flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 800; color: var(--text-dim); letter-spacing: 1px; }
.logo-orb {
    width: 32px;
    height: 32px;
    background-image: url('icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 8px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}
.window-controls { display: flex; -webkit-app-region: no-drag; height: 100%; }
.win-btn { background: transparent; color: var(--text-dim); width: 48px; height: 100%; display: flex; align-items: center; justify-content: center; }
.win-btn:hover { background: rgba(0,0,0,0.05); color: var(--text); }
body.light-mode .win-btn:hover { background: rgba(0,0,0,0.05); }
.win-close:hover { background: var(--danger); }

/* --- APP SHELL --- */
.app-shell { display: flex; flex: 1; overflow: hidden; width: 100%; }
.sidebar { width: 80px; background: var(--bg-sidebar); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 25px 0; flex-shrink: 0; }
@media (min-width: 1200px) { .sidebar { width: 220px; padding: 30px 15px; } .nav-item span { display: block; } }
@media (max-width: 1199px) { .nav-item span { display: none; } }
.nav-group { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.nav-group.bottom { margin-top: auto; }
.nav-item { background: transparent; color: var(--text-dim); padding: 14px; border-radius: var(--radius-md); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; width: 100%; }
.nav-item i { width: 22px; height: 22px; flex-shrink: 0; }
.nav-item:hover { background: rgba(0,0,0,0.03); color: var(--text); }
body.light-mode .nav-item:hover { background: rgba(0,0,0,0.05); }
.nav-item.active { background: var(--primary); color: white; box-shadow: 0 10px 20px -5px var(--primary-glow); }

/* --- WORKSPACE SELECTOR --- */
.workspace-selector { margin-bottom: 25px; position: relative; width: 100%; }
.workspace-current { 
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); 
    padding: 12px; border-radius: var(--radius-md); display: flex; align-items: center; 
    gap: 12px; cursor: pointer; transition: var(--transition);
}
.workspace-current:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--primary); }
.workspace-icon { 
    width: 32px; height: 32px; background: var(--primary); border-radius: 8px; 
    display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0;
}
.workspace-info { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.workspace-label { font-size: 8px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.workspace-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-chevron { width: 14px; height: 14px; color: var(--text-dim); }

.workspace-dropdown {
    position: absolute; top: calc(100% + 10px); left: 0; width: 100%; 
    background: var(--bg-surface); border: 1px solid var(--border); 
    border-radius: var(--radius-md); box-shadow: var(--shadow-xl); z-index: 100;
    padding: 8px; display: flex; flex-direction: column; gap: 4px;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.workspace-option {
    padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; 
    gap: 12px; color: var(--text-dim); font-size: 13px; font-weight: 600; cursor: pointer;
}
.workspace-option i { width: 18px; height: 18px; }
.workspace-option:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.workspace-option.active { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.workspace-option.action { border-top: 1px solid var(--border); margin-top: 4px; color: var(--success); }
.workspace-divider { height: 1px; background: var(--border); margin: 4px 8px; }

@media (max-width: 1199px) {
    .workspace-info, .workspace-chevron, .workspace-option span { display: none; }
    .workspace-current { justify-content: center; padding: 10px; }
    .workspace-dropdown { width: 200px; left: 100%; top: 0; margin-left: 10px; }
}

/* MAIN VIEWPORT */
.main-viewport { flex: 1; position: relative; overflow: hidden; background: radial-gradient(circle at 0% 0%, #111827 0%, #020617 100%); }
body.light-mode .main-viewport { background: var(--bg-dark); }
.view { height: 100%; width: 100%; display: flex; flex-direction: column; padding: clamp(20px, 4vw, 40px); animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* HEADERS */
.view-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; flex-shrink: 0; }
.header-left h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -1px; }

/* LIBRARY */
.search-wrapper { background: rgba(0,0,0,0.05); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 18px; display: flex; align-items: center; gap: 12px; min-width: 280px; flex: 1; max-width: 400px; }
body.light-mode .search-wrapper { background: var(--bg-surface); }
.search-wrapper input { background: transparent; border: none; color: var(--text); outline: none; flex: 1; font-size: 14px; }
.content-scroll { flex: 1; overflow-y: auto; padding-right: 10px; }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.song-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; position: relative; transition: var(--transition); }
.song-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-xl); background: var(--bg-elevated); }

.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    opacity: 0; /* Escondido por padrão */
    transition: var(--transition);
    z-index: 5;
}
.song-card:hover .card-actions { opacity: 1; }

/* LIST VIEW OVERRIDES */
.song-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.song-card.list-view {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}
.song-card.list-view h3 {
    margin: 0;
    font-size: 16px;
    flex: 2;
}
.song-card.list-view p.artist {
    margin: 0;
    font-size: 14px;
    flex: 2;
}
.song-card.list-view .card-tags {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.song-card.list-view .card-actions {
    position: static;
    opacity: 1;
    margin-left: 15px;
}

.btn-action {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0,0,0,0.1);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}
body.light-mode .btn-action { background: var(--bg-elevated); }
.btn-action:hover { transform: scale(1.1); }
.btn-action.edit:hover { background: var(--primary); color: white; border-color: var(--primary); }
.btn-action.delete:hover { background: var(--danger); color: white; border-color: var(--danger); }

/* --- EDITOR & MUSICAL TEXT --- */
.editor-workspace { flex: 1; display: flex; gap: 20px; overflow: hidden; }
.editor-pane { flex: 1; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; }
.pane-header { padding: 12px 20px; font-size: 10px; font-weight: 800; color: var(--text-dim); background: rgba(0,0,0,0.05); border-bottom: 1px solid var(--border); letter-spacing: 1px; }
body.light-mode .pane-header { background: var(--bg-sidebar); }
.section-toolbar {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.section-toolbar::-webkit-scrollbar { display: none; }

.section-btn {
    background: rgba(255,255,255,0.05);
    color: var(--btn-color, var(--text-dim));
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-btn:hover {
    background: var(--btn-color, var(--primary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-color: transparent;
}

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

#main-editor {
    flex: 1;
    padding: 25px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0px;
    word-spacing: 0px;
    resize: none;
    outline: none;
    overflow-y: auto;
    white-space: pre;
    -webkit-appearance: none;
    appearance: none;
    -webkit-font-smoothing: antialiased;
    caret-color: var(--primary);
}

#main-editor::selection {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

.preview-scroll { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; background: rgba(0,0,0,0.1); }
body.light-mode .preview-scroll { background: rgba(0,0,0,0.03); }

.mini-card-preview {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    color: var(--text);
}

/* --- STAGE VIEW --- */
.stage-view { padding: 0 !important; background: var(--bg-dark); }
.stage-header { height: 90px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--bg-dark); z-index: 10; }
.stage-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; overflow: hidden; }
.active-card-wrapper { width: 100%; height: 100%; }

.chord-card-stage { background: transparent; border: none; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; }

.chord-text {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: pre;
    color: var(--text);
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    line-height: 1.4;
    letter-spacing: 0px;
    word-spacing: 0px;
    display: block;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

.line-chord, .line-lyric { display: block; min-height: 1.4em; white-space: pre; font-family: inherit; font-weight: inherit; }
.line-chord { color: var(--accent); font-weight: 800; }
.line-lyric { color: var(--text); opacity: 0.85; }

/* SECTIONS & TAGS */
.line-section-header {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    color: white;
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

/* Color Coding for Badges */
.line-section-header[data-type="intro"],
.line-section-header[data-type="solo"],
.line-section-header[data-type="instrumental"],
.line-section-header[data-type="preludio"],
.line-section-header[data-type="riff"] { background: #3b82f6; } /* Blue */

.line-section-header[data-type="refrao"],
.line-section-header[data-type="coro"],
.line-section-header[data-type="chorus"],
.line-section-header[data-type="gancho"],
.line-section-header[data-type="hook"] { background: var(--accent); } /* Orange */

.line-section-header[data-type="ponte"],
.line-section-header[data-type="bridge"],
.line-section-header[data-type="pre-refrao"],
.line-section-header[data-type="pre-chorus"],
.line-section-header[data-type="interludio"],
.line-section-header[data-type="passagem"] { background: #a855f7; } /* Purple */

.line-section-header[data-type="final"],
.line-section-header[data-type="outro"],
.line-section-header[data-type="ending"],
.line-section-header[data-type="coda"],
.line-section-header[data-type="fim"] { background: #ef4444; } /* Red */

.line-section-header[data-type="verso"],
.line-section-header[data-type="estrofe"],
.line-section-header[data-type="verse"],
.line-section-header[data-type="parte 1"],
.line-section-header[data-type="parte 2"],
.line-section-header[data-type="parte 3"] { background: #64748b; } /* Slate */



.chord-card-stage {
    border-left: none; /* Removido conforme solicitado */
}

/* Progress Bar Color Transition */
#player-progress-fill {
    transition: width 0.3s ease, background 0.5s ease;
}



/* --- FORM & UI COMPONENTS --- */
.input-standard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
body.light-mode .input-standard { background: rgba(0,0,0,0.05); }
.input-standard:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-dim);
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-icon-only {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-dim);
}
.main-progress-bar { height: 4px; background: rgba(0,0,0,0.1); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; margin-top: 10px; }
body.light-mode .main-progress-bar { background: rgba(0,0,0,0.05); }
.btn-icon-only:hover {
    background: var(--bg-elevated);
    color: var(--primary);
}

.btn-player-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    transition: var(--transition);
}
body.light-mode .btn-player-action { background: rgba(0, 0, 0, 0.03); }
.btn-player-action:hover { background: var(--primary); color: white; border-color: var(--primary); }

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
body.light-mode .glass-card { background: rgba(255, 255, 255, 0.5); }

.player-stat {
    background: var(--bg-elevated);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.player-stat .label { font-size: 9px; font-weight: 800; color: var(--primary); opacity: 0.8; letter-spacing: 1px; }
.player-stat .value { font-size: 24px; font-weight: 800; color: var(--text); }

/* METRONOME PULSE */
@keyframes pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 0px var(--primary-glow); opacity: 0.5; }
    50% { transform: scale(1.2); box-shadow: 0 0 20px var(--primary); opacity: 1; }
    100% { transform: scale(1); box-shadow: 0 0 0px var(--primary-glow); opacity: 0.5; }
}

#import-url-input {
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
}

#btn-import-magic {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#btn-import-magic:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow);
}

/* Ajuste para o Metrônomo no Player */
.metronome-orb {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
    display: inline-block;
}
.metronome-active {
    animation: pulse-glow var(--bpm-speed, 0.5s) infinite;
}

.player-stat { display: flex; flex-direction: column; align-items: flex-end; }
.player-stat .label { font-size: 9px; font-weight: 800; color: var(--text-dim); letter-spacing: 1px; }
.player-stat .value { font-size: 18px; font-weight: 800; color: var(--text); }
.player-stat.active .value { color: var(--accent); }

/* FOOTER & BUTTONS */
.stage-footer { height: 110px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; background: var(--bg-dark); border-top: 1px solid var(--border); z-index: 10; }
.btn-cta { background: var(--primary); color: white; padding: 12px 24px; border-radius: 12px; font-weight: 700; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.btn-cta:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px var(--primary-glow); }
.btn-stage-nav { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-elevated); color: var(--text); display: flex; align-items: center; justify-content: center; }
.btn-stage-nav.next { background: var(--primary); color: white; width: 64px; height: 64px; }
.btn-stage-nav:hover { transform: scale(1.1); }

/* QR CODE OPTIMIZATION */
.qr-container {
    display: inline-block;
    padding: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    cursor: zoom-in;
    margin-bottom: 5px;
}
.qr-container:hover {
    transform: scale(1.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 1000;
}
.qr-image {
    width: 150px;
    height: 150px;
    display: block;
    image-rendering: pixelated;
}

.invite-code-pill {
    display: flex;
    align-items: center;
    font-size: 9px;
    font-weight: 800;
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 20px;
    color: var(--accent);
    border: 1px solid var(--accent);
    cursor: copy;
    transition: var(--transition);
}
.invite-code-pill:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.workspace-option.action {
    color: var(--primary);
    font-weight: 700;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 12px;
}

/* --- BAND MANAGEMENT --- */
.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    transition: var(--transition);
}

.member-item.is-admin {
    border-color: rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.08);
}

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

.member-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
}

.member-dot.admin { background: var(--primary); }
.member-dot.me { background: var(--accent); }

.member-details {
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.member-role {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.member-role.admin {
    color: var(--primary);
    font-weight: 900;
}

/* --- IMPORT GROUP --- */
.import-group {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.import-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 8px 12px;
    outline: none;
    font-size: 14px;
}
/* --- NOTIFICATIONS & MODALS --- */
.notification-container {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; width: 100%; max-width: 400px; padding: 0 20px;
}
.notification {
    background: var(--bg-surface); border: 1px solid var(--border);
    padding: 16px 20px; border-radius: var(--radius-md); color: var(--text);
    box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 600; pointer-events: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--primary); backdrop-filter: blur(10px);
}
.notification.success { border-left-color: var(--success); }
.notification.error { border-left-color: var(--danger); }
.notification.warning { border-left-color: var(--accent); }
.notification i { width: 18px; height: 18px; flex-shrink: 0; }

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

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    z-index: 10000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
    background: var(--bg-surface); border: 1px solid var(--border);
    width: 90%; max-width: 400px; border-radius: var(--radius-lg);
    padding: 30px; box-shadow: var(--shadow-xl); transform: scale(0.9);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.modal-body { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 24px; }

/* MODAL TABS */
.modal-tabs {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.modal-tab {
    padding: 10px 0;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-dim);
    cursor: pointer;
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}
.modal-tab:hover {
    color: var(--text);
}
.modal-tab.active {
    color: var(--primary);
}
.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.modal-footer { display: flex; gap: 12px; justify-content: flex-end; }

.btn-modal { padding: 12px 24px; border-radius: var(--radius-md); font-size: 14px; font-weight: 700; }
.btn-modal-cancel { background: rgba(255,255,255,0.05); color: var(--text); }
.btn-modal-confirm { background: var(--primary); color: white; }
.btn-modal-danger { background: var(--danger); color: white; }

/* IMPORT WORKSPACE STYLES */
.import-item:hover:not(.duplicate) {
    background: rgba(255, 255, 255, 0.05) !important;
}

.import-item.duplicate {
    background: rgba(255,255,255,0.02);
}

.btn-action.clone:hover {
    background: rgba(var(--primary-rgb), 0.2) !important;
    color: var(--primary) !important;
}

.loader {
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top: 2px solid var(--primary);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
