/* ============================================================================
   ProjectPlayCore – Admin Style (Safe Build)
   ============================================================================ */

/* Reset für Admin-Bereich */
body {
    margin: 0;
    padding: 0;
    background: #0f161d;
    color: #dfe7ec;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.topbar {
    width: 100%;
    background: #111a22;
    color: #9fe3bd;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1b2a34;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
}

.topbar-brand {
    font-weight: bold;
    margin-right: 10px;
    color: #9fe3bd;
}

.topbar-section {
    opacity: 0.9;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-user-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.who {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.topbar-user-name {
    font-weight: 600;
}

.topbar-user-role {
    opacity: 0.8;
}

.backbtn {
    padding: 6px 13px;
    background: #14312b;
    border: 1px solid #1b4a40;
    color: #9fe3bd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

.backbtn:hover {
    background: #1d4e42;
}

/* --------------------------------------------------------------------------
   MAIN LAYOUT
   -------------------------------------------------------------------------- */
.main {
    display: flex;
    margin-top: 70px;              /* Abstand unter Header */
    height: calc(100vh - 70px);
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   SIDEBAR
   -------------------------------------------------------------------------- */
.sidebar {
    width: 250px;
    background: #111a22;
    border-right: 1px solid #1b2a34;
    padding: 10px 0;
    overflow-y: auto;
}

.loading-info {
    padding: 10px 15px;
    color: #f5a5a5;
    font-size: 0.9rem;
}

.nav-group {
    padding: 5px 10px;
}

.nav-group h3 {
    margin: 0;
    padding: 10px;
    cursor: pointer;
    background: #152028;
    color: #9fe3bd;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Buttons standardmäßig VERSTECKT, Gruppen sind beim Laden zu */
.nav-group .nav-buttons {
    padding: 5px 10px;
    display: none;
}

/* Nur geöffnete Gruppen zeigen ihre Buttons */
.nav-group.open .nav-buttons {
    display: block;
}

.nav-button {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: #1a2631;
    border: 1px solid #243544;
    border-radius: 5px;
    color: #cfe6dc;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-button:hover,
.nav-button.active {
    background: #233544;
    border-color: #2e4d61;
}

/* Drag-Handle optisch kleiner */
.drag-handle {
    display: inline-block;
    opacity: 0.5;
    margin-right: 6px;
    font-size: 0.85rem;
}

/* Für Drag & Drop */
.dragging {
    opacity: 0.4;
}
.drop-target {
    border: 1px dashed #4fa;
}

/* --------------------------------------------------------------------------
   CONTENT
   -------------------------------------------------------------------------- */
.content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.content-inner {
    width: 90%;
    max-width: 1600px;
    margin: auto;
}

/* Cards */
.card {
    background: #141e26;
    padding: 20px 25px;
    border-radius: 10px;
    border: 1px solid #1c2b34;
    margin-bottom: 15px;
    color: #dfe7ec;
}

.card h2 {
    color: #9fe3bd;
    margin-top: 0;
}

.card p.muted {
    color: #9aa7b5;
    font-size: 0.9rem;
}

/* Einfacher Button-Stil für Inhalte */
.ppc-button,
.ppc-button-secondary {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.ppc-button {
    background: #1b5e3e;
    border: 1px solid #24945c;
    color: #dff7ea;
}

.ppc-button:hover {
    background: #20734d;
}

.ppc-button-secondary {
    background: transparent;
    border: 1px solid #2f3d4a;
    color: #dfe7ec;
}

.ppc-button-secondary:hover {
    background: #1b232c;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #111a22;
    color: #9fe3bd;
    text-align: center;
    padding: 8px 0;
    border-top: 1px solid #1b2a34;
    font-size: 0.85rem;
}
