/* ==========================================================================
   RISE theme layer for NEST (Super Admin, Admin, Assessor, Agencies)
   Source: RISE brand colour sheet (Risen IT Services Ecosystem)
   LOAD THIS LAST in <head> of each base template. Colours only: no layout,
   no behaviour. Per-template hard-coded colours must ALSO be swapped in their
   own <style> blocks (this file is the safety net + shared token source).
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Orbitron:wght@900&display=swap');

:root{
  /* brand */
  --rise-navy:#10182B; --rise-blue:#2B7BFF; --rise-cyan:#22D3EE;
  --rise-orange:#FF9A3C; --rise-sky:#7FB4FF; --rise-soft:#DBE8FF;
  /* navy (sidebar / login panel) */
  --navy-950:#0B1427; --navy-900:#0F1B33; --navy-800:#16264A;
  --navy-700:#1F3361; --navy-300:#9FB0CF; --navy-100:#DBE4F5;
  /* primary blue (buttons / links) */
  --blue-800:#173A8A; --blue-700:#1E40AF; --primary-600:#1D4ED8;
  --blue-300:#93B0F0; --blue-200:#C7DAFC; --blue-100:#E8EFFF;
  /* greys */
  --text:#1A2233; --muted:#5D6A7E; --border:#C8D1DE; --line:#E2E7EF;
  --page:#F4F6FA; --card:#FFFFFF;
  /* semantic */
  --success:#067647; --success-soft:#E7F6EE;
  --warning:#9A5B00; --warning-soft:#FFF4E0;
  --danger:#B42318;  --danger-soft:#FDECEA;

  /* map the old per-page tokens onto the brand (old orange primary -> blue) */
  --crm-primary:var(--primary-600);
  --crm-primary-dark:var(--blue-700);
  --crm-primary-light:var(--blue-100);
  --bs-primary:var(--primary-600);
  --bs-link-color:var(--primary-600);
  --bs-link-color-rgb:29,78,216;
  --bs-link-hover-color-rgb:30,64,175;
  --bs-body-font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}

/* Font only. Body text/background colours are NOT forced here: every page sets
   its own (already remapped to RISE neutrals), and the dark login pages rely on
   light body text, which a high-specificity rule here would break. */
html body{
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}

/* ---- sidebar (real markup: nav.sidebar#sidebar > .nav-link / .submenu-box) */
html body #sidebar.sidebar{
  background:linear-gradient(180deg,var(--navy-950),var(--navy-900)) !important;
}
html body #sidebar .nav-link{color:var(--navy-300) !important}
html body #sidebar .nav-link:hover,
html body #sidebar .nav-link.active-parent,
html body #sidebar .submenu-box .nav-link.active{
  background:var(--navy-700) !important; color:#fff !important;
  box-shadow:inset 3px 0 0 var(--rise-orange) !important;
}
html body #sidebar .nav-link:hover .menu-icon,
html body #sidebar .nav-link.active-parent .menu-icon,
html body #sidebar .nav-link.active-parent .menu-arrow{color:#fff !important}
html body #sidebar .btn-change-client{color:#fff !important}
html body #sidebar .profile-header .rise-wordmark{font-size:20px}
html body.sidebar-icon-only #sidebar .rise-wordmark{display:none}

/* ---- buttons ----------------------------------------------------------- */
html body .btn-primary, html body .btn-submit{
  background:var(--primary-600) !important; border-color:var(--primary-600) !important; color:#fff !important;
}
html body .btn-primary:hover, html body .btn-submit:hover{
  background:var(--blue-700) !important; border-color:var(--blue-700) !important;
}
html body .btn-outline-primary{color:var(--primary-600) !important;border-color:var(--primary-600) !important}
html body .btn-outline-primary:hover{background:var(--primary-600) !important;color:#fff !important}
html body .btn-success{background:var(--success) !important;border-color:var(--success) !important}
html body .btn-danger{background:var(--danger) !important;border-color:var(--danger) !important}
html body .btn-warning{background:var(--rise-orange) !important;border-color:var(--rise-orange) !important;color:var(--navy-950) !important}

/* ---- forms / focus ----------------------------------------------------- */
html body .form-control:focus, html body .form-select:focus{
  border-color:var(--primary-600) !important;
  box-shadow:0 0 0 3px var(--blue-200) !important;
}
html body .select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--primary-600)}
html body .select2-container--default.select2-container--focus .select2-selection--multiple,
html body .select2-container--default.select2-container--open .select2-selection--single{border-color:var(--primary-600)}

/* ---- tabs / pagination ------------------------------------------------- */
html body .page-item.active .page-link{background:var(--primary-600);border-color:var(--primary-600)}
html body .dataTables_wrapper .dataTables_paginate .paginate_button.current{color:var(--primary-600) !important}

/* ---- status badges (from the sheet; reuse for application statuses) ---- */
.st-open{color:#1E40AF;background:#E8EFFF}
.st-progress{color:#5B21B6;background:#F0E9FF}
.st-uat{color:#0E6B6B;background:#E0F5F5}
.st-awaiting{color:#7A4D00;background:#FFF4E0}
.st-deploy{color:#B54708;background:#FFF1E6}
.st-resolved{color:#067647;background:#E7F6EE}
.st-closed{color:#4B5563;background:#EEF0F3}
.st-correction{color:#9D174D;background:#FDE8F1}
html body .alert-success{background:var(--success-soft);color:var(--success);border-color:var(--success-soft)}
html body .alert-warning{background:var(--warning-soft);color:var(--warning);border-color:var(--warning-soft)}
html body .alert-danger{background:var(--danger-soft);color:var(--danger);border-color:var(--danger-soft)}

/* ---- colours set from JS (SweetAlert2 confirmButtonColor/iconColor, inline
   .style.* = '#ea580c' / '#fff7ed'). Scripts are untouched; these attribute
   selectors re-tint the resulting inline style. ------------------------ */
html body .swal2-confirm[style*="rgb(234, 88, 12)"]{background-color:var(--primary-600) !important}
html body .swal2-confirm[style*="rgb(234, 88, 12)"]:focus{box-shadow:0 0 0 3px var(--blue-200) !important}
html body .swal2-icon[style*="rgb(234, 88, 12)"]{color:var(--primary-600) !important;border-color:var(--primary-600) !important}
html body .swal2-icon[style*="rgb(234, 88, 12)"] [class^="swal2-"]{border-color:var(--primary-600) !important}
html body [style^="color: rgb(234, 88, 12)"], html body [style*="; color: rgb(234, 88, 12)"]{color:var(--primary-600) !important}
html body [style*="background: rgb(234, 88, 12)"], html body [style*="background-color: rgb(234, 88, 12)"]{background-color:var(--primary-600) !important}
html body [style*="border-color: rgb(234, 88, 12)"]{border-color:var(--primary-600) !important}
html body [style*="background: rgb(255, 247, 237)"], html body [style*="background-color: rgb(255, 247, 237)"]{background-color:var(--blue-100) !important}

/* ---- Tailwind (CDN) colour utilities on the login pages. Classes are left
   in the markup untouched; only their colour output is re-mapped. ------- */
html body .text-\[\#ea580c\], html body .hover\:text-\[\#ea580c\]:hover,
html body .text-orange-400, html body .text-orange-500,
html body .hover\:text-orange-400:hover, html body .group:hover .group-hover\:text-orange-400{color:var(--rise-sky) !important}
html body .hover\:text-orange-300:hover, html body .text-orange-200{color:var(--rise-soft) !important}
html body .text-orange-200\/60{color:rgba(219,232,255,.6) !important}
html body .text-orange-200\/50{color:rgba(219,232,255,.5) !important}
html body .text-orange-200\/40{color:rgba(219,232,255,.4) !important}
html body .text-orange-100\/70{color:rgba(232,239,255,.7) !important}
html body .text-orange-500\/50{color:rgba(127,180,255,.5) !important}
html body .bg-\[\#ea580c\], html body .hover\:bg-\[\#ea580c\]:hover{background-color:var(--primary-600) !important}
html body .bg-\[\#ea580c\]\/10, html body .bg-orange-500\/10{background-color:rgba(43,123,255,.1) !important}
html body .bg-orange-500\/50{background-color:rgba(43,123,255,.5) !important}
html body .border-\[\#ea580c\]{border-color:var(--rise-blue) !important}
html body .border-\[\#ea580c\]\/30, html body .border-orange-500\/30{border-color:rgba(43,123,255,.3) !important}
html body .border-\[\#ea580c\]\/20, html body .border-orange-500\/20{border-color:rgba(43,123,255,.2) !important}
html body .bg-\[\#431407\]{background-color:var(--blue-800) !important}
html body .border-\[\#7c2d12\]{border-color:var(--rise-blue) !important}
html body .bg-\[\#0a0200\]{background-color:var(--navy-950) !important}
html body .bg-\[\#fef2f2\]{background-color:var(--danger-soft) !important}
html body .text-\[\#b91c1c\]{color:var(--danger) !important}
html body .bg-\[\#f0fdf4\]{background-color:var(--success-soft) !important}
html body .text-\[\#15803d\]{color:var(--success) !important}
html body .text-\[\#0f172a\]{color:var(--text) !important}
/* gradient text ("Minds" / "Potential") -> wordmark gradient family */
html body .from-orange-400{--tw-gradient-from:#B7D4FF !important}
html body .to-orange-600{--tw-gradient-to:#6FB0FF !important}
html body .from-amber-400{--tw-gradient-from:#FFFFFF !important}
html body .to-orange-500{--tw-gradient-to:#7FB4FF !important}

/* ---- brand wordmark (R I S E in Orbitron Black) ------------------------ */
.rise-wordmark{font-family:'Orbitron','Inter',sans-serif;font-weight:900;letter-spacing:.12em;
  background:linear-gradient(90deg,#FFFFFF,#B7D4FF,#6FB0FF);-webkit-background-clip:text;background-clip:text;color:transparent}
.rise-brand{display:flex;align-items:center;gap:10px}
.rise-brand img{height:34px;width:auto}
/* login / gateway brand panels: phoenix + large wordmark */
.rise-brand--login{justify-content:center}
html body .rise-brand--login img{height:88px !important;width:auto !important}
.rise-brand--login .rise-wordmark{font-size:2.75rem;line-height:1}
