/*
 * HerzGeschenk brand theme for the admin panel.
 * Loaded after the template CSS (style.blade.php + auth/login.blade.php).
 * Colours match the customer app: crimson #BF003A → wine #59001C, blush and cream backgrounds,
 * dusty rose from the logo heart.
 */
:root {
    --hg-primary: #bf003a;
    --hg-primary-hover: #a00032;
    --hg-primary-dark: #59001c;
    --hg-gradient: linear-gradient(135deg, #bf003a 0%, #59001c 100%);
    --hg-blush: #fdf0f3;
    --hg-blush-2: #fbe3ea;
    --hg-blush-border: #f3dde3;
    --hg-cream: #faf6f3;
    --hg-rose: #b0766b;
    --hg-ink: #2b1a1f;
    --hg-muted: #8a787d;

    /* template variables (themeColors.js may set them inline → !important keeps the brand) */
    --primary-bg-color: #bf003a !important;
    --primary-bg-hover: #a00032 !important;
    --primary-bg-border: #bf003a !important;
    --primary01: rgba(191, 0, 58, 0.1) !important;
    --primary02: rgba(191, 0, 58, 0.2) !important;
    --primary03: rgba(191, 0, 58, 0.3) !important;
    --primary06: rgba(191, 0, 58, 0.6) !important;
    --primary09: rgba(191, 0, 58, 0.9) !important;
}

/* ── Page ──────────────────────────────────────────────────────────── */
body.app {
    background-color: var(--hg-cream);
    color: #4a3b3f;
}

a { color: var(--hg-primary); }
a:hover { color: var(--hg-primary-dark); }
.text-primary { color: var(--hg-primary) !important; }
.bg-primary { background-color: var(--hg-primary) !important; }

/* ── Header ────────────────────────────────────────────────────────── */
.app-header {
    background: #fff !important;
    border-bottom: 1px solid var(--hg-blush-border) !important;
    box-shadow: 0 2px 12px rgba(89, 0, 28, 0.04) !important;
}

/* ── Sidebar ───────────────────────────────────────────────────────── */
.app-sidebar {
    background: #fff !important;
    border-right: 1px solid var(--hg-blush-border) !important;
}
.app-sidebar .side-header {
    background: #fff !important;
    border-bottom: 1px solid var(--hg-blush-border) !important;
    border-right: 1px solid var(--hg-blush-border) !important;
}
/* keep the template's header height so the menu below is not covered */
.app-sidebar .side-header .header-brand1 {
    padding: 6px 15px !important;
    height: 100%;
}
.app-sidebar .side-header .header-brand-img,
body.hg-login .header-brand-img {
    width: auto !important;
    max-width: 110px !important;
    max-height: 58px !important;
    border-radius: 0 !important;
    mix-blend-mode: multiply; /* the logo has a white background → blends into light surfaces */
}
.side-menu h3 {
    color: var(--hg-muted) !important;
    letter-spacing: 0.12em;
}
.app-sidebar .side-menu__item {
    color: #4a3b3f !important;
    border-radius: 10px;
    margin: 1px 10px;
    transition: background 0.2s ease, color 0.2s ease;
}
/* one calm icon colour instead of the template's rainbow (text-primary, text-success, inline fills …) */
.app-sidebar .side-menu__icon,
.app-sidebar .side-menu__item i.side-menu__icon,
.app-sidebar .side-menu__item [class*="text-"] {
    color: var(--hg-rose) !important;
    fill: var(--hg-rose) !important;
}
.app-sidebar .side-menu__item:hover,
.app-sidebar .side-menu__item:focus,
.app-sidebar .side-menu__item.active,
.app-sidebar .slide.is-expanded > .side-menu__item {
    background: var(--hg-blush) !important;
    color: var(--hg-primary) !important;
}
.app-sidebar .side-menu__item:hover .side-menu__icon,
.app-sidebar .side-menu__item.active .side-menu__icon,
.app-sidebar .slide.is-expanded > .side-menu__item .side-menu__icon,
.app-sidebar .side-menu__item:hover .side-menu__label,
.app-sidebar .side-menu__item.active .side-menu__label,
.app-sidebar .side-menu__item:hover .angle,
.app-sidebar .side-menu__item.active .angle {
    color: var(--hg-primary) !important;
    fill: var(--hg-primary) !important;
}
.app-sidebar .slide-item {
    color: #6d5b60 !important;
}
.app-sidebar .slide-item:hover,
.app-sidebar .slide-item.active {
    color: var(--hg-primary) !important;
}
.app-sidebar .slide-item:before {
    border-color: var(--hg-rose) !important;
}

/* ── Page header / breadcrumb ──────────────────────────────────────── */
.page-header .page-title,
h1.page-title { color: var(--hg-ink); }
.breadcrumb-item a { color: var(--hg-primary) !important; }
.breadcrumb-item.active { color: var(--hg-muted) !important; }

/* ── Cards ─────────────────────────────────────────────────────────── */
.card {
    border: 1px solid #f1e6e9 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(89, 0, 28, 0.05) !important;
}
.card-header {
    border-bottom-color: #f3e9ec !important;
}
.card-title { color: var(--hg-ink); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
    background: var(--hg-gradient) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(191, 0, 58, 0.18);
}
.btn-primary:hover,
.btn-primary:focus {
    filter: brightness(1.08);
    box-shadow: 0 6px 16px rgba(191, 0, 58, 0.28);
}
.btn-outline-primary {
    color: var(--hg-primary) !important;
    border-color: var(--hg-primary) !important;
}
.btn-outline-primary:hover {
    background: var(--hg-primary) !important;
    color: #fff !important;
}
/* "Add …" buttons in the list pages use btn-danger/btn-success → brand gradient */
.card-header .btn-danger,
.card-header .btn-success,
.page-header .btn-danger,
.page-header .btn-success {
    background: var(--hg-gradient) !important;
    border: none !important;
    color: #fff !important;
}
/* table actions: edit = soft blush, delete stays red */
.btn-info,
.table .btn-info,
.table .btn-primary {
    background: var(--hg-blush) !important;
    border: 1px solid var(--hg-blush-border) !important;
    color: var(--hg-primary) !important;
    box-shadow: none !important;
}
.btn-info:hover,
.table .btn-info:hover,
.table .btn-primary:hover {
    background: var(--hg-blush-2) !important;
}
.btn-light {
    background: var(--hg-blush) !important;
    border-color: var(--hg-blush-border) !important;
    color: var(--hg-primary) !important;
}

/* ── Forms ─────────────────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--hg-primary) !important;
    box-shadow: 0 0 0 3px rgba(191, 0, 58, 0.1) !important;
}
.form-check-input:checked,
.custom-switch-input:checked ~ .custom-switch-indicator,
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--hg-primary) !important;
    border-color: var(--hg-primary) !important;
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(191, 0, 58, 0.15) !important;
}

/* status toggles in the list pages (inline .slider styles use green #28a745) */
input:checked + .slider {
    background-color: var(--hg-primary) !important;
}
input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(191, 0, 58, 0.15) !important;
}
/* status toggles in the tables (template uses green) */
.table .form-switch .form-check-input:checked,
.table input[type="checkbox"]:checked {
    background-color: var(--hg-primary) !important;
    border-color: var(--hg-primary) !important;
}

/* ── Tables (DataTables) ───────────────────────────────────────────── */
.table thead th,
table.dataTable thead th {
    background: #fbf6f7 !important;
    color: var(--hg-ink) !important;
    border-bottom-color: #f1e6e9 !important;
}
.table td,
.table th {
    border-color: #f3eaed !important;
}
.table-hover tbody tr:hover,
table.dataTable tbody tr:hover {
    background: #fdf7f8 !important;
}
.page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--hg-primary) !important;
    border-color: var(--hg-primary) !important;
    color: #fff !important;
}
.page-link { color: var(--hg-primary); }

/* ── Small UI ──────────────────────────────────────────────────────── */
.badge.bg-primary,
.badge-primary { background: var(--hg-primary) !important; }
.dropdown-item:hover,
.dropdown-item:focus { background: var(--hg-blush); color: var(--hg-primary); }
.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
    background: var(--hg-primary) !important;
    border-color: var(--hg-primary) !important;
    color: #fff !important;
}
.toast-success { background-color: #59001c !important; }
.footer {
    background: transparent !important;
    border-top: 1px solid var(--hg-blush-border) !important;
    color: var(--hg-muted);
}
#global-loader { background: var(--hg-cream) !important; }

/* ── Admin login page ──────────────────────────────────────────────── */
body.hg-login {
    background:
        radial-gradient(circle at 15% 20%, rgba(191, 0, 58, 0.07), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(176, 118, 107, 0.12), transparent 45%),
        var(--hg-cream) !important;
}
body.hg-login .wrap-login100 {
    border: 1px solid var(--hg-blush-border) !important;
    box-shadow: 0 20px 50px rgba(89, 0, 28, 0.1) !important;
}
body.hg-login .login100-form-btn {
    background: var(--hg-gradient) !important;
}
body.hg-login .login100-form-btn:hover {
    box-shadow: 0 6px 18px rgba(191, 0, 58, 0.35) !important;
}
body.hg-login .symbol-input100 {
    color: var(--hg-primary) !important;
}
body.hg-login .input100:focus {
    border-color: var(--hg-primary) !important;
    box-shadow: 0 0 0 3px rgba(191, 0, 58, 0.1) !important;
}
body.hg-login .header-brand-img {
    max-width: 150px !important;
    max-height: 110px !important;
    filter: none !important;
}
