:root {
    --bg-body: #020617;
    --bg-elevated: #0f172a;
    --bg-elevated-soft: #101624;
    --border-subtle: #1f2937;
    --accent: #38bdf8;
    --accent-soft: rgba(56,189,248,0.15);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f97316;
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow-elevated: 0 18px 40px rgba(15,23,42,0.9);
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at top, #020617 0, #000 55%);
    color: var(--text-main);
}

/* Layout: Navbar oben, Content darunter */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-navbar {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient(90deg, #020617, #111827);
    border-bottom: 1px solid #1f2937;
}

.app-navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: radial-gradient(circle at 30% 10%, #22c55e, #15803d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #f9fafb;
}

.app-title {
    font-size: 15px;
    font-weight: 600;
}

.app-navbar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-nav-link {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
}

.app-nav-link.active {
    color: var(--text-main);
    border-color: var(--accent-soft);
    background: rgba(15,23,42,0.9);
}

.app-main {
    flex: 1;
    padding: 16px 20px 20px;
}

/* Standard-Container für Seite */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Buttons, Alerts global */
.btn {
    padding: 8px 10px;
    border-radius: 999px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary   { background: #1d4ed8; color: #f9fafb; }
.btn-primary:hover { background: #2563eb; }

.btn-warning   { background: var(--warning); color: #111827; }
.btn-warning:hover { background: #fb923c; }

.btn-danger    { background: var(--danger); color: #f9fafb; }
.btn-danger:hover { background: #f87171; }

.btn-success   { background: var(--success); color: #052e16; }
.btn-success:hover { background: #4ade80; }

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid;
    font-size: 12px;
}

.alert-success {
    background: rgba(22,163,74,0.08);
    border-color: #22c55e;
    color: #bbf7d0;
}

.alert-error {
    background: rgba(239,68,68,0.08);
    border-color: #ef4444;
    color: #fecaca;
}
