/*
 * UniCRM: culorile din CRM (panoul fiecărei firme și panoul general), în stilul rostech.digital:
 * negru #15181e cu nuanță galbenă, accent galben #ffcc00, gri calde.
 * Se schimbă DOAR culorile; elementele lui Concord rămân la fel.
 * Inclus din resources/views/custom/includes/head.blade.php (punctul de personalizare Concord).
 */

:root {
  /* Accent: galbenul rostech. Nuanțele închise (600–900) sunt pentru text și linkuri pe alb. */
  --color-primary-50: 255, 251, 234;
  --color-primary-100: 255, 243, 196;
  --color-primary-200: 255, 229, 138;
  --color-primary-300: 255, 216, 77;
  --color-primary-400: 255, 204, 0;
  --color-primary-500: 242, 194, 0;
  --color-primary-600: 201, 154, 0;
  --color-primary-700: 163, 124, 0;
  --color-primary-800: 122, 92, 0;
  --color-primary-900: 77, 58, 0;

  /* Gri calde, ca pe site (#f4f4f1, #e6e6e1, #5b616b, #15181e) */
  --color-neutral-50: 250, 250, 248;
  --color-neutral-100: 244, 244, 241;
  --color-neutral-200: 230, 230, 225;
  --color-neutral-300: 207, 207, 200;
  --color-neutral-400: 155, 159, 166;
  --color-neutral-500: 107, 112, 121;
  --color-neutral-600: 91, 97, 107;
  --color-neutral-700: 43, 48, 58;
  --color-neutral-800: 34, 38, 46;
  --color-neutral-900: 21, 24, 30;

  --sidebar-bg-color: 21, 24, 30;
  --sidebar-dark-bg-color: 21, 24, 30;
}

/* ---------- Bara laterală: negru cu nuanța galbenă din hero ---------- */
[class*='sidebar-bg-color'] {
  background-image:
    radial-gradient(28rem 22rem at 0% 0%, rgb(255 204 0 / 0.13), transparent 70%),
    radial-gradient(20rem 18rem at 100% 100%, rgb(255 204 0 / 0.06), transparent 70%);
}
/* Meniul activ: Concord pune „bg-white/10 text-white” doar la potrivire exactă; scriptul unicrm-crm.js
   pune „uni-active” pe linkul potrivit și pentru subpagini. Stilăm doar „uni-active”, ca să fie unul singur. */
[class*='sidebar-bg-color'] a[class*='bg-white/10'].text-white:not(.uni-active) { background-color: transparent !important; }
[class*='sidebar-bg-color'] a.uni-active {
  background-color: rgb(255 204 0 / 0.14) !important;
  color: #ffcc00 !important;
  box-shadow: inset 3px 0 0 #ffcc00;
}
[class*='sidebar-bg-color'] a.uni-active svg { color: #ffcc00 !important; }
[class*='sidebar-bg-color'] a[class*='hover:bg-white/10']:hover { background-color: rgb(255 255 255 / 0.06) !important; }

/* ---------- Butoane de acțiune: galben cu text negru, ca „Încearcă gratuit” ---------- */
.btn-primary:not(.btn-soft):not(.btn-ghost) {
  --btn-color: #15181e;
  --btn-bg: #ffcc00;
  --btn-border: #ffcc00;
  font-weight: 700;
}
.btn-primary:not(.btn-soft):not(.btn-ghost):hover,
.btn-primary:not(.btn-soft):not(.btn-ghost)[data-active],
.btn-primary:not(.btn-soft):not(.btn-ghost):active {
  --btn-bg: #f2c200;
  --btn-border: #f2c200;
}
.btn-primary:not(.btn-soft):not(.btn-ghost) svg { color: #15181e; }
.dark .btn-primary:not(.btn-soft):not(.btn-ghost) { --btn-color: #15181e; --btn-bg: #ffcc00; --btn-border: #ffcc00; }

/* Butoanele „soft” și „ghost” rămân pe galben deschis, cu text închis */
.btn-primary.btn-soft { --btn-color: #15181e; --btn-bg: rgb(255 204 0 / 0.18); --btn-border: transparent; }
.btn-primary.btn-soft:hover { --btn-color: #15181e; --btn-bg: rgb(255 204 0 / 0.3); }
.btn-primary.btn-ghost { --btn-color: #7a5c00; }

/* Focus: inelul galben de pe site */
:focus-visible { outline-color: #ffcc00 !important; }
input:focus, select:focus, textarea:focus { --tw-ring-color: rgb(255 204 0 / 0.5) !important; border-color: #c99a00 !important; }

/* ---------- Fundalul paginilor: griul cald de pe site, cu o urmă de galben sus ---------- */
html:not(.dark) #app.bg-neutral-100 {
  background-color: #f4f4f1;
  background-image: radial-gradient(60rem 18rem at 70% -6rem, rgb(255 204 0 / 0.07), transparent 70%);
}

/* ---------- Login, „am uitat parola”, resetare: negru cu nuanța galbenă din hero, pe tot ecranul ---------- */
#app > div.min-h-screen.bg-neutral-50 {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background-color: #15181e;
  background-image:
    radial-gradient(48rem 36rem at 100% 0%, rgb(255 204 0 / 0.20), transparent 65%),
    radial-gradient(36rem 30rem at 0% 100%, rgb(255 204 0 / 0.08), transparent 70%);
}
#app > div.min-h-screen.bg-neutral-50 > div:first-child h2 { color: #fff; letter-spacing: -0.02em; }
#app > div.min-h-screen.bg-neutral-50 > div:first-child p { color: rgb(255 255 255 / 0.65); }
#app > div.min-h-screen.bg-neutral-50 .rounded-lg.bg-white {
  border-radius: 1.5rem;
  box-shadow: 0 2rem 4rem -1rem rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.06);
}
/* Logo-ul implicit închis → varianta deschisă, potrivită pe negru (logo-ul propriu al firmei rămâne neatins) */
#app > div.min-h-screen.bg-neutral-50 img[src*='/logos/unicrm-dark.png'] { content: url('/logos/unicrm-light.png'); }
/* Linkurile de sub card („Înapoi la autentificare” etc.) */
#app > div.min-h-screen.bg-neutral-50 > div:last-child > a,
#app > div.min-h-screen.bg-neutral-50 > p a { color: #ffcc00; }

/* ---------- Tema întunecată: negrul rostech cu nuanță galbenă ---------- */
.dark #app.bg-neutral-100 {
  background-color: #1b1e25;
  background-image:
    radial-gradient(60rem 22rem at 75% -8rem, rgb(255 204 0 / 0.08), transparent 70%),
    radial-gradient(40rem 30rem at 100% 100%, rgb(255 204 0 / 0.04), transparent 70%);
}
/* Bara laterală în tema întunecată: un ton mai închis decât pagina, cu aceeași lumină galbenă */
.dark [class*='sidebar-bg-color'] { box-shadow: inset -1px 0 0 rgb(255 255 255 / 0.05); }
/* Linkuri și accente pe fundal închis: galbenul deschis, nu cel închis (care e pentru fundal alb) */
.dark .text-primary-600, .dark .text-primary-700, .dark .text-primary-800 { color: #ffcc00 !important; }
.dark .btn-primary.btn-soft { --btn-color: #ffcc00; --btn-bg: rgb(255 204 0 / 0.12); }
.dark .btn-primary.btn-soft:hover { --btn-color: #ffd84d; --btn-bg: rgb(255 204 0 / 0.2); }
.dark .btn-primary.btn-ghost { --btn-color: #ffcc00; }

/* ---------- Linkuri și text în galben pe fundal alb: un auriu mai închis, ca să se citească bine ---------- */
html:not(.dark) .text-primary-600 { color: rgb(150 112 0); }
html:not(.dark) .text-primary-700, html:not(.dark) .hover\:text-primary-700:hover,
html:not(.dark) .hover\:text-primary-900:hover { color: rgb(120 90 0); }

/* ---------- Starea goală („Nu ai creat încă…”): butoanele se așază frumos și pe telefon, cu spațiu între ele ---------- */
.text-center > svg.size-12 ~ div.mt-6 { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.text-center > svg.size-12 ~ div.mt-6 > .ml-4 { margin-left: 0; }
