/* =========================================
   EPICA: GLOBALE STYLES & VARIABLEN
========================================= */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* --- THEME VARIABLEN --- */
.fantasy {
    --primary: #d4af37;
    --primary-dark: #8b6508;
    --bg-color: #1a1510;
    --panel-bg: rgba(40, 30, 20, 0.85);
    color: #f3e5ab;
}

.scifi {
    --primary: #00f2ff;
    --primary-dark: #0088aa;
    --bg-color: #050b14;
    --panel-bg: rgba(10, 20, 35, 0.85);
    color: #e0f7fa;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    transition: all 0.5s ease;
}

/* --- GLOBALE UI ELEMENTE --- */
button {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: #000;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    margin: 5px 0;
    border-radius: 4px;
    width: 100%;
    text-transform: uppercase;
    transition: 0.2s;
}

button:hover {
    filter: brightness(1.2);
}

button.danger {
    background: linear-gradient(180deg, #e74c3c, #c0392b);
    color: white;
}

input, select, textarea {
    padding: 12px;
    border: 1px solid var(--primary-dark);
    background: rgba(0,0,0,0.5);
    color: white;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.box {
    border: 1px solid var(--primary-dark);
    padding: 20px;
    border-radius: 8px;
    background: var(--panel-bg);
    margin-bottom: 20px;
}

/* --- GLOBALE MODALS & POPUPS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-color);
    border: 2px solid var(--primary);
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    text-align: center;
}

#global-tooltip {
    position: fixed;
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid var(--primary);
    padding: 10px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 10px rgba(0,0,0,1);
    font-size: 12px;
    display: none;
    color: white;
}