:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #13241d;
  background: #eef3f0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;

  --ink: #10251d;
  --muted: #68766f;
  --line: #dfe7e2;
  --surface: #ffffff;
  --surface-soft: #f6f9f7;
  --dark: #071b15;
  --dark-two: #0c3024;
  --green: #246d50;
  --green-bright: #aef37a;
  --green-soft: #e9f7ed;
  --danger: #b63e3e;
  --shadow: 0 24px 70px rgba(13, 43, 32, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--dark);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #eef3f0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.ambient-one {
  top: -320px;
  left: -240px;
  background: rgba(97, 223, 158, 0.14);
}

.ambient-two {
  right: -300px;
  bottom: -340px;
  background: rgba(174, 243, 122, 0.11);
}

.login-view {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns:
    minmax(420px, 0.9fr)
    minmax(500px, 1.1fr);
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(174, 243, 122, 0.08),
      transparent 28rem
    ),
    linear-gradient(
      135deg,
      var(--dark),
      #0b2b21
    );
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vw, 100px);
}

.brand-row,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-row {
  position: absolute;
  top: 42px;
  left: clamp(40px, 7vw, 100px);
  color: white;
}

.brand-row strong,
.sidebar-brand strong {
  display: block;
  font-size: 15px;
}

.brand-row span,
.sidebar-brand span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #092118;
  background: var(--green-bright);
  box-shadow:
    0 10px 30px rgba(174, 243, 122, 0.18);
  font-size: 20px;
  font-weight: 900;
}

.login-copy {
  max-width: 600px;
  margin-bottom: 34px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #75b998;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 16px var(--green-bright);
}

.login-copy h1 {
  max-width: 640px;
  margin: 20px 0 17px;
  color: #f4fff9;
  font-size: clamp(45px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.login-copy p {
  max-width: 580px;
  margin: 0;
  color: rgba(239, 255, 248, 0.58);
  font-size: 16px;
  line-height: 1.75;
}

.auth-form {
  display: grid;
  gap: 17px;
  width: min(470px, 100%);
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label > span {
  color: rgba(239, 255, 248, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 53px;
  padding: 0 16px;
  color: #f7fff9;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.auth-form input:focus {
  border-color: rgba(174, 243, 122, 0.64);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 4px rgba(174, 243, 122, 0.08);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 74px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  padding: 8px 10px;
  transform: translateY(-50%);
  color: #a9d7c0;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.logout-button {
  border: 0;
  transition:
    transform 150ms ease,
    opacity 150ms ease,
    box-shadow 150ms ease;
}

.primary-button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #092118;
  border-radius: 14px;
  background: var(--green-bright);
  box-shadow:
    0 14px 32px rgba(174, 243, 122, 0.14);
  font-weight: 850;
}

.primary-button:hover,
.secondary-button:hover,
.logout-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.56;
  transform: none;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: #ff9a9a;
  font-size: 12px;
  line-height: 1.45;
}

.security-note {
  display: flex;
  width: min(470px, 100%);
  gap: 12px;
  margin-top: 22px;
  color: rgba(239, 255, 248, 0.43);
  font-size: 12px;
  line-height: 1.6;
}

.security-note p {
  margin: 0;
}

.security-note > span {
  color: var(--green-bright);
}

.login-visual {
  display: grid;
  place-items: center;
  padding: 50px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.01)
    );
}

.visual-card {
  position: relative;
  width: min(540px, 90%);
  min-height: 620px;
  padding: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 38px;
  background:
    radial-gradient(
      circle at 84% 5%,
      rgba(174, 243, 122, 0.24),
      transparent 22rem
    ),
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.11),
      rgba(255, 255, 255, 0.035)
    );
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
}

.visual-card::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(174, 243, 122, 0.16);
  border-radius: 50%;
  content: "";
}

.visual-label {
  color: rgba(239, 255, 248, 0.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-number {
  margin-top: 70px;
  color: var(--green-bright);
  font-size: 150px;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.09em;
}

.visual-card h2 {
  max-width: 360px;
  margin: 28px 0 42px;
  color: white;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.visual-list {
  display: grid;
  gap: 11px;
  max-width: 380px;
}

.visual-list span {
  padding: 13px 15px;
  color: rgba(239, 255, 248, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.11);
  font-size: 13px;
}

.dashboard-view {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 26px 18px;
  color: white;
  background:
    radial-gradient(
      circle at 20% 5%,
      rgba(174, 243, 122, 0.08),
      transparent 18rem
    ),
    var(--dark);
}

.sidebar-brand {
  padding: 4px 8px 30px;
}

.sidebar-nav {
  display: grid;
  gap: 7px;
}

.nav-button {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.52);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
}

.nav-button:hover,
.nav-button.active {
  color: white;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.075);
}

.nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--green-bright);
}

.sidebar-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.api-health-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.api-health-card > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 750;
}

.api-health-card small {
  color: rgba(255, 255, 255, 0.42);
}

.logout-button {
  min-height: 43px;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-main {
  min-width: 0;
  padding: 28px clamp(22px, 4vw, 52px) 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.topbar h1 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.secondary-button {
  min-height: 42px;
  padding: 0 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  box-shadow: 0 7px 20px rgba(15, 50, 37, 0.04);
  font-size: 12px;
  font-weight: 800;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.avatar {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: white;
  border-radius: 10px;
  background: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.admin-profile strong,
.admin-profile span {
  display: block;
}

.admin-profile strong {
  max-width: 190px;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-profile span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.summary-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.summary-card {
  min-height: 145px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(13, 43, 32, 0.045);
}

.summary-card.featured {
  color: white;
  border-color: transparent;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(174, 243, 122, 0.25),
      transparent 12rem
    ),
    var(--dark-two);
}

.summary-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured .summary-label {
  color: rgba(255, 255, 255, 0.52);
}

.summary-value {
  margin-top: 22px;
  color: var(--ink);
  font-size: 37px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}

.featured .summary-value {
  color: var(--green-bright);
}

.summary-detail {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.featured .summary-detail {
  color: rgba(255, 255, 255, 0.47);
}

.dashboard-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(13, 43, 32, 0.045);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.panel-kicker {
  color: #4f9073;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.timestamp,
.count-badge {
  color: var(--muted);
  font-size: 10px;
}

.count-badge {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-weight: 750;
}

.bar-list {
  display: grid;
  gap: 16px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ef;
}

.bar-fill {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #2f7659,
      #86ca78
    );
}

.empty-state {
  display: grid;
  min-height: 135px;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  font-size: 12px;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf1ef;
  text-align: left;
}

th {
  color: #849189;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  max-width: 290px;
  overflow: hidden;
  color: #3c4e46;
  font-size: 11px;
  text-overflow: ellipsis;
}

td strong {
  color: var(--ink);
}

.table-empty td {
  height: 110px;
  color: var(--muted);
  text-align: center;
}

.privacy-card {
  display: flex;
  gap: 13px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #dce9df;
  border-radius: 16px;
  background: var(--green-soft);
}

.privacy-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  border-radius: 9px;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.privacy-card strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.privacy-card p {
  margin: 5px 0 0;
  color: #617269;
  font-size: 11px;
  line-height: 1.55;
}

.dashboard-error {
  margin-bottom: 16px;
  padding: 13px 15px;
  color: #8c2929;
  border: 1px solid #f0caca;
  border-radius: 12px;
  background: #fff1f1;
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 18, 13, 0.78);
  backdrop-filter: blur(12px);
}

.modal-card {
  width: min(490px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: white;
  background: #0a241b;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.42);
}

.modal-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  color: #0a241b;
  border-radius: 14px;
  background: var(--green-bright);
}

.modal-card h2 {
  margin: 10px 0 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.modal-card > p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.65;
}

.toast {
  position: fixed;
  z-index: 50;
  top: 20px;
  right: 20px;
  max-width: 360px;
  padding: 13px 16px;
  transform: translateY(-20px);
  opacity: 0;
  color: white;
  border-radius: 12px;
  background: #173d2f;
  box-shadow: var(--shadow);
  font-size: 12px;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: #762f2f;
}

@media (max-width: 1050px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-view {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 15px;
  }

  .sidebar-brand {
    padding-bottom: 14px;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
  }

  .nav-button {
    flex: 0 0 auto;
  }

  .sidebar-bottom {
    display: none;
  }

  .dashboard-main {
    padding: 22px 15px 45px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .secondary-button {
    display: none;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .login-panel {
    justify-content: flex-start;
    padding: 120px 24px 45px;
  }

  .brand-row {
    top: 28px;
    left: 24px;
  }

  .login-copy h1 {
    font-size: 44px;
  }

  .topbar {
    flex-direction: column;
  }

  .admin-profile {
    align-self: flex-start;
  }
}

/* NICE MOBILE LANDING V101 START */

.mobile-apps-card {
  display: none;
}

@media (max-width: 1050px) {
  .login-view {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
  }

  .login-panel {
    min-height: 100svh;
    justify-content: flex-start;
    padding:
      125px
      clamp(28px, 8vw, 82px)
      54px;
  }

  .login-copy,
  .auth-form,
  .security-note,
  .mobile-apps-card {
    width: min(620px, 100%);
  }

  .login-copy {
    margin-bottom: 30px;
  }

  .login-copy h1 {
    max-width: 610px;
    font-size: clamp(48px, 8vw, 68px);
  }

  .login-visual {
    display: none;
  }

  .mobile-apps-card {
    display: grid;
    gap: 18px;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background:
      radial-gradient(
        circle at 100% 0,
        rgba(174, 243, 122, 0.16),
        transparent 16rem
      ),
      rgba(255, 255, 255, 0.055);
    box-shadow:
      0 22px 55px rgba(0, 0, 0, 0.15);
  }

  .mobile-apps-heading {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .mobile-apps-number {
    color: var(--green-bright);
    font-size: 52px;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.07em;
  }

  .mobile-apps-heading span,
  .mobile-apps-heading strong {
    display: block;
  }

  .mobile-apps-heading span {
    color: rgba(239, 255, 248, 0.43);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-apps-heading strong {
    margin-top: 5px;
    color: #f4fff9;
    font-size: 17px;
  }

  .mobile-apps-list {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .mobile-apps-list span {
    min-width: 0;
    padding: 11px 12px;
    overflow: hidden;
    color: rgba(239, 255, 248, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.09);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .security-note {
    margin-top: 20px;
  }
}

@media (max-width: 560px) {
  .login-panel {
    min-height: 100svh;
    padding: 112px 22px 40px;
  }

  .brand-row {
    top: 27px;
    left: 22px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .login-copy {
    margin-bottom: 25px;
  }

  .login-copy h1 {
    margin-top: 17px;
    font-size: clamp(40px, 12vw, 50px);
    line-height: 0.98;
  }

  .login-copy p {
    font-size: 14px;
    line-height: 1.65;
  }

  .auth-form {
    gap: 15px;
  }

  .auth-form input {
    min-height: 55px;
  }

  .primary-button {
    min-height: 56px;
  }

  .mobile-apps-card {
    padding: 17px;
    border-radius: 16px;
  }

  .mobile-apps-number {
    font-size: 47px;
  }

  .mobile-apps-heading strong {
    font-size: 15px;
  }

  .mobile-apps-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .security-note {
    padding-bottom: 12px;
  }
}

/* NICE MOBILE LANDING V101 END */
