/* ==========================================================================
   BEPO – Berliner Prüfungs-Optimierer
   public/assets/css/parts/admin/_admin-layout.css – Admin Layout & Header
   🌍 MENSCH: Grundlegende Admin-Seitenstruktur, Header-Bereich und
   Generator-Button. Modal-Lock für body.
   🤖 KI-CONTEXT: @ui-render
   ========================================================================== */

/* 1. PAGE LAYOUT
   ========================================================================== */
html.admin-page, body.admin-page {
    overflow: auto;
    height: auto;
    min-height: 100vh;
}

body.admin-page {
    min-height: 100vh;
    background: var(--color-bg);
    padding: 1.5rem;
}

.admin-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* 2. HEADER
   ========================================================================== */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--color-surface);
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header-left h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.admin-back-link {
    font-size: 0.85rem;
    color: var(--color-primary, #0ea5e9);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.1);
    transition: background 0.15s ease;
}

.admin-back-link:hover {
    background: rgba(14, 165, 233, 0.2);
}

/* 3. HEADER-ACTIONS (Generator-Button + Search)
   ========================================================================== */
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-btn-gen {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 10px;
    color: #eab308;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.admin-btn-gen:hover {
    background: rgba(234, 179, 8, 0.25);
    border-color: rgba(234, 179, 8, 0.5);
    transform: translateY(-1px);
}

.admin-btn-gen:active {
    transform: translateY(0);
}

/* 11. BODY MODAL-LOCK (wird per JS gesetzt)
   ========================================================================== */
body.modal-open {
    overflow: hidden;
}