.wpinanie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpinanie-modal {
  background: white;
  border-radius: 8px;
  padding: 20px;
  width: 600px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wpinanie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.wpinanie-modal-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.wpinanie-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.wpinanie-modal-close:hover {
  color: #000;
}

.wpinanie-textarea {
  width: 100%;
  height: 300px;
  font-family: monospace;
  font-size: 13px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  box-sizing: border-box;
}

.wpinanie-textarea:focus {
  outline: none;
  border-color: #007bff;
}

.wpinanie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.wpinanie-btn {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid #ccc;
}

.wpinanie-btn-primary {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.wpinanie-btn-primary:hover {
  background: #0056b3;
}

.wpinanie-btn-secondary {
  background: #f8f9fa;
}

.wpinanie-btn-secondary:hover {
  background: #e9ecef;
}

.wpinanie-ssp-header {
  cursor: pointer;
  user-select: none;
}

.wpinanie-ssp-header:hover {
  text-decoration: underline;
}

.wpinanie-ssp-has-data {
  color: #1b6d2f !important;
  font-weight: 800;
  font-size: 1.05em;
  text-shadow: 0 0 1px rgba(40, 167, 69, 0.3);
}

.wpinanie-status {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
}

.wpinanie-validation-errors {
  display: none;
  font-size: 11px;
  color: #dc3545;
  margin-top: 4px;
  padding: 6px 8px;
  background: rgba(220, 53, 69, 0.06);
  border-radius: 3px;
  max-height: 100px;
  overflow-y: auto;
}

.wpinanie-validation-errors code {
  background: rgba(220, 53, 69, 0.1);
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 11px;
}

.wpinanie-btn:disabled,
.wpinanie-btn.wpinanie-disabled {
  background: #ccc !important;
  color: #888 !important;
  border-color: #bbb !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

.wpinanie-btn-debug {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

.wpinanie-btn-debug:hover {
  background: #545b62;
}

.wpinanie-debug-content {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 10px;
}

.wpinanie-debug-summary {
  background: #e9ecef;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 13px;
}

.wpinanie-debug-summary strong {
  color: #28a745;
}

.wpinanie-debug-summary .error {
  color: #dc3545;
}

.wpinanie-format-hint {
  font-size: 11px;
  color: #6c757d;
  margin-bottom: 5px;
  font-style: italic;
}

.wpinanie-debug-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #007bff;
  color: white;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.2s, background 0.2s;
}

.wpinanie-debug-fab:hover {
  background: #0056b3;
  transform: scale(1.1);
}

.wpinanie-ssp-container {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wpinanie-play-btn {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 3px;
  width: 18px;
  height: 18px;
  font-size: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
}

.wpinanie-play-btn:hover {
  background: #218838;
}

.wpinanie-play-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.wpinanie-ssp-disabled {
  opacity: 0.45;
  cursor: default;
}

.wpinanie-highlight-row {
  background: rgba(255, 193, 7, 0.15) !important;
}

.wpinanie-highlight-cell {
  background: rgba(0, 123, 255, 0.15) !important;
}

.wpinanie-panel-section {
  margin-bottom: 15px;
}

.wpinanie-panel-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.wpinanie-panel-json {
  height: 120px;
  font-size: 12px;
}

.wpinanie-panel-json-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.wpinanie-panel-ssp-list {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.wpinanie-panel-ssp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}

.wpinanie-panel-ssp-row:last-child {
  border-bottom: none;
}

.wpinanie-panel-ssp-name {
  font-weight: 600;
  font-size: 13px;
}

.wpinanie-panel-ssp-count {
  font-size: 12px;
  color: #28a745;
  font-weight: 600;
}

.wpinanie-panel-empty {
  padding: 15px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.wpinanie-btn-run {
  background: #28a745;
  color: white;
  border-color: #28a745;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 24px;
}

.wpinanie-btn-run:hover {
  background: #218838;
}
