:root {
  --bs-primary: #013a73;
  --bs-primary-rgb: 1, 58, 115;
  --bs-secondary: #a7bcde;
  --bs-secondary-rgb: 167, 188, 222;
  --bs-danger: #ff3e1d;
  --sneat-bg: #f5f5f9;
  --sneat-surface: #ffffff;
  --sneat-border: #d9dee3;
  --sneat-text: #566a7f;
  --sneat-heading: #384551;
  --sneat-menu-bg: #fff;
  --sneat-menu-text: #697a8d;
  --sneat-menu-active: #013a73;
  --sneat-menu-active-bg: rgba(167, 188, 222, 0.28);
  --login-primary-900: #012a54;
  --login-primary-800: #013a73;
  --login-primary-700: #0b4f91;
  --login-primary-500: #2f6fae;
  --login-primary-200: #a7bcde;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  background-color: var(--sneat-bg);
  color: var(--sneat-text);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--sneat-heading);
}

.layout-wrapper,
.layout-container {
  display: flex;
  width: 100%;
}

.auth-shell {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 88% 0%, rgba(1, 58, 115, 0.17), transparent 37%),
    radial-gradient(circle at 0% 100%, rgba(47, 111, 174, 0.16), transparent 35%),
    linear-gradient(145deg, #f3f7fc 0%, #e8f0f8 55%, #f7fafd 100%);
  padding: 1rem;
}

.login-stage {
  width: min(1120px, 94vw);
  min-height: min(700px, 94vh);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid rgba(67, 89, 113, 0.14);
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 1.5rem 3.2rem rgba(67, 89, 113, 0.2);
  overflow: hidden;
}

.login-panel-brand {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(152deg, var(--login-primary-900) 0%, var(--login-primary-800) 58%, var(--login-primary-500) 100%);
  color: #f4f5ff;
  padding: 2.1rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.login-panel-brand::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  top: -130px;
  right: -70px;
  background: rgba(255, 255, 255, 0.13);
  pointer-events: none;
}

.login-panel-brand::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 42% 58% 46% 54%;
  bottom: -72px;
  left: -48px;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.login-panel-brand > * {
  position: relative;
  z-index: 1;
}

.login-brand-head {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.login-brand-logo {
  max-height: 100px;
 
  width: auto;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 1);
  padding: 0.45rem;
}

.login-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  opacity: 0.86;
  display: inline-block;
}

.login-title {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  margin: 0.45rem 0 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-subtitle {
  max-width: 40ch;
  color: rgba(242, 246, 255, 0.88);
  margin: 1.4rem 0 1.2rem;
  line-height: 1.55;
}

.login-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.login-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.login-feature-list i {
  font-size: 1rem;
}

.status-strip {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  font-size: 0.77rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #9ec7f0;
  box-shadow: 0 0 0 4px rgba(167, 188, 222, 0.28);
}

.login-panel-form {
  padding: 2.3rem;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 8%, rgba(1, 58, 115, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f6faff 100%);
}

.login-card {
  width: 100%;
  max-width: 438px;
  margin-inline: auto;
  background: #ffffff;
  border: 1px solid rgba(1, 58, 115, 0.16);
  border-radius: 0.9rem;
  padding: 1.45rem;
  box-shadow: 0 0.85rem 2rem rgba(67, 89, 113, 0.09);
}

.login-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  background: rgba(1, 58, 115, 0.11);
  color: var(--login-primary-800);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.95rem;
}

.login-card h1 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 0;
}

.login-card-subtitle {
  margin: 0.55rem 0 1rem;
  color: #7a8799;
  font-size: 0.9rem;
}

.login-validation ul {
  margin-bottom: 0.7rem;
}

.login-card .form-label {
  color: #566a7f;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.38rem;
}

.form-field-wrap .text-danger,
.login-validation,
.login-card .text-danger {
  font-size: 0.78rem;
}

.login-card .form-control {
  border-radius: 0.55rem;
  border-color: #d7dce3;
  background: #fff;
  min-height: 2.7rem;
}

.login-card .form-control::placeholder {
  color: #b2bcc9;
}

.login-help {
  font-size: 0.72rem;
  color: #8593a7;
  letter-spacing: 0.03em;
}

/*.login-card .btn-primary {
  border-radius: 0.55rem;
  min-height: 2.7rem;
  background: linear-gradient(180deg, var(--login-primary-700) 0%, var(--login-primary-800) 100%);
  border-color: var(--login-primary-800);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
}*/

/*.login-card .btn-primary:hover,
.login-card .btn-primary:focus,
.login-card .btn-primary:active {
  background: linear-gradient(180deg, var(--login-primary-800) 0%, var(--login-primary-900) 100%);
  border-color: var(--login-primary-900);
}*/

.layout-menu {
  width: 16.25rem;
  background: var(--sneat-menu-bg);
  border-right: 1px solid var(--sneat-border);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: width 0.2s ease, transform 0.2s ease;
}

.app-brand {
  min-height: 64px;
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(67, 89, 113, 0.08);
}

.app-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.app-brand-logo {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.app-brand-text {
  color: #566a7f;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.menu-inner-shadow {
  height: 1.25rem;
  margin-top: -0.5rem;
  background: linear-gradient(var(--sneat-menu-bg) 40%, rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 2;
}

.menu-inner {
  list-style: none;
  margin: 0;
  padding: 0.65rem;
  overflow-y: auto;
}

.menu-header {
  color: #a1acb8;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0.7rem 0.6rem 0.25rem;
}

.menu-item {
  margin-bottom: 0.2rem;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--sneat-menu-text);
  border-radius: 0.4rem;
  padding: 0.56rem 0.78rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.menu-link:hover {
  color: #435971;
  background-color: rgba(67, 89, 113, 0.06);
}

.menu-item.active > .menu-link {
  color: var(--sneat-menu-active);
  background-color: var(--sneat-menu-active-bg);
  box-shadow: 0 2px 6px rgba(1, 58, 115, 0.14);
}

.layout-menu-collapsed .layout-menu {
  width: 5.25rem;
}

.layout-menu-collapsed .app-brand-text,
.layout-menu-collapsed .menu-header,
.layout-menu-collapsed .menu-link > div {
  display: none;
}

.layout-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.layout-navbar {
  min-height: 64px;
  border: 1px solid rgba(67, 89, 113, 0.14);
  border-radius: 0.65rem;
  margin-top: 1rem;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
}

.container-p-y {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.layout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(67, 89, 113, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1090;
}

.form-control,
.form-select,
.input-group-text {
  border-color: var(--sneat-border);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(1, 58, 115, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(167, 188, 222, 0.32);
}

.btn-primary {
  background-color: #013a73;
  border-color: #013a73;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #022f5c;
  border-color: #022f5c;
}

.badge.bg-label-primary {
  color: #013a73;
  background-color: rgba(167, 188, 222, 0.35);
}

.table {
  --bs-table-bg: transparent;
}

.card,
.crud-card,
.dashboard-card,
.dashboard-stage,
.crud-shell {
  border-radius: 0.65rem;
}

.placeholder-stage {
  display: grid;
  gap: 1rem;
}

.placeholder-grid {
  display: grid;
  gap: 1rem;
}

.placeholder-card {
  background: transparent;
}

.dashboard-stage {
  border: 1px solid #c8d4da;
 
  box-shadow: 0 16px 36px rgba(24, 44, 56, 0.13);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.dashboard-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(23, 55, 72, 0.06) 100%);
  background-size: 100% 20px;
  opacity: 0.5;
  pointer-events: none;
}

.dashboard-stage > * {
  position: relative;
  z-index: 1;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-kicker {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid #94acba;
  background: rgba(231, 241, 247, 0.95);
  color: #204256;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.dashboard-head h1 {
  margin: 0.55rem 0 0;
  font-family: "Copperplate Gothic Bold", "Bahnschrift", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.3rem, 2.4vw, 1.95rem);
  color: #17384b;
}

.dashboard-head p {
  margin: 0.5rem 0 0;
  max-width: 72ch;
  color: #395667;
}

.dashboard-head-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meta-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.55rem;
  border: 1px solid;
}

.meta-pill.online {
  background: rgba(42, 116, 85, 0.12);
  color: #225a44;
  border-color: rgba(42, 116, 85, 0.35);
}

.meta-pill.warning {
  background: rgba(168, 112, 29, 0.14);
  color: #805714;
  border-color: rgba(168, 112, 29, 0.4);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.kpi-card {
  border: 1px solid #cad8e0;
  background: #fff;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: dashboard-reveal 0.55s ease both;
}

.kpi-label {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.68rem;
  color: #315061;
}

.kpi-value {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  color: #113a59;
  line-height: 1.1;
}

.kpi-trend {
  font-size: 0.74rem;
  font-weight: 700;
}

.kpi-trend.up {
  color: #1e6a4d;
}

.kpi-trend.down {
  color: #9a4a22;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 0.75rem;
}

.dashboard-card {
  border: 1px solid #cad8e0;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.9rem;
  box-shadow: 0 10px 18px rgba(30, 55, 69, 0.08);
  animation: dashboard-reveal 0.55s ease both;
}

.dashboard-card.span-2 {
  grid-column: span 2;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.card-head h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  color: #213f52;
}

.card-head span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #617887;
}

.status-legend {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.34rem;
  font-size: 0.78rem;
  color: #365464;
}

.dot {
  display: inline-block;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  margin-right: 0.45rem;
}

.dot.ok { background: #2f7f62; }
.dot.warn { background: #d6a436; }
.dot.fail { background: #b64646; }

.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: #2e4f61;
  font-size: 0.83rem;
}

.activity-list li {
  border-left: 2px solid #b7c9d4;
  padding-left: 0.55rem;
}

.activity-list strong {
  color: #133f60;
  margin-right: 0.35rem;
}

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

.dashboard-table th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  color: #395768;
  background: #edf4f8;
}

.dashboard-table td {
  color: #304e5f;
}

.badge-priority {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid;
}

.badge-priority.high {
  color: #8a2e2e;
  border-color: rgba(138, 46, 46, 0.45);
  background: rgba(195, 76, 76, 0.09);
}

.badge-priority.medium {
  color: #886317;
  border-color: rgba(136, 99, 23, 0.45);
  background: rgba(198, 162, 67, 0.12);
}

.badge-priority.low {
  color: #225a44;
  border-color: rgba(34, 90, 68, 0.44);
  background: rgba(58, 132, 100, 0.1);
}

.quick-actions {
  display: grid;
  gap: 0.45rem;
}

.quick-actions .btn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  text-align: left;
}

.dashboard-alerts {
  margin-top: 0.8rem;
  border: 1px solid #d4b98c;
  background: linear-gradient(180deg, rgba(254, 248, 235, 0.95) 0%, rgba(248, 238, 216, 0.92) 100%);
  padding: 0.8rem;
  animation: dashboard-reveal 0.55s ease both;
}

.dashboard-alerts h2 {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: #724d15;
}

.dashboard-alerts ul {
  margin: 0;
  padding-left: 1rem;
  color: #6a4a1d;
  font-size: 0.82rem;
}

.reveal-delay-1 { animation-delay: 0.05s; }
.reveal-delay-2 { animation-delay: 0.12s; }
.reveal-delay-3 { animation-delay: 0.19s; }
.reveal-delay-4 { animation-delay: 0.26s; }

@keyframes dashboard-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.crud-shell {
  border: 1px solid #c8d4da;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 44, 56, 0.12);
  padding: 1.1rem;
}

.crud-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.crud-kicker {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border: 1px solid #9cb0bc;
  background: #e8f0f4;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1f3a4b;
  margin-bottom: 0.6rem;
}

.crud-head h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crud-head p {
  margin: 0.45rem 0 0;
  color: #3b5565;
}

.crud-card {
  border: 1px solid #ced9df;
  background: #ffffff;
  padding: 1rem;
}

.crud-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crud-table thead th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  color: #334f5f;
  background: #eef3f6;
}

.crud-table tbody td {
  vertical-align: middle;
}

#navbar-collapse{
  padding: 0px 8px;
}

.layout-menu-toggle.navbar-nav {
  flex-direction: row;
}

#layoutMenuToggleMobile {
  min-width: 2.25rem;
  min-height: 2.25rem;
  line-height: 1;
  color: #566a7f;
}

#layoutMenuToggleMobile:hover {
  color: #435971;
}

#layoutMenuToggleMobile:focus-visible {
  outline: 2px solid rgba(1, 58, 115, 0.45);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

@media (max-width: 1199.98px) {
  .layout-menu {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1100;
    transform: translateX(-100%);
    box-shadow: 0 0.5rem 1.25rem rgba(67, 89, 113, 0.24);
  }

  .layout-page {
    width: 100%;
  }

  .layout-menu-expanded .layout-menu {
    transform: translateX(0);
  }

  .layout-menu-expanded .layout-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .layout-navbar {
    margin-top: 0.75rem;
  }

  .container-p-y {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .menu-inner {
    max-height: calc(100vh - 84px);
  }

  .login-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-panel-brand,
  .login-panel-form {
    padding: 1.25rem;
  }

  .login-feature-list {
    margin-bottom: 1rem;
  }

  .crud-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-head {
    flex-direction: column;
  }

  .dashboard-head-meta {
    justify-content: flex-start;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

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

  .dashboard-card.span-2 {
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .auth-shell {
    padding: 0.6rem;
  }

  .login-card {
    padding: 1.1rem;
  }

  .login-brand-head {
    align-items: flex-start;
  }

  .login-title {
    font-size: 1.35rem;
  }

  .dashboard-stage {
    padding: 0.9rem;
  }

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

  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}