* { box-sizing: border-box; }
body {
    margin: 0;
    background: #0e0e16;
    color: #eafffa;
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.card {
    background: linear-gradient(135deg, rgba(20,20,35,0.95), rgba(35,15,50,0.95));
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 12px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 0 30px rgba(0,255,200,0.08);
}
.card.wide { max-width: 900px; }
h1 { font-size: 22px; margin-top: 0; color: #7dffe0; }
label { display: block; margin: 14px 0 4px; font-size: 14px; color: #b8fff0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(0,255,200,0.3);
    background: rgba(0,0,0,0.3);
    color: #eafffa;
    font-size: 14px;
}
button, .btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #00ffd0, #ff2fd0);
    color: #0e0e16;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
button.secondary, .btn.secondary {
    background: transparent;
    border: 1px solid rgba(0,255,200,0.4);
    color: #7dffe0;
}
a { color: #7dffe0; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.flash-success { background: rgba(0,255,150,0.15); border: 1px solid rgba(0,255,150,0.4); }
.flash-error { background: rgba(255,50,80,0.15); border: 1px solid rgba(255,50,80,0.4); }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
.badge { padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge-pending { background: rgba(255,200,0,0.2); color: #ffd54a; }
.badge-approved { background: rgba(0,255,150,0.2); color: #4affb0; }
.badge-rejected { background: rgba(255,50,80,0.2); color: #ff5a80; }

/* ===== App-Shell mit Sidebar (Dashboard-Bereich) ===== */
body.app {
    display: block;
    padding: 0;
    align-items: unset;
    justify-content: unset;
}
.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(18,18,30,0.98), rgba(28,14,42,0.98));
    border-right: 1px solid rgba(0,255,200,0.15);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar-brand {
    padding: 0 20px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #7dffe0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 12px;
}
.sidebar-brand span { display: block; font-size: 12px; font-weight: 400; color: #9adfd0; margin-top: 2px; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #b8fff0;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}
.sidebar-link:hover { background: rgba(0,255,200,0.08); }
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(0,255,208,0.18), rgba(255,47,208,0.18));
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(0,255,200,0.3);
}
.sidebar-link.disabled {
    color: #5c6b68;
    cursor: default;
    pointer-events: none;
}
.sidebar-link .icon { width: 18px; text-align: center; }
.sidebar-soon {
    margin-left: auto;
    font-size: 10px;
    background: rgba(255,255,255,0.08);
    color: #9adfd0;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.sidebar-footer {
    padding: 12px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 12px;
    font-size: 13px;
}
.sidebar-footer a { color: #9adfd0; }

.main-content {
    flex: 1;
    padding: 32px 40px;
    max-width: 1400px;
    width: 100%;
}
.main-content h1 { font-size: 24px; margin-top: 0; color: #7dffe0; }
.panel {
    background: linear-gradient(135deg, rgba(20,20,35,0.9), rgba(35,15,50,0.9));
    border: 1px solid rgba(0,255,200,0.2);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 60px 20px;
    color: #9adfd0;
}
.coming-soon .big-icon { font-size: 40px; }

@media (max-width: 860px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; padding: 10px; }
    .sidebar-brand, .sidebar-footer { display: none; }
    .sidebar-nav { flex-direction: row; }
    .main-content { padding: 20px; }
}
