/* ══════════════════════════════════════════════════════════════
   Skin: Bricket (Dark + Top Nav)
   Design system from bricket-labs: dark mode, terra/gold palette,
   Outfit font. Based on topnav layout (watson template).
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* ── General ── */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --accent: #E8634A;
    --accent-light: #E88A5A;
    --accent-dim: rgba(232, 99, 74, 0.15);
    --accent-glow: rgba(232, 99, 74, 0.35);
    --gold: #F0A535;
    --danger: #EF4444;
    --danger-dim: rgba(239, 68, 68, 0.12);
    --danger-hover: rgba(239, 68, 68, 0.2);
    --success: #22C55E;
    --success-dim: rgba(34, 197, 94, 0.18);

    /* ── Top nav bar ── */
    --topnav-h: 56px;
    --topnav-bg: #111114;
    --topnav-border: rgba(255, 255, 255, 0.06);
    --topnav-text: rgba(242, 240, 237, 0.55);
    --topnav-text-active: #F2F0ED;
    --topnav-item-active-bg: rgba(232, 99, 74, 0.15);
    --topnav-item-hover-bg: rgba(255, 255, 255, 0.05);
    --topnav-logo-image: url('/resources/brands/bricket/images/logos/logo.svg');
    --topnav-logo-height: 32px;

    /* ── Content area ── */
    --content-bg: #08090E;
    --content-text: rgba(242, 240, 237, 0.82);
    --content-text-muted: rgba(242, 240, 237, 0.55);
    --content-heading: #F2F0ED;

    /* ── Borders ──
       border-light is what draws a control, and a control has to reach 3:1
       against the content background to be a visible edge rather than a hint;
       on #08090E that is 36% white. border-subtle only separates panels. */
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.36);

    /* ── CRUD ── */
    --crud-bg: #111114;
    --crud-header-text: rgba(242, 240, 237, 0.55);
    --crud-cell-text: rgba(242, 240, 237, 0.82);
    --crud-row-hover: rgba(232, 99, 74, 0.04);
    --crud-row-border: rgba(255, 255, 255, 0.06);
    --crud-link: #E8634A;

    /* ── Inputs ── */
    --input-bg: #2A2A33;
    --input-border: rgba(255, 255, 255, 0.36);
    --input-text: #F2F0ED;
    --input-focus-border: #E8634A;
    --input-focus-shadow: 0 0 0 3px rgba(232, 99, 74, 0.15);
    --input-placeholder: rgba(242, 240, 237, 0.5);

    /* ── Buttons ── */
    --btn-primary-bg: rgba(232, 99, 74, 0.15);
    --btn-primary-border: #E8634A;
    --btn-primary-text: #E8634A;
    --btn-primary-hover: rgba(232, 99, 74, 0.25);
    --btn-secondary-bg: #111114;

    /* ── Labels ── */
    --label-text: rgba(240, 165, 53, 0.6);

    /* ── Switch ── */
    --switch-active-bg: #E8634A;
    --switch-active-border: #E8634A;

    /* ── Paginator ── */
    --paginator-text: rgba(242, 240, 237, 0.4);
    --paginator-active-bg: rgba(232, 99, 74, 0.15);
    --paginator-active-border: rgba(232, 99, 74, 0.3);
    --paginator-active-text: #E8634A;
    --paginator-disabled: rgba(255, 255, 255, 0.1);

    /* ── Sidebar (admin menu; the user dashboard reuses these tokens) ── */
    --sidebar-surface: #0C0D14;
    --sidebar-bg: var(--sidebar-surface);
    --sidebar-bg-subtle: #0a0a0c;
    --sidebar-text: rgba(242, 240, 237, 0.55);
    --sidebar-text-bright: #F2F0ED;
    --sidebar-text-dim: rgba(242, 240, 237, 0.3);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.05);
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --sidebar-logo-image: url('/resources/brands/bricket/images/logos/logo.svg');
    --sidebar-logo-width: 140px;
    --sidebar-logo-height: 42px;
    --sidebar-logo-collapsed-image: url('/resources/brands/bricket/images/logos/collapsed.svg');
    --sidebar-logo-collapsed-size: 30px;
    --sidebar-dropdown-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);

    /* ── Public pages (landing, login) ── */
    --public-bg: #0a0a0c;
    --public-text: rgba(242, 240, 237, 0.82);
    --public-heading: #F2F0ED;
    --public-label: rgba(242, 240, 237, 0.55);
    --public-box-bg: #111114;
    --public-box-border: rgba(255, 255, 255, 0.06);
    --public-btn-bg: #E8634A;
    --public-btn-hover: #E88A5A;
    --public-btn-text: #ffffff;
    --public-error-bg: rgba(239, 68, 68, 0.12);
    --public-error-border: rgba(239, 68, 68, 0.2);
    --public-error-text: #EF4444;
    --public-logo-image: url('/resources/brands/bricket/images/logos/logo.svg');
    --public-logo-glow: drop-shadow(0 0 20px rgba(232, 99, 74, 0.3)) drop-shadow(0 0 60px rgba(240, 165, 53, 0.1));
    --public-icon-filter: brightness(0) saturate(100%) invert(50%) sepia(80%) saturate(600%) hue-rotate(340deg) brightness(95%) contrast(95%);

    /* ── EasyAdmin/Bootstrap overrides ── */
    --body-bg: #08090E;
    --content-panel-bg: #111114;
}

/* ══════════════════════════════════════════════════════════════
   EasyAdmin 5 dark scheme
   The bundle builds its whole dark theme from a grey ramp plus one
   accent, so restating the ramp in the brand palette re-skins every
   view. Anything the ramp cannot reach is listed below it.
   ══════════════════════════════════════════════════════════════ */
.ea-dark-scheme {
    --ea-primary: var(--accent);

    --gray-950: #08090E;
    --gray-900: #111114;
    --gray-800: #1A1A20;
    --gray-700: #24242C;
    --gray-600: #5C5C64;
    --gray-500: #8B8A87;
    --gray-400: #A9A7A3;
    --gray-300: #C8C6C2;
    --gray-200: #E6E4E0;
    --gray-100: #F2F0ED;
    --gray-50: #FAF9F7;

    --link-color: var(--accent);
    --link-hover-color: var(--accent-light);

    /* Greys the bundle hardcodes outside the ramp */
    --button-secondary-bg: var(--btn-secondary-bg);
    --button-secondary-hover-bg: var(--gray-800);
    --button-secondary-active-bg: var(--gray-700);
    --button-secondary-border-color: var(--border-light);
    --button-secondary-hover-border-color: var(--border-light);
    --button-secondary-active-border-color: var(--border-light);
    --button-danger-bg: var(--danger-dim);
    --button-danger-color: var(--danger);
    --button-danger-border-color: var(--danger);
    --button-danger-hover-bg: var(--danger-hover);
    --button-invisible-danger-color: var(--danger);

    /* Associations read gold rather than the bundle's blue */
    --badge-info-bg: rgba(240, 165, 53, 0.14);
    --badge-info-color: var(--gold);
    --badge-info-box-shadow: inset 0 0 0 1px rgba(240, 165, 53, 0.3);
}

/* Sidebar logo is styled in dashboard.css (HTML) and easyadmin-overrides.css (admin) */

/* Hide the link text/duplicate */
#header-logo .logo-custom a {
    display: flex !important;
    justify-content: center !important;
    text-decoration: none !important;
}

/* User menu: hide dropdown, keep avatar + name */
.user-menu-wrapper .dropdown-menu {
    display: none !important;
}
.user-menu-wrapper .dropdown-toggle::after {
    display: none !important;
}
.user-menu-wrapper .dropdown-toggle {
    pointer-events: none !important;
}
