/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark: #1a1a2e;
    --bg-panel: #16213e;
    --bg-card: #0f3460;
    --bg-input: #0d1b3e;
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --text: #e0e0e0;
    --text-muted: #8892a4;
    --text-dim: #5a6478;
    --border: #2a3a5c;
    --border-light: #3a4a6c;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow: 0 4px 20px rgba(0,0,0,.4);

    /* rarity */
    --rarity-common: #9d9d9d;
    --rarity-uncommon: #1eff00;
    --rarity-rare: #0070dd;
    --rarity-epic: #a335ee;
    --rarity-legendary: #ff8000;

    /* change states */
    --state-new: #27ae60;
    --state-modified: #f39c12;
    --state-deleted: #e74c3c;
}

html { font-size: 14px; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
}

/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.5rem;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .5px;
}

.top-bar__right { display: flex; gap: .5rem; align-items: center; }

/* ===== TABS ===== */
.tab-bar {
    display: flex;
    gap: 0;
    background: var(--bg-panel);
    border-bottom: 2px solid var(--border);
    padding: 0 1.5rem;
}

.tab-btn {
    padding: .65rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== CONTENT ===== */
.content { padding: 1.25rem 1.5rem; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.panel-header h2 { font-size: 1.1rem; font-weight: 700; }
.panel-header__actions { display: flex; align-items: center; gap: .75rem; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ===== MISC ===== */
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-small { font-size: .78rem; }
.mt-1 { margin-top: .5rem; }
.hidden { display: none !important; }
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-dim);
    font-size: .9rem;
}
