/* Prismio app styles.
  Keep third-party theme rules in style.css and reserve this file for owned tokens,
  shared components, and shell-level overrides. */

:root {
  --pq-ink: #0f1c2d;
  --pq-muted: #5f7187;
  --pq-surface: #f4f8ff;
  --pq-card: #ffffff;
  --pq-brand: #0d67d9;
  --pq-brand-strong: #0a4ca0;
  --pq-border: rgba(18, 42, 68, 0.14);
  --pq-shadow: 0 24px 45px -28px rgba(18, 42, 68, 0.45);
}

body {
  color: var(--pq-ink);
  font-family: "Manrope", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn {
  font-family: "Space Grotesk", sans-serif;
}

/* Authenticated application shell */

.standard-shell {
  --pq-header-offset: 104px;
  background:
    radial-gradient(circle at 4% 4%, rgba(13, 103, 217, 0.08), transparent 30%),
    #f7fafe;
}

.standard-shell .app-logo-wrap {
  min-height: 130px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
}

.standard-shell .app-logo-wrap .logo-lg {
  width: 100%;
  height: auto;
  max-width: 180px;
  max-height: 72px;
  display: block;
}

.standard-shell .pc-sidebar {
  background:
    radial-gradient(circle at 15% 12%, rgba(86, 172, 255, 0.24), transparent 34%),
    linear-gradient(180deg, #0d2139 0%, #102947 58%, #143760 100%);
  color: #e7f2ff;
}

.standard-shell .pc-sidebar .navbar-wrapper {
  padding-bottom: 24px;
}

.standard-shell .pc-sidebar .navbar-content {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 14px 0;
}

.standard-shell .workspace-summary,
.standard-shell .workspace-sidebar-card {
  border: 1px solid rgba(231, 242, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 45px -36px rgba(4, 13, 25, 0.95);
  backdrop-filter: blur(10px);
}

.standard-shell .workspace-summary {
  margin: 0 6px 18px;
  padding: 18px;
}

.standard-shell .workspace-summary__eyebrow,
.standard-shell .workspace-sidebar-card__eyebrow,
.standard-shell .shell-dropdown__eyebrow,
.standard-shell .app-alert__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standard-shell .workspace-summary__eyebrow,
.standard-shell .workspace-sidebar-card__eyebrow,
.standard-shell .shell-dropdown__eyebrow {
  color: rgba(228, 241, 255, 0.72);
}

.standard-shell .workspace-summary__title {
  color: #fff;
  font-size: 1.1rem;
  margin: 0.45rem 0;
}

.standard-shell .workspace-summary__copy,
.standard-shell .workspace-sidebar-card__copy {
  color: rgba(228, 241, 255, 0.82);
  margin-bottom: 1rem;
}

.standard-shell .workspace-summary__cta,
.standard-shell .workspace-sidebar-card .btn-primary,
.standard-shell .account-menu__logout {
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, #1e86ff 0%, #0d67d9 100%);
  box-shadow: 0 18px 24px -20px rgba(13, 103, 217, 0.9);
}

.standard-shell .workspace-sidebar-card {
  margin: 18px 6px 0;
  padding: 18px;
}

.standard-shell .workspace-sidebar-card__actions {
  display: flex;
  gap: 10px;
}

.standard-shell .workspace-sidebar-card .btn-outline-light {
  border-radius: 999px;
  border-color: rgba(231, 242, 255, 0.3);
  color: #fff;
}

.standard-shell .pc-navbar {
  gap: 6px;
}

.standard-shell .pc-item.pc-caption {
  margin: 18px 6px 8px;
}

.standard-shell .pc-item.pc-caption label {
  color: rgba(228, 241, 255, 0.64);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.standard-shell .pc-navbar .pc-link {
  margin: 0 6px;
  border-radius: 14px;
  color: rgba(231, 242, 255, 0.84);
  padding: 12px 14px;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.standard-shell .pc-navbar .pc-link:hover,
.standard-shell .pc-navbar .pc-link:focus,
.standard-shell .pc-item.active > .pc-link {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(2px);
}

.standard-shell .pc-navbar .pc-link .pc-micon {
  color: #7cc4ff;
}

.standard-shell .workspace-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(76, 163, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.standard-shell .pc-header {
  background: #f7fafe;
  min-height: var(--pq-header-offset);
}

.standard-shell .topbar-spacer {
  height: calc(var(--pq-header-offset) + 8px);
}

.standard-shell .pc-header .header-wrapper {
  align-items: center;
  min-height: var(--pq-header-offset);
}

.standard-shell .topbar-surface {
  margin: 0 18px;
  padding: 10px 16px;
  border: 1px solid rgba(18, 42, 68, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 35px -30px rgba(18, 42, 68, 0.35);
}

.standard-shell .topbar-icon-link,
.standard-shell .topbar-pill-trigger,
.standard-shell .topbar-account-trigger {
  border: 1px solid rgba(18, 42, 68, 0.08);
  background: #fff;
  border-radius: 14px;
  min-height: 42px;
}

.standard-shell .pc-header .pc-h-item {
  min-height: calc(var(--pq-header-offset) - 10px);
}

.standard-shell .pc-header .pc-head-link.topbar-pill-trigger,
.standard-shell .pc-header .pc-head-link.topbar-account-trigger {
  width: auto;
  max-width: none;
  height: 42px;
  overflow: visible;
}

.standard-shell .topbar-icon-link {
  width: 42px;
  height: 42px;
  justify-content: center;
}

.standard-shell .topbar-pill-trigger,
.standard-shell .topbar-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.standard-shell .pc-header .pc-head-link.topbar-pill-trigger::before,
.standard-shell .pc-header .pc-head-link.topbar-account-trigger::before {
  display: none;
}

.standard-shell .pc-header .pc-head-link.topbar-pill-trigger:hover,
.standard-shell .pc-header .pc-head-link.topbar-pill-trigger:focus,
.standard-shell .pc-header .pc-head-link.topbar-account-trigger:hover,
.standard-shell .pc-header .pc-head-link.topbar-account-trigger:focus {
  background: #edf5ff;
  border-color: rgba(13, 103, 217, 0.26);
  color: var(--pq-ink);
}

.standard-shell .pc-header .pc-head-link.topbar-pill-trigger:hover i,
.standard-shell .pc-header .pc-head-link.topbar-pill-trigger:focus i,
.standard-shell .pc-header .pc-head-link.topbar-account-trigger:hover i,
.standard-shell .pc-header .pc-head-link.topbar-account-trigger:focus i,
.standard-shell .pc-header .pc-head-link.topbar-pill-trigger:hover .topbar-pill-trigger__value,
.standard-shell .pc-header .pc-head-link.topbar-pill-trigger:focus .topbar-pill-trigger__value,
.standard-shell .pc-header .pc-head-link.topbar-account-trigger:hover .topbar-account-trigger__name,
.standard-shell .pc-header .pc-head-link.topbar-account-trigger:focus .topbar-account-trigger__name {
  color: var(--pq-ink);
}

.standard-shell .topbar-pill-trigger__value,
.standard-shell .topbar-account-trigger__name {
  color: var(--pq-ink);
  font-weight: 700;
  white-space: nowrap;
}

.standard-shell .topbar-account-trigger__body {
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.standard-shell .topbar-account-trigger__avatar,
.standard-shell .account-dropdown-panel__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #1e86ff 0%, #0d67d9 100%);
  color: #fff;
  font-weight: 700;
}

.standard-shell .shell-dropdown {
  width: min(360px, calc(100vw - 32px));
  margin-top: 12px;
  border: 1px solid rgba(18, 42, 68, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 45px -28px rgba(18, 42, 68, 0.35);
}

.standard-shell .topbar-search-menu {
  width: 320px;
}

.standard-shell .topbar-search-menu .form-control {
  border-radius: 14px;
  background: var(--pq-surface);
  color: var(--pq-ink);
}

.standard-shell .organization-switch-menu,
.standard-shell .account-dropdown-panel {
  width: min(380px, calc(100vw - 32px));
}

.standard-shell .account-dropdown-panel__header,
.standard-shell .notifications-dropdown-panel .dropdown-header,
.standard-shell .organization-switch-menu .dropdown-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(18, 42, 68, 0.08);
}

.standard-shell .notifications-dropdown-panel .dropdown-body,
.standard-shell .organization-switch-menu .dropdown-body,
.standard-shell .account-dropdown-panel .dropdown-body {
  padding: 12px;
}

.standard-shell .notification-card,
.standard-shell .organization-option,
.standard-shell .account-menu .dropdown-item,
.standard-shell .app-alert {
  border: 1px solid rgba(18, 42, 68, 0.08);
  border-radius: 16px;
  background: #fff;
}

.standard-shell .notification-card {
  display: flex;
  gap: 12px;
  padding: 14px;
}

.standard-shell .notification-card + .notification-card,
.standard-shell .organization-switch-list form + form,
.standard-shell .account-menu .dropdown-item + .dropdown-item,
.standard-shell .app-alert + .app-alert {
  margin-top: 10px;
}

.standard-shell .notification-card.is-unread {
  background: #f7fbff;
  border-color: rgba(13, 103, 217, 0.18);
}

.standard-shell .notification-card__icon,
.standard-shell .app-alert__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #e8f4fd;
  color: var(--pq-brand);
}

.standard-shell .notifications-empty-state {
  text-align: center;
  padding: 24px 14px;
}

.standard-shell .notifications-empty-state__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #edf7ee;
  color: #198754;
}

.standard-shell .organization-option,
.standard-shell .account-menu .dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px;
  color: var(--pq-ink);
}

.standard-shell .organization-option:hover,
.standard-shell .organization-option:focus,
.standard-shell .organization-option.is-active,
.standard-shell .account-menu .dropdown-item:hover,
.standard-shell .account-menu .dropdown-item:focus {
  background: #edf5ff;
  border-color: rgba(13, 103, 217, 0.16);
  color: var(--pq-ink) !important;
}

.standard-shell .organization-option:hover .organization-option__name,
.standard-shell .organization-option:focus .organization-option__name,
.standard-shell .organization-option.is-active .organization-option__name,
.standard-shell .account-menu .dropdown-item:hover span,
.standard-shell .account-menu .dropdown-item:focus span {
  color: var(--pq-ink) !important;
}

.standard-shell .organization-option__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.standard-shell .organization-option__name {
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}

.standard-shell .organization-option__meta,
.standard-shell .account-dropdown-panel .text-muted,
.standard-shell .notification-card__body .text-muted,
.standard-shell .app-alert__content p {
  color: var(--pq-muted) !important;
}

.standard-shell .organization-option__icon,
.standard-shell .organization-option__chevron {
  color: var(--pq-brand);
}

.standard-shell .account-menu__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.standard-shell .alert-container {
  margin-bottom: 1rem;
}

.standard-shell .app-alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
}

.standard-shell .app-alert__label {
  color: var(--pq-brand);
  margin-bottom: 2px;
}

.standard-shell .app-alert-danger {
  border-color: rgba(220, 53, 69, 0.2);
  background: #fff8f8;
}

.standard-shell .app-alert-danger .app-alert__icon,
.standard-shell .app-alert-danger .app-alert__label {
  background: #fdecee;
  color: #dc3545;
}

.standard-shell .app-alert-warning {
  border-color: rgba(253, 126, 20, 0.2);
  background: #fffaf5;
}

.standard-shell .app-alert-warning .app-alert__icon,
.standard-shell .app-alert-warning .app-alert__label {
  background: #fff2e8;
  color: #fd7e14;
}

.standard-shell .app-alert-success {
  border-color: rgba(25, 135, 84, 0.2);
  background: #f6fcf8;
}

.standard-shell .app-alert-success .app-alert__icon,
.standard-shell .app-alert-success .app-alert__label {
  background: #edf7ee;
  color: #198754;
}

.standard-shell .app-alert-info {
  background: #f7fbff;
}

.standard-shell .pc-content {
  padding-top: 1.15rem;
}

.standard-shell .pc-container {
  top: 0;
  padding-top: 0;
  min-height: calc(100vh - 61px);
}

.standard-shell .standard-main-row {
  row-gap: 1rem;
}

.standard-shell .card,
.standard-shell .card {
  border-radius: 16px;
  border: 1px solid rgba(18, 42, 68, 0.08);
  box-shadow: 0 20px 35px -30px rgba(18, 42, 68, 0.35);
}

/* Authentication shell */

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 12% 12%, rgba(13, 103, 217, 0.2), transparent 36%),
    radial-gradient(circle at 90% 8%, rgba(0, 190, 255, 0.16), transparent 34%),
    linear-gradient(160deg, #0d2139 0%, #102947 60%, #143760 100%);
}

.auth-shell__content {
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-panel {
  width: min(460px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(231, 242, 255, 0.22);
  background: rgba(7, 24, 43, 0.68);
  color: #e4f1ff;
  box-shadow: 0 35px 55px -38px rgba(4, 13, 25, 0.9);
  padding: 1.5rem;
}

.auth-brand-mark {
  width: 100%;
  margin-bottom: 1.75rem;
}

.auth-brand-mark__logo {
  width: min(400px, 100%);
  max-height: 200px;
  object-fit: contain;
}

.auth-panel label {
  color: rgba(228, 241, 255, 0.95);
  font-weight: 600;
}

.auth-panel .form-control {
  border-radius: 12px;
  border: 1px solid rgba(231, 242, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.auth-panel .form-control:focus {
  border-color: rgba(85, 170, 255, 0.75);
  box-shadow: 0 0 0 0.2rem rgba(85, 170, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.auth-panel .btn-primary {
  border-radius: 999px;
  border: none;
  font-weight: 700;
  padding: 0.72rem 1.2rem;
  background: linear-gradient(120deg, #1e86ff 0%, #0d67d9 100%);
}

/* Shared alert system */

.alert-container {
  display: grid;
  gap: 10px;
  margin-bottom: 1rem;
}

.app-alert {
  --app-alert-accent: #0d67d9;
  --app-alert-surface: #f7fbff;
  --app-alert-icon-surface: #e8f4fd;
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 52px 14px 16px;
  border: 1px solid rgba(18, 42, 68, 0.08);
  border-radius: 16px;
  background: var(--app-alert-surface);
  box-shadow: 0 16px 30px -28px rgba(18, 42, 68, 0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-alert.is-dismissing {
  opacity: 0;
  transform: translateY(-4px);
}

.app-alert__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--app-alert-icon-surface);
  color: var(--app-alert-accent);
}

.app-alert__content {
  flex: 1 1 auto;
  min-width: 0;
}

.app-alert__content p {
  color: var(--pq-muted);
}

.app-alert__label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--app-alert-icon-surface);
  color: var(--app-alert-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-alert__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(18, 42, 68, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

.app-alert__close:hover,
.app-alert__close:focus {
  background: rgba(18, 42, 68, 0.06);
  color: rgba(18, 42, 68, 0.82);
  outline: none;
}

.app-alert-danger {
  --app-alert-accent: #c63d4f;
  --app-alert-surface: #fff7f8;
  --app-alert-icon-surface: #feecef;
  border-color: rgba(198, 61, 79, 0.18);
}

.app-alert-warning {
  --app-alert-accent: #c56a1e;
  --app-alert-surface: #fff8f1;
  --app-alert-icon-surface: #fff1e1;
  border-color: rgba(197, 106, 30, 0.18);
}

.app-alert-success {
  --app-alert-accent: #1b8a6b;
  --app-alert-surface: #f4fbf8;
  --app-alert-icon-surface: #e8f6f1;
  border-color: rgba(27, 138, 107, 0.18);
}

.app-alert-info {
  --app-alert-accent: #0d67d9;
  --app-alert-surface: #f7fbff;
  --app-alert-icon-surface: #e8f4fd;
  border-color: rgba(13, 103, 217, 0.16);
}

/* Responsive overrides */

@media (max-width: 767.98px) {
  .auth-shell__content {
    width: 100%;
  }

  .auth-brand-mark {
    margin-bottom: 1.2rem;
  }

  .auth-brand-mark__logo {
    width: min(200px, 100%);
    max-height: 140px;
  }
}

@media (max-width: 991.98px) {
  .standard-shell {
    --pq-header-offset: 92px;
  }

  .standard-shell .topbar-surface {
    margin: 0 12px;
    padding: 8px 12px;
  }

  .standard-shell .topbar-account-trigger__body {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  .standard-shell .topbar-pill-trigger__value {
    display: none;
  }

  .standard-shell .topbar-pill-trigger {
    width: 42px;
    justify-content: center;
    padding: 0;
  }
}
