/* Block Debugger Styles */
.block-debugger-wrapper {
  position: relative;
  border: 2px dashed #ff6b6b;
  margin: 2px;
  background: rgba(255, 107, 107, 0.05);
}

.block-debugger-wrapper:hover {
  border-color: #ff4757;
  background: rgba(255, 107, 107, 0.1);
  cursor: pointer;
}

.block-debugger-wrapper::before {
  content: attr(data-block-name);
  position: absolute;
  top: -2px;
  left: -2px;
  background: #ff6b6b;
  color: white;
  padding: 2px 6px;
  font-size: 10px;
  font-family: monospace;
  font-weight: bold;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.block-debugger-wrapper:hover::before {
  background: #ff4757;
}

.block-debugger-content {
  position: relative;
}

.block-debugger-info {
  position: fixed;
  top: 20px;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px;
  border-radius: 4px;
  z-index: 999999;
  min-width: 300px;
  max-width: 500px;
  font-size: 12px;
  font-family: monospace;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: default;
  pointer-events: auto;
}

.block-debugger-info.pinned {
  background: rgba(0, 50, 100, 0.95);
  border: 2px solid #2ed573;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.block-debugger-info.pinned::before {
  content: attr(data-pinned-text);
  display: block;
  background: #2ed573;
  color: white;
  margin: -10px -10px 10px -10px;
  padding: 5px 10px;
  border-radius: 4px 4px 0 0;
  font-size: 10px;
  font-weight: bold;
}

.block-debug-info h4 {
  margin: 0 0 10px 0;
  color: #ff6b6b;
  font-size: 14px;
}

.block-debug-details {
  margin: 0;
  padding: 0;
}

.block-debug-details h4 {
  margin: 0 0 10px 0;
  color: #ff6b6b;
  font-size: 14px;
}

.block-debug-details table {
  width: 100%;
  border-collapse: collapse;
}

.block-debug-details table td {
  padding: 4px 8px;
  border-bottom: 1px solid #333;
  vertical-align: top;
}

.block-debug-details table td:first-child {
  width: 40%;
  color: #ffa502;
}

.block-debug-details table td:last-child {
  word-break: break-all;
}

.block-debugger-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10001;
  font-family: monospace;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.block-debugger-toggle:hover {
  background: #ff4757;
}

.block-debugger-toggle.active {
  background: #2ed573;
}

.block-debugger-toggle.active:hover {
  background: #26d0ce;
}

.block-debugger-disabled .block-debugger-wrapper {
  border: none !important;
  margin: 0 !important;
  background: transparent !important;
}

.block-debugger-disabled .block-debugger-wrapper::before {
  display: none !important;
}

.block-debugger-disabled .block-debugger-info {
  display: none !important;
}

@media (max-width: 768px) {
  .block-debugger-info {
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    font-size: 11px;
  }

  .block-debugger-toggle {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .block-debugger-wrapper::before {
    font-size: 9px;
    max-width: 150px;
  }
}

.block-debugger-info {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.block-debugger-info.show {
  opacity: 1;
  transform: translateY(0);
}
