/*
 * Centrixa brand theme for Acorn  (v1.1 - Ocean Teal)
 * ------------------------------------------------------------
 * Load AFTER acorn/css/styles.css (and before or after app.css).
 * It re-skins every Acorn colour scheme: all "light-*" schemes get the
 * Centrixa light palette and all "dark-*" schemes the dark palette,
 * so whatever data-color the layout or the theme settings pick, the
 * app stays on-brand. Theme files remain untouched.
 */

/* Brand tokens (use these in your own CSS/Blade) */
:root {
  --cx-teal: #0B6E6B;         /* Ocean Teal   - primary actions, brand, the logo ring */
  --cx-teal-700: #095956;     /* pressed / hover teal */
  --cx-teal-300: #4CC7BE;     /* teal for text/links on dark surfaces */
  --cx-teal-50: #E3F2F1;      /* tinted backgrounds, selected rows */
  --cx-gold: #F2AE3A;         /* Core Gold    - the logo core, highlights, premium badges; never white text on it */
  --cx-gold-700: #A86411;     /* gold for text and buttons (AA with white) */
  --cx-gold-50: #FEF5E6;
  --cx-blue: #2F6FE0;         /* Ocean Blue   - secondary actions, links in charts */
  --cx-ink: #0E1F24;          /* Deep Ink     - wordmark, headings, dark UI */
  --cx-slate: #33434A;

  --font: "Nunito Sans", sans-serif;
  --font-heading: "Manrope", "Montserrat", sans-serif;
}

/* ---------- Light schemes ---------- */
html[data-color^="light-"] {
  --primary: #0B6E6B;
  --primary-rgb: 11, 110, 107;
  --primary-darker: #096360;
  --secondary: #2F6FE0;
  --secondary-rgb: 47, 111, 224;
  --secondary-darker: #2a63c9;
  --tertiary: #A86411;
  --tertiary-rgb: 168, 100, 17;
  --tertiary-darker: #975a0f;
  --quaternary: #5B6B8C;
  --quaternary-rgb: 91, 107, 140;
  --quaternary-darker: #51607e;
  --body: #33434A;
  --body-rgb: 51, 67, 74;
  --alternate: #62737A;
  --alternate-rgb: 98, 115, 122;
  --muted: #9FACB1;
  --muted-rgb: 159, 172, 177;
  --separator: #DFE6E8;
  --separator-rgb: 223, 230, 232;
  --separator-light: #EEF3F4;
  --separator-light-rgb: 238, 243, 244;
  --body-darker: #29363c;
  --alternate-darker: #505e64;
  --muted-darker: #828d91;
  --separator-darker: #b6bcbe;
  --background: #F5F8F8;
  --foreground: #FFFFFF;
  --background-rgb: 245, 248, 248;
  --foreground-rgb: 255, 255, 255;
  --background-theme: #E8F1F1;
  --background-light: #F7FAFA;
  --gradient-1: #0B6E6B;
  --gradient-2: #0C7672;
  --gradient-3: #0E7E79;
  --gradient-1-lighter: #0E7E79;
  --gradient-1-darker: #0a6663;
  --light-text: #FFFFFF;
  --dark-text: #0E1F24;
  --light-text-darker: #ededed;
  --dark-text-darker: #091519;
  --light-text-rgb: 255, 255, 255;
  --dark-text-rgb: 14, 31, 36;
  --danger: #C7303F;
  --danger-rgb: 199, 48, 63;
  --danger-darker: #8b212c;
  --info: #1B78BA;
  --info-rgb: 27, 120, 186;
  --info-darker: #125482;
  --warning: #E07B1A;
  --warning-rgb: 224, 123, 26;
  --warning-darker: #9c5612;
  --success: #157F4F;
  --success-rgb: 21, 127, 79;
  --success-darker: #0e5837;
  --light: #DCE3E5;
  --light-rgb: 220, 227, 229;
  --light-darker: #c6ccce;
  --dark: #0E1F24;
  --dark-rgb: 14, 31, 36;
  --dark-darker: #091519;
  --menu-shadow: 0px 3px 10px rgba(14, 31, 36, 0.10);
  --menu-shadow-navcolor: 0px 2px 6px rgba(14, 31, 36, 0.06);
  --background-navcolor-light: #FFFFFF;
  --background-navcolor-dark: #141C1F;
  --theme-image-filter: hue-rotate(0deg);
}

/* ---------- Dark schemes ---------- */
html[data-color^="dark-"] {
  --primary: #0E7874;
  --primary-rgb: 14, 120, 116;
  --primary-darker: #0c6c68;
  --secondary: #2F68D0;
  --secondary-rgb: 47, 104, 208;
  --secondary-darker: #2a5dbb;
  --tertiary: #9A5C0F;
  --tertiary-rgb: 154, 92, 15;
  --tertiary-darker: #8a520d;
  --quaternary: #56668A;
  --quaternary-rgb: 86, 102, 138;
  --quaternary-darker: #4d5b7c;
  --body: #C5D0D3;
  --body-rgb: 197, 208, 211;
  --alternate: #97A5AA;
  --alternate-rgb: 151, 165, 170;
  --muted: #7A888D;
  --muted-rgb: 122, 136, 141;
  --separator: #324246;
  --separator-rgb: 50, 66, 70;
  --separator-light: #202B2E;
  --separator-light-rgb: 32, 43, 46;
  --body-darker: #a1aaad;
  --alternate-darker: #7b878b;
  --muted-darker: #646f73;
  --separator-darker: #293639;
  --background: #0C1214;
  --foreground: #141C1F;
  --background-rgb: 12, 18, 20;
  --foreground-rgb: 20, 28, 31;
  --background-theme: #1A2528;
  --background-light: #1E2A2D;
  --gradient-1: #0A5F5C;
  --gradient-2: #0B6763;
  --gradient-3: #0C6F6B;
  --gradient-1-lighter: #0C6F6B;
  --gradient-1-darker: #095855;
  --light-text: #F2F3F4;
  --dark-text: #0E1F24;
  --light-text-darker: #e1e1e2;
  --dark-text-darker: #091519;
  --light-text-rgb: 242, 243, 244;
  --dark-text-rgb: 14, 31, 36;
  --danger: #C4384A;
  --danger-rgb: 196, 56, 74;
  --danger-darker: #892733;
  --info: #2677B5;
  --info-rgb: 38, 119, 181;
  --info-darker: #1a537e;
  --warning: #E8893A;
  --warning-rgb: 232, 137, 58;
  --warning-darker: #a25f28;
  --success: #1C8253;
  --success-rgb: 28, 130, 83;
  --success-darker: #135b3a;
  --light: #DCE3E5;
  --light-rgb: 220, 227, 229;
  --light-darker: #c6ccce;
  --dark: #0E1F24;
  --dark-rgb: 14, 31, 36;
  --dark-darker: #091519;
  --menu-shadow: 0px 3px 10px rgba(0, 0, 0, 0.25);
  --menu-shadow-navcolor: 0px 3px 10px rgba(0, 0, 0, 0.45);
  --background-navcolor-light: #FFFFFF;
  --background-navcolor-dark: #141C1F;
  --theme-image-filter: hue-rotate(0deg) brightness(0.9);
}

/* ---------- Logo ---------- */
/* Wordmark lockup is 118 x 35 (Acorn's slot is 100 x 35). The collapsed
   menu still shows only the first 30px, which is exactly the mark. */
html[data-placement=horizontal] .nav-container .logo img,
html[data-placement=horizontal] .nav-container .logo .img,
html[data-placement=vertical] .nav-container .logo img,
html[data-placement=vertical] .nav-container .logo .img,
.logo-default {
  width: 118px;
  background-size: 118px 35px;
  background-position: left center;
}

/* Acorn fixes the logo link at 100px; widen it for the 118px lockup.
   (The collapsed-menu rule that narrows it to 30px is more specific and still wins.) */
html[data-placement=vertical] .nav-container .nav-content .logo a,
html[data-placement=horizontal] .nav-container.mobile-side-ready .nav-content .logo a,
html[data-placement=vertical] .nav-container.mobile-side-ready .nav-content .logo a {
  width: 118px;
}

/* Coloured (gradient) menu: white logo */
html[data-color] .logo .img {
  background-image: url(../img/logo/centrixa-logo-white.svg);
}
/* Light menu */
html[data-color][data-navcolor=light] .logo .img {
  background-image: url(../img/logo/centrixa-logo.svg);
}
/* Dark menu */
html[data-color][data-navcolor=dark] .logo .img {
  background-image: url(../img/logo/centrixa-logo-dark.svg);
}
/* Login / guest pages */
html[data-color^="light-"] .logo-default {
  background-image: url(../img/logo/centrixa-logo.svg);
}
html[data-color^="dark-"] .logo-default {
  background-image: url(../img/logo/centrixa-logo-dark.svg);
}

/* ---------- Dark mode: readable teal for text ----------
   Buttons keep --primary (#0E7874, 4.8:1 with light text); links and
   primary-coloured text use the lighter teal (8.4:1 on dark cards). */
html[data-color^="dark-"] main a:not(.btn):not(.dropdown-item):not(.nav-link),
html[data-color^="dark-"] .text-primary,
html[data-color^="dark-"] .btn-outline-primary:not(:hover) {
  color: var(--cx-teal-300) !important;
}

/* ---------- Small brand touches ---------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { letter-spacing: -0.01em; }
.badge.bg-gold, .bg-gold { background-color: var(--cx-gold) !important; color: var(--cx-ink) !important; }
.text-gold { color: var(--cx-gold-700) !important; }
.bg-gold-soft { background-color: var(--cx-gold-50) !important; }
.bg-teal-soft { background-color: var(--cx-teal-50) !important; }
