  /* SAP Fiori Design System */
  :root {
    --sap-primary: #0070f3;
    --sap-primary-hover: #0056d6;
    --sap-secondary: #6a6d70;
    --sap-success: #107c41;
    --sap-warning: #ff8f00;
    --sap-error: #d13438;
    --sap-info: #0070f3;
    --sap-background: #f5f6f7;
    --sap-surface: #ffffff;
    --sap-surface-hover: #f5f6f7;
    --sap-border: #d1d5db;
    --sap-text: #32363a;
    --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: 14px;
  }

  .container {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
  }

  /* Header */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--sap-border);
  }

  .header-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--sap-text);
    margin-bottom: 4px;
  }

  .header-subtitle {
    font-size: 14px;
    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: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .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: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .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: 20px;
    box-shadow: var(--sap-shadow);
  }

  .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--sap-border);
    background: var(--sap-surface-hover);
  }

  .card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--sap-text);
    cursor: pointer;
  }

  .card-content {
    padding: 20px;
  }

  /* Form Elements */
  .form-group {
    margin-bottom: 16px;
  }

  .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--sap-text);
    margin-bottom: 8px;
  }

  .form-textarea {
    width: 100%;
    height: 200px;
    border: 1px solid var(--sap-border);
    padding: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    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);
  }

  /* Buttons */
  .btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
  }

  .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: 16px;
  }

  .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: 16px 0;
  }

  .progress-bar {
    height: 100%;
    background: var(--sap-primary);
    transition: width 0.3s ease;
  }

  .status {
    font-size: 13px;
    color: var(--sap-text-secondary);
  }

  /* Alert */
  .alert {
    padding: 12px 16px;
    margin: 16px 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: 13px;
  }

  .table th {
    background: var(--sap-surface-hover);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--sap-text);
    border-bottom: 1px solid var(--sap-border);
  }

  .table td {
    padding: 12px 16px;
    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: #1a1a1a;
    --sap-surface: #2d2d2d;
    --sap-surface-hover: #3a3a3a;
    --sap-border: #404040;
    --sap-text: #ffffff;
    --sap-text-secondary: #b0b0b0;
    --sap-text-disabled: #666666;
  }

  .dark .alert-error {
    background: #2d1b1b;
    border-color: var(--sap-error);
    color: #ff6b6b;
  }

  .dark .table tbody tr:hover {
    background: #2a3a4a;
  }
