/* BBO Standard-Dialog-System (v1.1.0) */

.bbo-dlg-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  animation: bbo-dlg-fadein 0.15s ease;
}
@keyframes bbo-dlg-fadein { from { opacity: 0; } to { opacity: 1; } }

.bbo-dlg {
  background: var(--surface, #fff);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  width: 90%; max-width: 480px;
  max-height: 85vh; overflow-y: auto;
  animation: bbo-dlg-scalein 0.15s ease;
}
@keyframes bbo-dlg-scalein { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.bbo-dlg-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border, #e5e7eb);
  font-weight: 600; font-size: 15px;
}
.bbo-dlg-close {
  background: none; border: none; font-size: 18px; cursor: pointer;
  color: var(--text-muted, #6b7280); padding: 4px 8px; border-radius: 6px;
}
.bbo-dlg-close:hover { background: var(--hover, #f3f4f6); }

.bbo-dlg-body { padding: 16px 20px; }

.bbo-dlg-footer {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 12px 20px; border-top: 1px solid var(--border, #e5e7eb);
}

/* Buttons */
.bbo-dlg-btn {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500;
  border: none; cursor: pointer;
  background: var(--primary, #059669); color: #fff;
  transition: opacity 0.15s;
}
.bbo-dlg-btn:hover { opacity: 0.9; }
.bbo-dlg-btn--outline {
  background: transparent; color: var(--text, #374151);
  border: 1px solid var(--border, #d1d5db);
}
.bbo-dlg-btn--outline:hover { background: var(--hover, #f3f4f6); }
.bbo-dlg-btn--danger { background: #dc2626; }

/* Detail-Tabelle */
.bbo-dlg-table { width: 100%; border-collapse: collapse; }
.bbo-dlg-label {
  font-weight: 600; padding: 6px 12px 6px 0; white-space: nowrap;
  color: var(--text-muted, #6b7280); font-size: 13px; vertical-align: top;
}
.bbo-dlg-value { padding: 6px 0; font-size: 13px; }

/* Formular-Felder */
.bbo-dlg-form { display: flex; flex-direction: column; gap: 12px; }
.bbo-dlg-field { display: flex; flex-direction: column; gap: 4px; }
.bbo-dlg-field-label { font-size: 12px; font-weight: 600; color: var(--text-muted, #6b7280); }
.bbo-dlg-input {
  padding: 8px 12px; border: 1px solid var(--border, #d1d5db);
  border-radius: 8px; font-size: 13px; font-family: inherit;
  background: var(--surface, #fff); color: var(--text, #374151);
}
.bbo-dlg-input:focus { outline: none; border-color: var(--primary, #059669); box-shadow: 0 0 0 2px rgba(5,150,105,0.15); }
.bbo-dlg-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }

/* Toast */
.bbo-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 10px 24px; border-radius: 8px; font-size: 13px; font-weight: 500;
  z-index: 99999; opacity: 0; transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.bbo-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bbo-toast--success { background: #059669; color: #fff; }
.bbo-toast--error { background: #dc2626; color: #fff; }
.bbo-toast--warning { background: #f59e0b; color: #1f2937; }
