/* ============================================================
   PRO PHOTO / LIGHTROOM UI
   Single-File · Modular · Bootstrap 5
============================================================ */


/* ============================================================
   1. BASE – DESIGN TOKENS & GLOBALS
============================================================ */

:root {
    /* === Colors === */
    --bg-main: #0b0b0b;
    --bg-panel: #111111;
    --bg-elevated: #161616;
    --bg-hover: #262626;

    --border-subtle: #1f1f1f;
    --border-strong: #333;

    --text-main: #e6e6e6;
    --text-muted: #9aa0a6;
    --text-dim: #777;

    --accent: #0d6efd;

    /* === Typography === */
    --font-ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* === Radius === */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* === Z-Index System === */
    --z-base: 1;
    --z-toolbar: 900;
    --z-header: 1000;
    --z-dropdown: 1100;
    --z-overlay: 1200;
    --z-offcanvas: 1300;
    --z-modal: 1400;
    --z-lightbox: 1500;
}

/* Reset / Base */
html, body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-ui);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

.text-muted {
    color: var(--text-muted) !important;
}


/* ============================================================
   2. LAYOUT – HEADER / NAV / FOOTER / TOOLBAR
============================================================ */

/* Header / Navbar */
/* ============================================================
   2. LAYOUT – HEADER / NAV / FOOTER / TOOLBAR
============================================================ */

/* Der obere Header-Block (Login Bereich) */
.header-block {
    position: relative;
    /* Erhöht über die Navbar (Z-Header ist 1000, wir gehen auf 1050) */
    z-index: calc(var(--z-header) + 50); 
    background: #000;
    border-bottom: 1px solid var(--border-subtle);
    overflow: visible !important; /* WICHTIG: Erlaubt das Rausragen des Menüs */
}

/* Die Sticky Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: var(--z-header); /* Bleibt bei 1000 */
    background: #000;
    border-bottom: 1px solid var(--border-subtle);
    overflow: visible;
    backdrop-filter: blur(6px);
}

/* Das Dropdown-Menü selbst */
.header-login-menu {
    /* Absolut höchste Priorität */
    z-index: var(--z-dropdown) !important; 
    min-width: 320px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #ffffff;
    border-radius: 12px;
    margin-top: 15px !important;
    /* Verhindert das Verschwinden hinter Elementen */
    position: absolute; 
}
/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: var(--z-dropdown);
}

.dropdown-item {
    color: var(--text-main);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: #fff;
}

/* Sticky Lightroom Toolbar */
.lr-toolbar {
    position: sticky;
    top: 0;
    z-index: var(--z-toolbar);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 10px rgba(0,0,0,.5);
    padding: 10px 0;
}

/* Footer */
footer {
    background: #000;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* ============================================================
   LOGIN DROPDOWN – INPUT FIX
============================================================ */
/* Das Dropdown-Menü anpassen */
.header-login-menu {
    min-width: 320px;            /* Breiter als Standard */
    background-color: #1a1a1a;   /* Dunkles Anthrazit */
    border: 1px solid #333;      /* Dezenter Rahmen */
    color: #ffffff;              /* Weiße Schrift */
    border-radius: 12px;         /* Modernere Ecken */
    margin-top: 15px !important; /* Abstand zum Button */
}

/* Die Input-Gruppen im dunklen Design */
.header-login-menu .input-group-text {
    background-color: #333;
    border-color: #444;
    color: #fff;
    z-index: 9999 !important;
}

.header-login-menu .form-control {
    background-color: #2b2b2b;
    border-color: #444;
    color: #fff;
    z-index: 9999 !important;
}

/* Fokus-Effekt für Inputs */
.header-login-menu .form-control:focus {
    background-color: #333;
    border-color: #0d6efd; /* Bootstrap Primary Blau */
    color: #fff;
    box-shadow: none;
    z-index: 1030; 
}

/* Überschrift im Dropdown */
.header-login-menu h6 {
    color: #0d6efd;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    z-index: 1030; 
}


/* ============================================================
   3. COMPONENTS – BUTTONS / FORMS / PAGINATION
============================================================ */

/* Buttons */
.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    color: #fff;
}

/* Forms */
.form-control,
.form-select {
    background: #000;
    border: 1px solid var(--border-strong);
    color: #fff;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Pagination */
.pagination .page-link {
    background: #222;
    border-color: #111;
    color: var(--text-dim);
}

.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}


/* ============================================================
   4. LIGHTROOM GRID – IMAGES / HOVER / OVERLAYS
============================================================ */

.lr-grid-cell {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    padding: 5px;
    height: 100%;
    transition: background .15s ease, border-color .15s ease;
}

.lr-grid-cell:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

.lr-img-wrap {
    aspect-ratio: 1 / 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.lr-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Caption */
.lr-caption {
    font-size: 0.65rem;
    padding: 6px 2px 0;
    color: var(--text-dim);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover Overlay */
.lr-hover-info {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.lr-grid-cell:hover .lr-hover-info {
    opacity: 1;
}

/* Quick View */
.quick-view-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
    opacity: 0;
    transition: .2s;
}

.lr-grid-cell:hover .quick-view-btn {
    opacity: 1;
}

.quick-view-btn:hover {
    background: var(--accent);
}


/* ============================================================
   5. OVERLAYS – OFFCANVAS / MODAL / LIGHTBOX
============================================================ */

.offcanvas {
    z-index: var(--z-offcanvas);
}

.modal {
    z-index: var(--z-modal);
}

.fslightbox-container {
    z-index: var(--z-lightbox);
}


/* ============================================================
   6. UTILITIES – PRINT / HELPERS
============================================================ */

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}