/* Application styles, loaded after Vuexy's core.css. Page-specific styles go into css/pages/<area>.css. */

/* Buzzhref brand (the buzzhref.io palette, buzzhref-bootstrap.css) on top of Vuexy
******************************************************************************/

:root,
[data-bs-theme=light],
[data-bs-theme=dark] {
  /* Nunito Sans, self-hosted (vendor/libs/nunito-sans) - replaces Vuexy's default Public Sans */
  --bs-font-sans-serif: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --bz-teal: #00dac5;
  --bz-navy: #073b57;
  --bz-ink: #04283b;

  /* primary: brand teal with dark navy text on it (as the buzzhref.io buttons) - white on teal is unreadable */
  --bs-primary: #00dac5;
  --bs-primary-rgb: 0, 218, 197;
  --bs-primary-contrast: #04283b;
  --bs-primary-bg-subtle: color-mix(in sRGB, var(--bs-paper-bg) 84%, var(--bs-primary));
  --bs-primary-border-subtle: color-mix(in sRGB, var(--bs-paper-bg) 62%, var(--bs-primary));
  --bs-primary-text-emphasis: color-mix(in sRGB, #000 50%, var(--bs-primary));

  --bs-secondary: #9984d4;
  --bs-secondary-rgb: 153, 132, 212;
  --bs-secondary-contrast: #fff;
  --bs-success: #39d6b4;
  --bs-success-rgb: 57, 214, 180;
  --bs-success-contrast: #04283b;
  --bs-info: #71b7cd;
  --bs-info-rgb: 113, 183, 205;
  --bs-info-contrast: #04283b;
  --bs-warning: #ffd868;
  --bs-warning-rgb: 255, 216, 104;
  --bs-warning-contrast: #04283b;
  --bs-danger: #eb5a82;
  --bs-danger-rgb: 235, 90, 130;
  --bs-danger-contrast: #fff;
  --bs-dark: #073b57;
  --bs-dark-rgb: 7, 59, 87;

  /* corners: the brand's small radius */
  --bs-border-radius-sm: 0.125rem;
  --bs-border-radius: 0.1875rem;
  --bs-border-radius-lg: 0.375rem;
  --bs-border-radius-xl: 0.5rem;
}

/* buttons and form fields: Vuexy's default (rounder) corners, as in Pricer - cards and menus keep the brand's above.
   Set on the elements themselves, so Vuexy's own rules (--bs-btn-border-radius, input-group joins) still apply. */
.btn, .form-control, .form-select, .input-group, .input-group-text, .select2-container {
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 0.625rem;
}

/* light theme: brand navy headings, slate body text, teal links (as buzzhref.io) */
:root,
[data-bs-theme=light] {
  --bs-heading-color: #073b57;
  --bs-body-color: #4d6878;
  --bs-body-color-rgb: 77, 104, 120;
  --bs-link-color: #00b8b7;
  --bs-link-color-rgb: 0, 184, 183;
  --bs-link-hover-color: #008f8e;
  --bs-link-hover-color-rgb: 0, 143, 142;
  --bs-custom-link-color: #00b8b7;
}

/* dark theme: Vuexy's dark surfaces and text, brand teal accents */
[data-bs-theme=dark] {
  --bs-link-color: #66e9dc;
  --bs-link-color-rgb: 102, 233, 220;
  --bs-link-hover-color: #85ede3;
  --bs-link-hover-color-rgb: 133, 237, 227;
  --bs-custom-link-color: #66e9dc;
}

/* primary buttons: white text on the brand teal (chosen over the dark ink - icons follow the text colour) */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: #fff;
}

/* buttons and badges on the other light brand colours get dark text (Vuexy writes white on every solid colour) */
.btn-success, .btn-info, .btn-warning {
  --bs-btn-color: #04283b;
  --bs-btn-hover-color: #04283b;
  --bs-btn-active-color: #04283b;
  --bs-btn-disabled-color: #04283b;
}

/* an icon next to a button's text sits ~1px low with Nunito Sans (measured) - lift it to the text's middle */
.btn:not(.btn-icon) > .icon-base {
  position: relative;
  top: -1px;
}

.badge.bg-primary, .badge.bg-success, .badge.bg-info, .badge.bg-warning,
.text-bg-primary, .text-bg-success, .text-bg-info, .text-bg-warning {
  color: #04283b !important;
}

.progress {
  --bs-progress-bar-bg: var(--bs-primary);
}

/* Alerts: darker text on the light tint for contrast (as Fitness.Web.Admin) */
.alert-primary, .alert-secondary, .alert-success, .alert-info, .alert-warning, .alert-danger, .alert-dark {
  --alert-text-mix: #000;
  --alert-text-amount: 55%;
  --bs-alert-color: color-mix(in sRGB, var(--alert-base) var(--alert-text-amount), var(--alert-text-mix));
  --bs-alert-link-color: var(--bs-alert-color);
  --bs-alert-link-hover-color: var(--bs-alert-color);
}
[data-bs-theme=dark] :is(.alert-primary, .alert-secondary, .alert-success, .alert-info, .alert-warning, .alert-danger, .alert-dark) {
  --alert-text-mix: #fff;
  --alert-text-amount: 65%;
}
.alert-primary { --alert-base: var(--bs-primary); }
.alert-secondary { --alert-base: var(--bs-secondary); }
.alert-success { --alert-base: var(--bs-success); }
.alert-info { --alert-base: var(--bs-info); }
.alert-warning { --alert-base: var(--bs-warning); }
.alert-danger { --alert-base: var(--bs-danger); }
.alert-dark { --alert-base: var(--bs-dark); }

/* Layout (from the template's demo.css)
******************************************************************************/

.menu .app-brand {
  height: 72px;
}

/* the info icon next to the navbar title - the page description as a tooltip */
.page-info {
  display: inline-flex;
  color: var(--bs-secondary-color);
  cursor: help;
}
.page-info:hover,
.page-info:focus-visible {
  color: var(--bs-heading-color);
}

/* active menu item: light tint of the brand green (--bs-success) with heading-colour text, no glow
   (Vuexy draws a solid primary-teal gradient) */
.layout-menu .menu-item.active > .menu-link:not(.menu-toggle) {
  background: color-mix(in sRGB, var(--bs-paper-bg) 78%, var(--bs-success));
  box-shadow: none;
  color: var(--bs-heading-color);
  font-weight: 600;
}
.layout-menu .menu-item.active > .menu-link:not(.menu-toggle) .menu-icon {
  color: #22b394; /* the brand green, darkened for contrast on its own tint */
}
/* dark: the brand green for text and icon (--bs-heading-color is the light theme's navy here, see :root above) */
[data-bs-theme=dark] .layout-menu .menu-item.active > .menu-link:not(.menu-toggle),

@media (min-width: 1200px) {
  .layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .app-brand .layout-menu-toggle {
    display: none;
  }
  .layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .plan-usage {
    display: none;
  }
}

.app-brand-logo .app-brand-img {
  width: auto;
  height: 24px;
  max-width: 170px;
}

[data-bs-theme=dark] .app-brand-logo .app-brand-img {
  filter: brightness(0) invert(1);
}

.app-brand-logo .app-brand-img-collapsed {
  width: 32px;
  height: 32px;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 72px !important;
}

.content-wrapper .navbar {
  z-index: auto;
}

/* Vue
******************************************************************************/

[v-cloak] {
  display: none !important;
}

/* Loader (src/js/app.ts) */
.app-loader {
  position: absolute;
  inset: 0;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background-color: rgba(var(--bs-body-bg-rgb), .65);
}

.app-loader.is-fixed {
  position: fixed;
}

/* Shared components (src/js/components)
******************************************************************************/

/* <email-frame>: sandboxed iframe with an email body */
.email-frame {
  width: 100%;
  border: 0;
  min-height: 120px;
  background: #fff;
  border-radius: var(--bs-border-radius);
}

/* <lead-avatar> */
.lead-avatar img {
  object-fit: cover;
}

/* tables with a sticky header inside a scrolling card */
.table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bs-paper-bg);
}

.cursor-pointer {
  cursor: pointer;
}

.text-pre-line {
  white-space: pre-line;
}

/* Empty states */
.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--bs-secondary-color);
}

.empty-state .ti {
  font-size: 3rem;
  opacity: .5;
}

/* Spremi / Odustani bar */
.save-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
}

/* Sign-in / sign-up: the buzzhref photos on the right half (Views/Account/Login, Register) */
.auth-photo {
  min-height: 100vh;
  background-color: #04283b;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  align-items: flex-end;
  justify-content: center;
}
.auth-photo-login { background-image: url("../img/auth/login-bg.jpg"); }
.auth-photo-register { background-image: url("../img/auth/register-bg.jpg"); }
.auth-photo-copy {
  color: #fff;
  font-weight: 500;
  margin: 0 0 2rem;
  opacity: .85;
}
