/* Copyright 2026 Bukinex */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.info-row-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: 36px;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  box-sizing: border-box;
}

.info-row-fixed .info-spacer {
  margin-left: auto;
}

.info-row-fixed img {
  height: 22px;
  display: block;
}

.info-row-fixed iframe {
  background: #ffffff;
  border-radius: 6px;
  pointer-events: none;
}

.info-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.info-locale-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-locale-label {
  font-size: 12px;
  color: #111827;
  white-space: nowrap;
}

.info-locale-select {
  font-size: 12px;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 3px 10px;
}

.info-user-toggle {
  font-size: 12px;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.info-user-toggle[aria-expanded='true'] {
  background: #e5e7eb;
}

.info-user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: none;
  min-width: 140px;
  background: #ffffff;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.18);
  z-index: 1300;
}

.info-user-dropdown.is-open {
  display: block;
}

.info-user-action {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #111827;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.info-user-action + .info-user-action {
  margin-top: 6px;
}

.info-user-action.danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.info-copyright {
  margin-left: 10px;
  font-size: 11px;
  color: #111827;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .info-row-fixed iframe {
    display: none !important;
  }
}

.topbar-fixed {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #b91c1c;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.page-top-padding {
  padding-top: 80px;
}

body.has-impersonation-banner {
  padding-bottom: 54px;
}

.impersonation-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  border: 2px solid #991b1b;
  border-radius: 10px;
  background: #fef2f2;
  color: #7f1d1d;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  font-size: 13px;
  font-weight: 700;
}

.impersonation-stop-button {
  border: 1px solid #991b1b;
  border-radius: 8px;
  background: #991b1b;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
}

.impersonation-stop-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 1024px) {
  .page-top-padding {
    padding-top: 132px;
  }
}

@media (max-width: 600px) {
  .page-top-padding {
    padding-top: 150px;
  }
}

.nav-scroll {
  overflow-x: auto;
  overflow-y: visible;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-link-muted {
  opacity: 0.85;
}

.nav-spacer {
  margin-left: auto;
}

.nav-link-strong {
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-link-active {
  background: #fff;
  color: #991b1b;
  font-weight: 600;
  border-color: #ffffff;
}

.nav-link-button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
}

#project-open {
  font-size: 28px;
  font-weight: 700;
}

.topbar-tool-toggle {
  display: inline-flex;
  gap: 4px;
}

.topbar-history {
  display: inline-flex;
  gap: 4px;
  margin-left: 4px;
}

.nav-button {
  border: none;
  border-radius: 6px;
  background: #ef4444;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.nav-button-small {
  padding: 6px 8px;
}

.nav-button-accent {
  background: #b91c1c;
  width: 100%;
  text-align: left;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 360px;
  background: #111827;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: 12px;
  padding: 12px 14px;
  z-index: 1400;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.25);
}

.cookie-banner p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
}

.cookie-banner a {
  color: #fde047;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-button {
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.cookie-button.primary {
  background: #fde047;
  border-color: #fde047;
  color: #111827;
}

.tool-access-denied-dialog {
  border: none;
  padding: 0;
  background: transparent;
}

.tool-access-denied-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.tool-access-denied-card {
  width: min(460px, calc(100vw - 32px));
  background: #fff;
  border: 2px solid #991b1b;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.25);
}

.tool-access-denied-card h2 {
  margin: 0 0 10px;
  color: #7f1d1d;
  font-size: 18px;
}

.tool-access-denied-card p {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
}

.tool-access-denied-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-access-denied-status {
  display: none;
  margin: 0 0 12px;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.tool-access-denied-status[data-status='info'] {
  display: block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.tool-access-denied-status[data-status='success'] {
  display: block;
  background: #ecfdf3;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.tool-access-denied-status[data-status='error'] {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.tool-access-denied-mail,
.tool-access-denied-close {
  border: 1px solid #991b1b;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.tool-access-denied-mail:disabled {
  cursor: wait;
  opacity: 0.7;
}

.tool-access-denied-mail {
  background: #991b1b;
  color: #fff;
}

.tool-access-denied-close {
  background: #fff;
  color: #991b1b;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

.hide-on-small {
  display: inline-block;
}

@media (max-width: 600px) {
  .hide-on-small {
    display: none !important;
  }

  .topbar-fixed {
    display: none;
  }
}

.hide-medium,
.hide-large {
  display: none;
}

@media (max-width: 1024px) {
  .hide-medium {
    display: inline-flex;
  }
}

@media (max-width: 1280px) {
  .hide-large {
    display: inline-flex;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: #fff;
  z-index: 1100;
  box-shadow: 16px 0 24px rgba(15, 23, 42, 0.2);
  padding: 12px;
  box-sizing: border-box;
}

.mobile-nav .nav-link {
  color: #111827;
  display: block;
  margin-top: 6px;
  background: #f3f4f6;
}

.mobile-nav .nav-link-active {
  background: #fee2e2;
  color: #991b1b;
}
