/*
 * ============================================================================
 * wdsb_gallery_modal.css
 * ============================================================================
 * Version: 1.3.2
 * Autor: AI Assistent "Henry" für WDSB / SaarlandToday
 * Datum: 2025-08-22
 * ============================================================================
 */

.stg-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
}

.stg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.stg-modal__card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.stg-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.stg-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.stg-modal__close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.stg-modal__body {
  padding: 16px 20px;
}

.stg-modal__message {
  margin: 0 0 12px 0;
}

.stg-modal__footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid #eee;
}

.stg-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.stg-btn--primary {
  background: #2563eb;
  color: #fff;
}
.stg-btn--primary:hover { background: #1d4ed8; }

.stg-btn--ghost {
  background: #f3f4f6;
  color: #111827;
}
.stg-btn--ghost:hover { background: #e5e7eb; }

/* Form */
.stg-user-form .stg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.stg-user-form label {
  font-size: 12px;
  color: #374151;
}
.stg-user-form input,
.stg-user-form textarea {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.stg-user-form input:focus,
.stg-user-form textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147,197,253,0.35);
}

.stg-note {
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  color: #111827;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

/* Progress */
.stg-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stg-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: stg-spin 0.8s linear infinite;
}
@keyframes stg-spin {
  to { transform: rotate(360deg); }
}
