/* Digives Control Tower — síťová administrace */

.digives-admin-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(45, 90, 120, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(30, 70, 55, 0.1), transparent 50%),
    linear-gradient(165deg, #e6eef4 0%, #f0ebe3 48%, #e4ebe6 100%);
  color: var(--color-text, #1a1a1a);
}

.digives-tower {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  min-height: 100vh;
  max-width: 90rem;
  margin: 0 auto;
}

.digives-tower-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 1.25rem 1rem 1.5rem;
  border-right: 1px solid rgba(20, 40, 55, 0.08);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.digives-tower-brand-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6b76;
}

.digives-tower-brand-title {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1c2d38;
}

.digives-tower-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.digives-nav-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: #243744;
  font-weight: 550;
  font-size: 0.95rem;
}

.digives-nav-link:hover {
  background: rgba(28, 55, 72, 0.07);
}

.digives-nav-link.is-active {
  background: #1c3748;
  color: #fff;
}

.digives-nav-link--muted {
  font-size: 0.85rem;
  font-weight: 500;
  color: #5a6b76;
}

.digives-tower-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(20, 40, 55, 0.08);
}

.digives-tower-main {
  padding: 1rem 1.35rem 3rem;
  min-width: 0;
}

.digives-tower-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.digives-tower-mobile-nav {
  display: none;
}

.digives-tower-mobile-nav summary {
  cursor: pointer;
  list-style: none;
  padding: 0.45rem 0.85rem;
  background: #fff;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.digives-tower-mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 0.75rem;
}

.digives-admin-hero {
  margin-bottom: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.digives-admin-hero h1 {
  margin: 0.15rem 0 0.35rem;
}

.digives-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.digives-tower-content {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.digives-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}

.digives-kpi {
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 0 rgba(20, 40, 55, 0.04), 0 8px 24px rgba(20, 40, 55, 0.05);
}

.digives-kpi-value {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1c2d38;
  line-height: 1.1;
}

.digives-kpi-label {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #4a5c68;
}

.digives-kpi-hint {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #7a8a95;
}

.digives-section-intro {
  margin-bottom: 0.85rem;
}

.digives-section-title {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.2rem;
}

.digives-section-lead {
  margin: 0;
  max-width: 42rem;
}

.digives-stack-card {
  margin: 0;
}

.digives-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.digives-alert {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.7);
  border-left: 3px solid #5a7a8c;
}

.digives-alert--warn {
  border-left-color: #c4922a;
  background: #fffbeb;
}

.digives-alert--bad {
  border-left-color: #b33a3a;
  background: #fef2f2;
}

.digives-alert--info {
  border-left-color: #3d6f8c;
}

.digives-mini-muni-list,
.digives-muni-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.digives-muni-card,
.digives-mini-muni {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.digives-muni-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.digives-muni-title {
  margin: 0;
  font-size: 1.25rem;
}

.digives-muni-title a {
  text-decoration: none;
  color: inherit;
}

.digives-muni-title a:hover {
  text-decoration: underline;
}

.digives-muni-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.digives-pulse-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: #3d5160;
}

.digives-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.digives-status--ok {
  background: #d8f0df;
  color: #14532d;
}

.digives-status--draft {
  background: #e8e4d8;
  color: #44403c;
}

.digives-status--bad {
  background: #fde2e2;
  color: #7f1d1d;
}

.digives-status--soon {
  background: #fef3c7;
  color: #92400e;
}

.digives-muni-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.digives-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.85rem 1rem;
  align-items: end;
}

.digives-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.digives-filter-form input,
.digives-filter-form select {
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(20, 40, 55, 0.15);
  font: inherit;
  background: #fff;
}

.digives-check-label {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
}

.digives-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.digives-workspace-tab {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  color: #1c2d38;
  font-size: 0.9rem;
  font-weight: 550;
  border: 1px solid rgba(20, 40, 55, 0.08);
}

.digives-workspace-tab.is-active {
  background: #1c3748;
  color: #fff;
  border-color: transparent;
}

.digives-empty {
  text-align: center;
  padding: 1.5rem 1rem;
}

.digives-aff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.digives-aff-card {
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.digives-report-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 10rem;
}

.digives-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.digives-checklist {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.digives-module-defaults {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.5;
}

.digives-dns-guide {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--color-brand, #1e293b) 12%, transparent);
}

.digives-dns-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.digives-dns-steps li {
  margin-bottom: 0.4rem;
}

.digives-notes {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0.5rem;
}

.digives-create-form label {
  display: block;
  margin-bottom: 0.9rem;
}

.digives-catalog-results {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.6rem;
  max-height: 16rem;
  overflow: auto;
}

.digives-catalog-item {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.65rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font: inherit;
}

.digives-catalog-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--color-muted, #666);
}

.digives-modules-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.digives-module-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0.45rem;
  cursor: pointer;
}

.digives-module-row input {
  width: 1.1rem;
  height: 1.1rem;
}

/* Coming soon / not found gate */
.digives-gate-body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: linear-gradient(160deg, #e8eef5 0%, #f4f1ea 50%, #e5ebe4 100%);
}

.digives-gate {
  max-width: 28rem;
  width: 100%;
  padding: 1.75rem 1.5rem;
}

.digives-gate-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted, #666);
}

.digives-gate h1 {
  margin: 0.35rem 0 0.75rem;
}

.digives-gate-lead {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

/* Legacy narrow shell (status gate / starší stránky) */
.digives-admin-shell {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

@media (max-width: 900px) {
  .digives-tower {
    grid-template-columns: 1fr;
  }

  .digives-tower-sidebar {
    display: none;
  }

  .digives-tower-mobile-nav {
    display: block;
  }

  .digives-tower-main {
    padding: 0.85rem 0.85rem 2.5rem;
  }
}
