/* --- GLOBAL VARIABLES & THEME --- */
:root {
    --bg-main: #080a0f;           /* Tiefschwarz-Blau */
    --bg-card: #11141d;           /* Dunkle Karten */
    --bg-sidebar: #0c0f16;        /* Etwas helleres Schwarz */
    --accent: #00d4ff;            /* Cyber Blue */
    --accent-glow: rgba(0, 212, 255, 0.3);
    --up: #00ff88;                /* Trading Grün */
    --down: #ff3366;               /* Trading Rot */
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --border: #1e293b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASIC --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden; /* Verhindert Scrollen des Bodys, da Sidebar/Main separat scrollen */
}

/* Scrollbar Design für Chrome/Edge */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- SETUP / OVERLAY SCREEN --- */
.overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #1e293b 0%, #080a0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.setup-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: center;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.setup-card h1 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.accent { color: var(--accent); }

.budget-options {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.budget-options button {
    flex: 1;
    padding: 12px;
    background: #1e293b;
    color: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.budget-options button:hover {
    background: var(--accent);
    color: black;
}

input[type="number"] {
    width: 100%;
    padding: 14px;
    background: #000;
    border: 1px solid var(--border);
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* --- MAIN LAYOUT --- */
.hidden { display: none !important; }

.navbar {
    height: 70px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.nav-stats {
    display: flex;
    gap: 30px;
}

.stat-box {
    text-align: right;
}

.stat-box small {
    display: block;
    color: var(--text-dim);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-box span {
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- SIDEBAR --- */
.main-container {
    display: flex;
    height: calc(100vh - 70px);
}

.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.category-group button {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid transparent;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.category-group button:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.portfolio-panel {
    margin-top: 2rem;
    flex: 1;
    overflow-y: auto;
}

.portfolio-panel h3 {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* --- MARKET GRID & ASSET CARDS --- */
.content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.asset-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* --- DER ZOOM EFFEKT --- */
.asset-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 10;
}

/* Graph wird beim Hovern größer */
.chart-container {
    height: 100px; /* Standardhöhe */
    width: 100%;
    margin: 15px 0;
    transition: height 0.4s ease; /* Weicher Übergang */
}

.asset-card:hover .chart-container {
    height: 200px; /* Vergrößerte Höhe beim Hover */
}

/* --- BUTTONS & ACTIONS --- */
.primary-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.reset-btn {
    background: #1e293b;
    color: var(--down);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

/* --- PN L NOTIFICATIONS --- */
.pnl-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    animation: toastSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastSlide {
    from { transform: translateX(100%) opacity: 0; }
    to { transform: translateX(0) opacity: 1; }
}

/* --- STATUS INDICATORS --- */
.pulse {
    color: var(--up);
    animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.stat-item {
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid var(--accent);
}