body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: #f6f6f6;
  color: #333;
}

#app {
  max-width: 10240px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#key-management-tab {
  margin: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


h1 {
  color: #2b2b2b;
}

/* Wizard Styles */
#wizard {
  margin-top: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#wizard button {
  margin: 5px;
  padding: 10px 15px;
  cursor: pointer;
}


/* Header & Tabs */
#main-header {
  background: #2b2b2b;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#main-header nav button {
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
}

#main-header nav button.active {
  background: #444;
  border-radius: 4px;
}

.reset-btn {
  background: #c62828;
  color: white;
  border-radius: 4px;
  padding: 8px 15px;
}

#key-status {
  color: #ffd54f;
  font-size: 14px;
}
#key-status.ok {
  color: #81c784;
}
#key-status.missing {
  color: #e57373;
}


/* Kopfzeile rechts */
#main-header nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.header-right {  
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Toast Styles */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #4CAF50; /* Green */
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 17px;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
}
.toast.error {
  background-color: #e74c3c; /* Red */
}
.toast.show {
  visibility: visible;
  opacity: 1;
}

/* Lade-Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  color: #fff;
  font-size: 18px;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #4CAF50;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

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

.success-message {
  color: #2e7d32; /* grün */
  font-weight: bold;
  margin-top: 10px;
}

.error-message {
  color: #c62828; /* rot */
  font-weight: bold;
  margin-top: 10px;
}

/* #main-footer {
  background: #7e7e7e;
  color: #fff;
  padding: 10px 20px;
  text-align: left;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 14px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
} */

/* Disabled helper */
.disabled { opacity: 0.6; pointer-events: none; }
.info-message { color: #0b57d0; }
.success-message { color: #0a7d27; }
.error-message { color: #b00020; }
.warning-message { color: #a15c00; }


/* Status panel stack */
#status-panel {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}
.status-stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  margin-top: 10px;
}
.status-entry {
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}
.status-entry-title {
  font-weight: bold;
  margin-bottom: 2px;
}
.status-entry.status-info {
  background: #e3f2fd;
}
.status-entry.status-success {
  background: #e8f5e9;
}
.status-entry.status-error {
  background: #ffebee;
}
.status-entry.status-warning {
  background: #fff8e1;
}

#main-footer {
  padding: 12px 16px;
  font-size: 11px;
  color: #4b5563;
  border-top: 1px solid #e5e7eb;
  background-color: #ffffff;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;  
  /* box-shadow: 0 -2px 5px rgba(0,0,0,0.2); */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links a {
  color: #374151;
  text-decoration: underline;
}

.footer-links a:hover {
  color: #111827;
}

.separator {
  margin: 0 6px;
  color: #9ca3af;
}
