/**
 * User-Bereich: Ergänzungen zu /admin/dist/css/theme-dark.css
 */

/* Sprachleiste in der Sidebar (user/index.php) */
html.admin-theme-dark .language-container {
    background: #141920 !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

html.admin-theme-dark .language-btn {
    color: #9aa0a6 !important;
}

html.admin-theme-dark .language-btn.active,
html.admin-theme-dark .language-btn:hover {
    color: #fff !important;
}

/* Fußzeile / Hinweis unter dem Haupt-Wrapper */
html.admin-theme-dark .user-page-footer {
    background: var(--admin-bg);
    border-top: 1px solid var(--admin-border);
}

html.admin-theme-dark .user-page-footer .text-muted {
    color: var(--admin-muted) !important;
}

/* Schlichte Bestätigungsseiten (z. B. E-Mail-Verifikation) */
html.admin-theme-dark body.admin-theme-static {
    background: #1a1d23 !important;
    color: #e8eaed;
}

html.admin-theme-dark body.admin-theme-static .card {
    background: #242830 !important;
    border-color: #3d424d;
}

html.admin-theme-dark body.admin-theme-static .card-title {
    color: var(--admin-text);
}

html.admin-theme-dark body.admin-theme-static .alert-info {
    background-color: #1a3a48;
    border-color: #2a5568;
    color: #c8e8fa;
}

/* Login / Passwort vergessen (login.css – .box) */
html.admin-theme-dark body.admin-login-page {
    background: linear-gradient(135deg, #1a0a0c 0%, #0a1628 50%, #0d2138 100%) !important;
}

html.admin-theme-dark body.admin-login-page .box {
    background: #12161c !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

html.admin-theme-dark body.admin-login-page .text-muted {
    color: var(--admin-muted) !important;
}

html.admin-theme-dark body.admin-login-page .modal-content {
    background: var(--admin-surface);
    color: var(--admin-text);
    border-color: var(--admin-border);
}

/* Schwebender Theme-Button (Login, lostpw, Verifikation) */
.admin-login-theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1050;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.22);
}

.admin-login-theme-toggle:hover,
.admin-login-theme-toggle:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.35) !important;
    text-decoration: none !important;
}

.admin-login-theme-toggle:focus {
    outline: 2px solid rgba(126, 184, 255, 0.5);
    outline-offset: 2px;
}

html.admin-theme-dark .admin-login-theme-toggle {
    background: rgba(0, 0, 0, 0.4);
}

html.admin-theme-dark .admin-login-theme-toggle:hover,
html.admin-theme-dark .admin-login-theme-toggle:focus {
    background: rgba(0, 0, 0, 0.58) !important;
}

/* -------------------------------------------------------------------------- */
/* user/views/faq.view.php */
/* -------------------------------------------------------------------------- */
html.admin-theme-dark .faq-category {
    border-bottom-color: var(--admin-border);
}

html.admin-theme-dark .faq-item {
    background-color: var(--admin-elevated);
}

html.admin-theme-dark .faq-question {
    color: var(--admin-text);
}

html.admin-theme-dark .faq-answer {
    color: var(--admin-muted);
}

/* -------------------------------------------------------------------------- */
/* user/views/transfer.view.php – Loading-Overlay (wird per Script eingefügt) */
/* -------------------------------------------------------------------------- */
html.admin-theme-dark #loading-overlay {
    background: rgba(18, 21, 26, 0.88) !important;
}

/* -------------------------------------------------------------------------- */
/* user/views/bringandbuy/*.view.php – Formular-Shell & Labels */
/* -------------------------------------------------------------------------- */
html.admin-theme-dark .bnb-labels-hint {
    border-color: rgba(90, 170, 200, 0.35) !important;
    background: linear-gradient(135deg, rgba(30, 55, 68, 0.95) 0%, rgba(26, 32, 40, 0.95) 100%) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

html.admin-theme-dark .bnb-bringbuy-form-shell {
    border-color: var(--admin-border) !important;
    background: var(--admin-surface) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

html.admin-theme-dark .bnb-bringbuy-form .form-control,
html.admin-theme-dark .bnb-bringbuy-form select.form-control {
    border-color: var(--admin-border);
}

html.admin-theme-dark .bnb-form-block:not(:first-child) {
    border-top-color: var(--admin-border);
}

html.admin-theme-dark .bnb-form-label {
    color: var(--admin-muted);
}

html.admin-theme-dark .bnb-form-footer {
    border-top-color: var(--admin-border);
    background: linear-gradient(180deg, transparent 0%, rgba(30, 38, 48, 0.85) 100%);
}

html.admin-theme-dark .bnb-preview-img {
    border-color: var(--admin-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html.admin-theme-dark .bnb-row-action a {
    color: #b8c4d0 !important;
}

html.admin-theme-dark .bnb-row-action a:hover {
    color: #e8eef4 !important;
}

html.admin-theme-dark .bnb-row-action a.bnb-act-del {
    color: #f5a0a8 !important;
}

html.admin-theme-dark .bnb-row-action a.bnb-act-del:hover {
    color: #ffc9ce !important;
}

/* -------------------------------------------------------------------------- */
/* user/views/attorney.view.php – Signatur (Canvas bleibt weiß) */
/* -------------------------------------------------------------------------- */
html.admin-theme-dark .signature-pad {
    border-color: var(--admin-border);
}

/* -------------------------------------------------------------------------- */
/* user/views/index + bringandbuy – Artikelbild-Tooltip & Lightbox (JS) */
/* -------------------------------------------------------------------------- */
.user-article-image-tooltip {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    max-width: 400px;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #007bff;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

.user-article-image-tooltip__title {
    margin-top: 8px;
    font-weight: bold;
    text-align: center;
    color: inherit;
}

html.admin-theme-dark .user-article-image-tooltip {
    background: var(--admin-surface);
    border-color: #5c9dff;
    color: var(--admin-text);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.user-article-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-article-image-modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.user-article-image-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 0 6px;
}

.user-article-image-modal__close:hover {
    color: #000;
}

.user-article-image-modal__title {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
    color: inherit;
}

html.admin-theme-dark .user-article-image-modal__content {
    background: var(--admin-surface);
    color: var(--admin-text);
    border: 1px solid var(--admin-border);
}

html.admin-theme-dark .user-article-image-modal__close {
    color: var(--admin-text);
}

html.admin-theme-dark .user-article-image-modal__close:hover {
    color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Dashboard (index): Inaktiv-Hinweis-Panel ist fest weiß inline – im Dark Mode */
/* würden .card-body-/body-Farben (hell) darauf fallen → kaum lesbar.           */
/* -------------------------------------------------------------------------- */
html.admin-theme-dark .user-dashboard-list-overlay__panel {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-border) !important;
    color: var(--admin-text) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

html.admin-theme-dark .user-dashboard-list-overlay__panel .h5,
html.admin-theme-dark .user-dashboard-list-overlay__panel p {
    color: var(--admin-text) !important;
}

/* -------------------------------------------------------------------------- */
/* Bootstrap-Modals im Userbereich (#fff aus style.min kann sonst gewinnen).   */
/* -------------------------------------------------------------------------- */
html.admin-theme-dark .modal-dialog .modal-content {
    background-color: var(--admin-surface) !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-text) !important;
}

html.admin-theme-dark .modal-dialog .modal-body {
    color: var(--admin-text) !important;
}

html.admin-theme-dark .modal-dialog .modal-header:not(.bg-info):not(.bg-primary):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-dark) {
    border-bottom-color: var(--admin-border);
}
