/**
 * Infrahost Lizenzsystem — öffentliche Lizenzprüfung
 * Optik angelehnt an nxtbyte / Nitro-Host_Dark
 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ih-bg-deep: #060818;
  --ih-bg-panel: #0e1726;
  --ih-text: #ebedf2;
  --ih-text-muted: #888ea8;
  --ih-accent: #009688;
  --ih-accent-soft: rgba(0, 150, 136, 0.22);
  --ih-border: rgba(255, 255, 255, 0.08);
  --ih-radius: 12px;
}

html[data-bs-theme="dark"] {
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.ih-public {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse 100% 80% at 50% -30%, #1a2744 0%, var(--ih-bg-deep) 50%);
  color: var(--ih-text-muted);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

.ih-navbar {
  background: var(--ih-bg-panel) !important;
  border-bottom: 1px solid var(--ih-border);
  padding: 0.65rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.ih-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ih-text) !important;
  letter-spacing: -0.02em;
}

.ih-navbar .navbar-brand i {
  color: var(--ih-accent);
}

.ih-navbar .nav-link {
  color: var(--ih-text-muted) !important;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.ih-navbar .nav-link:hover {
  color: var(--ih-text) !important;
  background: rgba(255, 255, 255, 0.05);
}

.ih-navbar .navbar-toggler {
  border-color: var(--ih-border);
}

.ih-navbar .navbar-toggler-icon {
  filter: invert(1) grayscale(1);
  opacity: 0.85;
}

.ih-main {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 2rem 1rem 3rem;
}

.ih-panel {
  background: var(--ih-bg-panel);
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.ih-panel .header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.ih-panel .header h1 {
  color: var(--ih-text);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.ih-panel .header p {
  color: var(--ih-text-muted);
  font-size: 0.92rem;
}

/* License Type Styling */
.license-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.license-type.regular {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.license-type.extended {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

/* License Info Styling */
.license-info {
  background: rgba(6, 8, 24, 0.5);
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  padding: 1.25rem;
  margin-top: 1.25rem;
  border-left: 4px solid var(--ih-accent);
}

.license-info h3 {
  color: var(--ih-accent);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.license-info p {
  margin-bottom: 0.5rem;
  line-height: 1.55;
  color: var(--ih-text-muted);
}

.license-info strong {
  color: var(--ih-text);
  font-weight: 600;
}

/* License Error Styling */
.license-error {
  background: rgba(231, 81, 90, 0.08);
  border: 1px solid rgba(231, 81, 90, 0.35);
  border-radius: var(--ih-radius);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.license-error h3 {
  color: #f87171;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.license-error p {
  margin-bottom: 0.5rem;
  line-height: 1.55;
  color: var(--ih-text-muted);
}

.license-error strong {
  color: var(--ih-text);
  font-weight: 600;
}

.license-error ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.license-error li {
  margin-bottom: 0.35rem;
  color: var(--ih-text-muted);
}

.btn {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  width: 100%;
  letter-spacing: 0.02em;
}

.btn-primary,
.btn:not(.btn-secondary):not(.btn-danger):not(.btn-warning):not(.btn-info) {
  background: linear-gradient(135deg, var(--ih-accent) 0%, #00796b 100%);
  color: white;
}

.btn:hover {
  filter: brightness(1.06);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ih-border);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: rgba(6, 8, 24, 0.45);
  color: var(--ih-text);
}

.form-control::placeholder {
  color: var(--ih-text-muted);
  opacity: 0.75;
}

.form-control:focus {
  outline: none;
  border-color: var(--ih-accent);
  box-shadow: 0 0 0 3px var(--ih-accent-soft);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ih-text);
  font-weight: 500;
  font-size: 0.88rem;
}

.form-group small,
.text-muted {
  color: var(--ih-text-muted) !important;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--ih-radius);
  margin-bottom: 1rem;
  font-weight: 500;
  border: 1px solid var(--ih-border);
}

.alert-success {
  background: rgba(38, 191, 148, 0.12);
  color: #6ee7b7;
  border-color: rgba(38, 191, 148, 0.35);
}

.alert-error {
  background: rgba(231, 81, 90, 0.12);
  color: #fca5a5;
  border-color: rgba(231, 81, 90, 0.35);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

.alert-info {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}

.language-selector {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.language-selector select {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--ih-border);
  border-radius: 8px;
  background: var(--ih-bg-panel);
  color: var(--ih-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.loading {
  display: none;
  text-align: center;
  margin: 1.25rem 0;
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--ih-accent);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 0.65rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.wizard {
  max-width: 800px;
}

.wizard-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: center;
  margin: 0 10px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ih-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
  border: 1px solid var(--ih-border);
}

.step.active .step-number {
  background: var(--ih-accent-soft);
  color: var(--ih-accent);
  border-color: var(--ih-accent);
}

.step.completed .step-number {
  background: rgba(38, 191, 148, 0.25);
  color: #6ee7b7;
  border-color: rgba(38, 191, 148, 0.45);
}

.step-title {
  font-weight: 500;
  color: var(--ih-text);
}

.wizard-content {
  min-height: 320px;
}

.wizard-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1.75rem;
}

.wizard-navigation .btn {
  width: auto;
  padding: 0.65rem 1.25rem;
}

.wizard-navigation .btn:first-child {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ih-text-muted);
}

.wizard-navigation .btn:first-child:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ih-text);
}

.panel {
  background: var(--ih-bg-panel);
  border-radius: var(--ih-radius);
  border: 1px solid var(--ih-border);
  margin: 1.25rem 0;
  overflow: hidden;
}

.panel-header {
  background: rgba(6, 8, 24, 0.4);
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--ih-border);
}

.panel-header h2 {
  color: var(--ih-text);
  margin: 0;
  font-size: 1.1rem;
}

.panel-body {
  padding: 1.25rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--ih-border);
}

.table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--ih-text);
  font-size: 0.82rem;
}

.table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  margin: 0 2px;
  width: auto;
}

.btn-danger {
  background: #e7515a;
  color: white;
}

.btn-danger:hover {
  filter: brightness(1.08);
}

.btn-warning {
  background: #f59e0b;
  color: #1a1a1a;
}

.btn-info {
  background: #3b82f6;
  color: white;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
}

.modal-content {
  background: var(--ih-bg-panel);
  margin: 5% auto;
  padding: 1.25rem;
  border-radius: var(--ih-radius);
  border: 1px solid var(--ih-border);
  width: 90%;
  max-width: 500px;
  position: relative;
  color: var(--ih-text-muted);
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--ih-text-muted);
}

.close:hover {
  color: var(--ih-text);
}

@media (max-width: 768px) {
  .ih-main {
    padding: 1rem;
  }

  .ih-panel {
    padding: 1.5rem;
  }

  .wizard-steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    margin: 5px 0;
  }

  .wizard-navigation {
    flex-direction: column;
  }

  .wizard-navigation .btn {
    margin: 5px 0;
  }
}
