/* ASTRO7 panel — GLASS skin (2026-12-04, owner's request). DESIGN ONLY: colours, blur, borders.
   Nothing here changes markup, scripts or behaviour. Loaded after astro7-theme.css.
   Day  (html[data-coreui-theme] not "dark"): white frosted sidebar, dark readable text.
   Night ([data-coreui-theme="dark"]): dark frosted sidebar, light text.
   To undo: remove the <link href="css/astro7-glass.css..."> line from the pages. */

/* ---------- page background (soft colour so the glass shows) ---------- */
html:not([data-coreui-theme="dark"]) body {
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(800px 600px at 100% 30%, rgba(192, 38, 211, .12), transparent 60%),
    radial-gradient(700px 500px at 30% 100%, rgba(56, 189, 248, .10), transparent 60%),
    #f4f2fb !important;
  background-attachment: fixed !important;
}
[data-coreui-theme="dark"] body {
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(124, 58, 237, .30), transparent 60%),
    radial-gradient(800px 600px at 100% 30%, rgba(192, 38, 211, .20), transparent 60%),
    radial-gradient(700px 500px at 30% 100%, rgba(56, 189, 248, .10), transparent 60%),
    #0b0616 !important;
  background-attachment: fixed !important;
}

/* ---------- ASTRO7 logo: glass version, one for day and one for night ("PANEL" turns white at night) ---------- */
/* The picture is the logo WITHOUT the globe; the globe is drawn by .sidebar-brand::before and turns in place,
   the glass shine (::after) stays still on top so the light does not turn with it.
   Numbers come from the 1680x401 logo: globe box left 129, top 37, size 313 (margin-top % = % of width). */
.sidebar .sidebar-brand { position: relative; }
.sidebar .sidebar-brand-full {
  content: url("../assets/brand/astro7-logo-body-day.png?v=1");
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  aspect-ratio: 1680 / 401;
}
[data-coreui-theme="dark"] .sidebar .sidebar-brand-full {
  content: url("../assets/brand/astro7-logo-body-night.png?v=1");
}
.sidebar:not(.sidebar-narrow) .sidebar-brand::before,
.sidebar:not(.sidebar-narrow) .sidebar-brand::after {
  content: "";
  position: absolute;
  left: 7.679%;
  top: 50%;
  margin-top: -9.732%;
  width: 18.631%;
  aspect-ratio: 1;
  background: center / 100% 100% no-repeat;
  pointer-events: none;
}
.sidebar:not(.sidebar-narrow) .sidebar-brand::before {
  background-image: url("../assets/brand/astro7-globe-day.png?v=1");
  animation: a7-globe-spin 14s linear infinite;
}
.sidebar:not(.sidebar-narrow) .sidebar-brand::after {
  background-image: url("../assets/brand/astro7-globe-shine-day.png?v=1");
}
[data-coreui-theme="dark"] .sidebar:not(.sidebar-narrow) .sidebar-brand::before {
  background-image: url("../assets/brand/astro7-globe-night.png?v=1");
}
[data-coreui-theme="dark"] .sidebar:not(.sidebar-narrow) .sidebar-brand::after {
  background-image: url("../assets/brand/astro7-globe-shine-night.png?v=1");
}
/* Small (narrow) sidebar: only the clean globe, turning, with the still shine on top */
.sidebar.sidebar-narrow .sidebar-brand-narrow {
  content: url("../assets/brand/astro7-globe-day.png?v=1");
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  object-fit: contain !important;
  border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(90, 30, 160, .30));
  animation: a7-globe-spin 14s linear infinite;
}
[data-coreui-theme="dark"] .sidebar.sidebar-narrow .sidebar-brand-narrow {
  content: url("../assets/brand/astro7-globe-night.png?v=1");
  filter: drop-shadow(0 0 10px rgba(192, 80, 255, .55));
}
.sidebar.sidebar-narrow .sidebar-brand::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  background: url("../assets/brand/astro7-globe-shine-day.png?v=1") center / 100% 100% no-repeat;
  pointer-events: none;
}
[data-coreui-theme="dark"] .sidebar.sidebar-narrow .sidebar-brand::after {
  background-image: url("../assets/brand/astro7-globe-shine-night.png?v=1");
}
@keyframes a7-globe-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .sidebar .sidebar-brand::before,
  .sidebar .sidebar-brand-narrow { animation: none; }
}

/* ---------- sidebar: DAY = white glass ---------- */
html:not([data-coreui-theme="dark"]) .sidebar.sidebar-dark {
  --cui-sidebar-bg: rgba(255, 255, 255, .72);
  --cui-sidebar-color: #1f1637;
  --cui-sidebar-nav-title-color: #8a7fa6;
  --cui-sidebar-nav-link-color: #2a2142;
  --cui-sidebar-nav-link-icon-color: #6d28d9;
  --cui-sidebar-nav-link-hover-color: #1f1637;
  --cui-sidebar-nav-link-hover-bg: rgba(124, 58, 237, .08);
  --cui-sidebar-nav-link-hover-icon-color: #6d28d9;
  --cui-sidebar-nav-link-active-color: #fff;
  --cui-sidebar-nav-link-active-icon-color: #fff;
  --cui-sidebar-nav-group-bg: transparent;
  --cui-sidebar-nav-group-items-bg: transparent;
  --cui-sidebar-brand-bg: transparent;
  --cui-sidebar-header-bg: transparent;
  --cui-sidebar-footer-bg: transparent;
  --cui-sidebar-toggler-bg: transparent;
  background: rgba(255, 255, 255, .72) !important;
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border-color: rgba(124, 58, 237, .12) !important;
  box-shadow: 8px 0 40px -20px rgba(76, 29, 149, .25);
  color: #1f1637;
}
html:not([data-coreui-theme="dark"]) .sidebar.sidebar-dark .nav-link { color: #2a2142; }
html:not([data-coreui-theme="dark"]) .sidebar.sidebar-dark .nav-title { color: #8a7fa6; }
html:not([data-coreui-theme="dark"]) .sidebar.sidebar-dark .nav-title::after { background: rgba(31, 22, 55, .12); }
/* group arrows (CoreUI draws them as a white SVG on the dark theme) */
html:not([data-coreui-theme="dark"]) .sidebar.sidebar-dark .nav-group-toggle::after { filter: invert(1) brightness(.35); }
/* small sub-menu bullets/icon boxes were white-on-dark */
html:not([data-coreui-theme="dark"]) .sidebar.sidebar-dark .nav-icon { background: rgba(124, 58, 237, .08); }
html:not([data-coreui-theme="dark"]) .sidebar.sidebar-dark .nav-icon-bullet { background: rgba(76, 29, 149, .45); }
/* the big gradient icon boxes of the main sections keep their white icon */
html:not([data-coreui-theme="dark"]) .sidebar-nav > .nav-group > .nav-link.nav-group-toggle .nav-icon,
html:not([data-coreui-theme="dark"]) .sidebar-nav > .nav-item > .nav-link > .nav-icon {
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  color: #fff;
}
/* open section: soft violet glass with dark text (was white text on dark) */
html:not([data-coreui-theme="dark"]) .sidebar-nav .nav-group.show > .nav-link.nav-group-toggle {
  background: linear-gradient(135deg, rgba(124, 58, 237, .14), rgba(192, 38, 211, .10)) !important;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, .14) inset;
  color: #3b1a78;
}
html:not([data-coreui-theme="dark"]) .sidebar-nav .nav-group-items .nav-link { color: #3a3152; }
html:not([data-coreui-theme="dark"]) .sidebar-nav .nav-group-items .nav-link:hover { color: #1f1637; }
/* active sub-item: violet glass, dark-violet text */
html:not([data-coreui-theme="dark"]) .sidebar-nav .nav-group-items .nav-link.active {
  background: rgba(124, 58, 237, .16) !important;
  color: #4c1d95;
}
html:not([data-coreui-theme="dark"]) .sidebar-nav .nav-group-items .nav-link.active .nav-icon-bullet { background: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .2); }
/* icons: violet on the white glass (they were white = invisible) */
html:not([data-coreui-theme="dark"]) .sidebar.sidebar-dark .nav-icon,
html:not([data-coreui-theme="dark"]) .sidebar.sidebar-dark .nav-icon svg { color: #6d28d9 !important; }
html:not([data-coreui-theme="dark"]) .sidebar.sidebar-dark .nav-link > .nav-icon { background: rgba(124, 58, 237, .10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); }
/* active item keeps the bright gradient pill with WHITE text + icon */
html:not([data-coreui-theme="dark"]) .sidebar-nav .nav-link.active:not(.nav-group-items .nav-link) { color: #fff !important; }
html:not([data-coreui-theme="dark"]) .sidebar-nav > .nav-item > .nav-link.active,
html:not([data-coreui-theme="dark"]) .sidebar-nav > li > .nav-link.active { color: #fff !important; }
html:not([data-coreui-theme="dark"]) .sidebar-nav > .nav-item > .nav-link.active .nav-icon,
html:not([data-coreui-theme="dark"]) .sidebar-nav > .nav-item > .nav-link.active .nav-icon svg { color: #fff !important; background: rgba(255, 255, 255, .22) !important; }
html:not([data-coreui-theme="dark"]) .sidebar-nav > .nav-item > .nav-link.active .nav-icon { background: rgba(255, 255, 255, .25); }
/* bottom profile card */
html:not([data-coreui-theme="dark"]) .a7-sidebar-profile {
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(124, 58, 237, .14);
  box-shadow: 0 8px 22px -14px rgba(76, 29, 149, .35);
}
html:not([data-coreui-theme="dark"]) .a7-sidebar-profile-name { color: #1f1637; }
html:not([data-coreui-theme="dark"]) .a7-sidebar-profile-role { color: #7a7193; }
html:not([data-coreui-theme="dark"]) .a7-sidebar-profile-icon { color: #4c1d95; background: rgba(124, 58, 237, .08); }
html:not([data-coreui-theme="dark"]) .a7-sidebar-profile-icon:hover { color: #fff; background: #7c3aed; }
/* scrollbar of the sidebar */
html:not([data-coreui-theme="dark"]) #sidebar .simplebar-track.simplebar-vertical { background: rgba(124, 58, 237, .06); }
html:not([data-coreui-theme="dark"]) #sidebar .simplebar-scrollbar:before { background: #b9a9df; }
html:not([data-coreui-theme="dark"]) #sidebar .simplebar-track.simplebar-vertical::before { border-bottom-color: rgba(76, 29, 149, .55); }
html:not([data-coreui-theme="dark"]) #sidebar .simplebar-track.simplebar-vertical::after { border-top-color: rgba(76, 29, 149, .55); }
html:not([data-coreui-theme="dark"]) .sidebar .sidebar-header,
html:not([data-coreui-theme="dark"]) .sidebar .sidebar-footer { border-color: rgba(124, 58, 237, .10) !important; }

/* ---------- sidebar: NIGHT = dark glass ---------- */
[data-coreui-theme="dark"] .sidebar.sidebar-dark {
  --cui-sidebar-bg: rgba(20, 10, 38, .62);
  background: linear-gradient(175deg, rgba(30, 14, 56, .70), rgba(14, 7, 28, .74)) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border-color: rgba(255, 255, 255, .08) !important;
  box-shadow: 8px 0 40px -20px rgba(0, 0, 0, .7);
}
[data-coreui-theme="dark"] .sidebar.sidebar-dark .nav-link { color: rgba(255, 255, 255, .86); }
[data-coreui-theme="dark"] .sidebar.sidebar-dark .nav-title { color: rgba(255, 255, 255, .55); }
[data-coreui-theme="dark"] .a7-sidebar-profile { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10); }

/* ---------- header pill: glass ---------- */
html:not([data-coreui-theme="dark"]) .header.header-sticky {
  background: rgba(255, 255, 255, .62) !important;
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 14px 34px -16px rgba(76, 29, 149, .30) !important;
  border: 1px solid rgba(255, 255, 255, .8) !important;
}
html:not([data-coreui-theme="dark"]) .header .search-button,
html:not([data-coreui-theme="dark"]) .header-nav > .nav-item > .nav-link,
html:not([data-coreui-theme="dark"]) .header-nav > .nav-item > a.nav-link { background: rgba(124, 58, 237, .07); }
[data-coreui-theme="dark"] .header.header-sticky {
  background: rgba(24, 12, 44, .55) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 34px -16px rgba(0, 0, 0, .7) !important;
}

/* ---------- cards & tiles: glass ---------- */
html:not([data-coreui-theme="dark"]) .card,
html:not([data-coreui-theme="dark"]) .a7-kpi-card,
html:not([data-coreui-theme="dark"]) .a7-stat-card,
html:not([data-coreui-theme="dark"]) .product-card {
  background: rgba(255, 255, 255, .66) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .85) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 16px 36px -22px rgba(76, 29, 149, .35) !important;
}
[data-coreui-theme="dark"] .card,
[data-coreui-theme="dark"] .a7-kpi-card,
[data-coreui-theme="dark"] .a7-stat-card,
[data-coreui-theme="dark"] .product-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)) !important;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 16px 36px -22px rgba(0, 0, 0, .8) !important;
}
/* ---------- LIQUID GLASS finish: light sheen + glass edges (Apple-style) ---------- */
html:not([data-coreui-theme="dark"]) .card,
html:not([data-coreui-theme="dark"]) .a7-kpi-card,
html:not([data-coreui-theme="dark"]) .a7-stat-card,
html:not([data-coreui-theme="dark"]) .product-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, .38) 42%, rgba(255, 255, 255, .55) 100%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  backdrop-filter: blur(24px) saturate(185%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    inset 1px 0 0 rgba(255, 255, 255, .5),
    0 1px 2px rgba(76, 29, 149, .06),
    0 22px 44px -24px rgba(76, 29, 149, .40) !important;
}
[data-coreui-theme="dark"] .card,
[data-coreui-theme="dark"] .a7-kpi-card,
[data-coreui-theme="dark"] .a7-stat-card,
[data-coreui-theme="dark"] .product-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .08) 100%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    inset 1px 0 0 rgba(255, 255, 255, .08),
    0 22px 44px -24px rgba(0, 0, 0, .85) !important;
}
/* the sidebar and header get the same glass edge */
html:not([data-coreui-theme="dark"]) .sidebar.sidebar-dark {
  background: linear-gradient(170deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .60) 55%, rgba(255, 255, 255, .72) 100%) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .9), 10px 0 44px -22px rgba(76, 29, 149, .30);
}
[data-coreui-theme="dark"] .sidebar.sidebar-dark {
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .08), 10px 0 44px -22px rgba(0, 0, 0, .8);
}
/* glossy pill on the active item */
.sidebar-nav .nav-link.active {
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -2px 6px rgba(76, 29, 149, .25), 0 10px 24px -6px rgba(192, 38, 211, .6) !important;
}
/* buttons with the violet gradient get a glass shine too */
.a7-header-create, .btn-primary {
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), 0 10px 24px -10px rgba(124, 58, 237, .7) !important;
}
/* soft glass inputs */
html:not([data-coreui-theme="dark"]) .form-control,
html:not([data-coreui-theme="dark"]) .form-select {
  background-color: rgba(255, 255, 255, .7);
  border-color: rgba(124, 58, 237, .16);
}
[data-coreui-theme="dark"] .form-control,
[data-coreui-theme="dark"] .form-select {
  background-color: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
}
/* table/card headers inside glass cards stay see-through */
.card > .card-header { background: transparent; }
/* dropdown menus stay solid (readable over anything) */
.dropdown-menu { -webkit-backdrop-filter: none; backdrop-filter: none; }
