/* Material-inspiriertes Layout für PidChecker.net (Light & Dark) */
  :root {
  --sap-primary: #ffb300;
  --sap-primary-hover: #ffca28;
    --sap-secondary: #6a6d70;
    --sap-success: #107c41;
    --sap-warning: #ff8f00;
    --sap-error: #d13438;
    --sap-info: #0070f3;
  --sap-background: #f2f2f2;
  --sap-surface: #ffffff;
  --sap-surface-hover: #f5f5f5;
  --sap-border: #d0d0d0;
  --sap-text: #222222;
  --sap-text-primary: #222222;
  --sap-text-secondary: #6a6d70;
  --sap-text-disabled: #a9a9a9;
    --sap-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --sap-shadow-elevated: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

/* Dark Mode (Standard) */
body {
  --sap-primary: #ffc107;
  --sap-primary-hover: #ffca28;
  --sap-secondary: #b0b0b0;
  --sap-success: #4caf50;
  --sap-warning: #ff9800;
  --sap-error: #f44336;
  --sap-info: #2196f3;
  --sap-background: #1a1a1a;
  --sap-surface: #2d2d2d;
  --sap-surface-hover: #353535;
  --sap-border: #404040;
  --sap-text: #e0e0e0;
  --sap-text-primary: #e0e0e0;
  --sap-text-secondary: #b0b0b0;
  --sap-text-disabled: #707070;
  --sap-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  --sap-shadow-elevated: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Light Mode */
body.light-mode {
  --sap-primary: #ffb300;
  --sap-primary-hover: #ffca28;
  --sap-secondary: #6a6d70;
  --sap-success: #107c41;
  --sap-warning: #ff8f00;
  --sap-error: #d13438;
  --sap-info: #0070f3;
  --sap-background: #f2f2f2;
  --sap-surface: #ffffff;
  --sap-surface-hover: #f5f5f5;
  --sap-border: #d0d0d0;
  --sap-text: #222222;
  --sap-text-primary: #222222;
  --sap-text-secondary: #6a6d70;
  --sap-text-disabled: #a9a9a9;
  --sap-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --sap-shadow-elevated: 0 4px 8px rgba(0, 0, 0, 0.15);
}

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--sap-background);
    color: var(--sap-text);
    line-height: 1.5;
  font-size: 13px;
  }

  .container {
    max-width: 90%;
    margin: 0 auto;
  padding: 4px;
  }

  /* Header / Top-Nav */
  .header {
    margin-bottom: 8px;
    padding: 0;
    border-bottom: 1px solid var(--sap-border);
    background: var(--sap-surface);
  }

  .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    min-height: 45px;
  }

  .top-nav-left,
  .top-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--sap-primary);
    margin: 0;
    margin-right: 16px;
    white-space: nowrap;
  }

  .top-nav-link {
    font-size: 12px;
    color: var(--sap-text);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .top-nav-link:hover {
    background: var(--sap-surface-hover);
    border-color: var(--sap-border);
  }

  .top-nav-link-active {
    background: var(--sap-primary);
    color: #000;
    border-color: var(--sap-primary);
    font-weight: 600;
  }

  .promo-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--sap-primary);
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    margin-right: 8px;
  }

  .promo-link:hover {
    background: var(--sap-primary-hover);
    transform: translateY(-1px);
  }

  .header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header-title {
  font-size: 16px;
    font-weight: 600;
    color: var(--sap-text);
  margin-bottom: 2px;
  }

  .header-subtitle {
  font-size: 12px;
    color: var(--sap-text-secondary);
  }

  .header-controls {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .language-selector {
    position: relative;
    display: inline-block;
  }

  .language-btn {
    background: var(--sap-surface);
    border: 1px solid var(--sap-border);
    color: var(--sap-text);
  padding: 3px 5px;
  font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
  border-radius: 4px;
  box-shadow: var(--sap-shadow);
  }

  .language-btn:hover {
    background: var(--sap-surface-hover);
    border-color: var(--sap-primary);
  }

  .language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--sap-surface);
    border: 1px solid var(--sap-border);
    box-shadow: var(--sap-shadow-elevated);
    z-index: 1000;
    min-width: 150px;
    display: none;
  }

  .language-dropdown.show {
    display: block;
  }

  .language-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .language-option:hover {
    background: var(--sap-surface-hover);
  }

  .language-option.active {
    background: var(--sap-primary);
    color: white;
  }

  .theme-btn {
    background: var(--sap-surface);
    border: 1px solid var(--sap-border);
    color: var(--sap-text);
  padding: 3px 5px;
  font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
  border-radius: 4px;
  box-shadow: var(--sap-shadow);
  }

  .theme-btn:hover {
    background: var(--sap-surface-hover);
    border-color: var(--sap-primary);
  }

  /* Cards */
  .card {
    background: var(--sap-surface);
    border: 1px solid var(--sap-border);
  margin-bottom: 8px;
    box-shadow: var(--sap-shadow);
  border-radius: 4px;
  overflow: hidden;
  }

  .card-header {
  padding: 4px 5px;
    border-bottom: 1px solid var(--sap-border);
    background: var(--sap-surface-hover);
  }

  .card-title {
  font-size: 14px;
    font-weight: 600;
    color: var(--sap-text);
    cursor: pointer;
  }

  .card-content {
  padding: 5px;
  }

  /* Form Elements */
  .form-group {
  margin-bottom: 8px;
  }

  .form-label {
    display: block;
  font-size: 12px;
    font-weight: 500;
    color: var(--sap-text);
  margin-bottom: 4px;
  }

  .form-textarea {
    width: 100%;
    height: 200px;
    border: 1px solid var(--sap-border);
  padding: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
    background: var(--sap-surface);
    color: var(--sap-text);
    resize: vertical;
  }

  .form-textarea:focus {
    outline: none;
    border-color: var(--sap-primary);
    box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2);
  }

  .form-textarea::placeholder {
    color: var(--sap-text-disabled);
  }

  .form-input {
    width: 100%;
    border: 1px solid var(--sap-border);
    padding: 4px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    background: var(--sap-surface);
    color: var(--sap-text);
    border-radius: 4px;
  }

  .form-input:focus {
    outline: none;
    border-color: var(--sap-primary);
    box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.2);
  }

  .form-input.mono {
    font-family: 'Consolas', 'Monaco', monospace;
  }

  /* Buttons */
  .btn {
  padding: 3px 5px;
  font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
  margin-right: 4px;
  border-radius: 4px;
  box-shadow: var(--sap-shadow);
  }

  .btn-primary {
    background: var(--sap-primary);
    color: white;
  }

  .btn-primary:hover {
    background: var(--sap-primary-hover);
  }

  .btn-secondary {
    background: var(--sap-surface);
    border-color: var(--sap-border);
    color: var(--sap-text);
  }

  .btn-secondary:hover {
    background: var(--sap-surface-hover);
  }

  .btn-tertiary {
    background: var(--sap-surface-hover);
    border-color: var(--sap-border);
    color: var(--sap-text);
  }

  .btn-tertiary:hover {
    background: var(--sap-border);
  }

  /* Controls */
  .controls {
    display: flex;
    align-items: center;
    gap: 16px;
  margin-top: 8px;
  }

  .spinner {
    width: 24px;
    height: 24px;
    position: relative;
    display: none;
  }

  .spinner::before,
  .spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: spinner-pulse 1.5s ease-in-out infinite;
  }

  .spinner::before {
    width: 100%;
    height: 100%;
    background: var(--sap-primary);
    opacity: 0.6;
    animation-delay: 0s;
  }

  .spinner::after {
    width: 60%;
    height: 60%;
    background: var(--sap-primary);
    opacity: 0.8;
    top: 20%;
    left: 20%;
    animation-delay: 0.3s;
  }

  @keyframes spinner-pulse {
    0%, 100% {
      transform: scale(0.8);
      opacity: 0.6;
    }
    50% {
      transform: scale(1.2);
      opacity: 1;
    }
  }

  /* Alternative modern spinner with dots */
  .spinner-dots {
    display: none;
    width: 40px;
    height: 20px;
    text-align: center;
  }

  .spinner-dots .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--sap-primary);
    margin: 0 2px;
    animation: spinner-dots 1.4s ease-in-out infinite both;
  }

  .spinner-dots .dot:nth-child(1) { animation-delay: -0.32s; }
  .spinner-dots .dot:nth-child(2) { animation-delay: -0.16s; }
  .spinner-dots .dot:nth-child(3) { animation-delay: 0s; }

  @keyframes spinner-dots {
    0%, 80%, 100% {
      transform: scale(0);
      opacity: 0.5;
    }
    40% {
      transform: scale(1);
      opacity: 1;
    }
  }

  .progress {
    width: 100%;
    height: 4px;
    background: var(--sap-border);
  margin: 8px 0;
  }

  .progress-bar {
    height: 100%;
    background: var(--sap-primary);
    transition: width 0.3s ease;
  }

  .status {
  font-size: 12px;
    color: var(--sap-text-secondary);
  }

  /* Alert */
  .alert {
  padding: 4px 5px;
  margin: 8px 0;
    border: 1px solid;
    display: none;
  }

  .alert-error {
    background: #fef2f2;
    border-color: var(--sap-error);
    color: var(--sap-error);
  }

  /* Table */
  .table-container {
    overflow-x: auto;
  }

  .table {
    width: 100%;
    border-collapse: collapse;
  font-size: 12px;
  }

  .table th {
    background: var(--sap-surface-hover);
  padding: 4px 5px;
    text-align: left;
    font-weight: 600;
    color: var(--sap-text);
    border-bottom: 1px solid var(--sap-border);
  }

  .table td {
  padding: 4px 5px;
    border-bottom: 1px solid var(--sap-border);
  }

  .table tbody tr:nth-child(even) {
    background: var(--sap-surface-hover);
  }

  .table tbody tr:hover {
    background: #e8f4fd;
  }

  .mono {
    font-family: 'Consolas', 'Monaco', monospace;
  }

  /* Dark mode */
  .dark {
  --sap-background: #121212;
  --sap-surface: #1e1e1e;
  --sap-surface-hover: #252525;
  --sap-border: #333333;
  --sap-text: #f5f5f5;
  --sap-text-secondary: #b0b0b0;
  --sap-text-disabled: #666666;
  --sap-primary: #ffb300;
  --sap-primary-hover: #ffca28;
  --sap-secondary: #ffd54f;
  }

  .dark .alert-error {
    background: #2d1b1b;
    border-color: var(--sap-error);
    color: #ff6b6b;
  }

  .dark .table tbody tr:hover {
    background: #2a3a4a;
  }
