/* Error Guide Dialog Styles */
.error-guide-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.error-guide-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.error-guide-modal {
  background: #2a2a2a;
  border: 1px solid #f44336;
  border-radius: 8px;
  width: 90%;
  max-width: 550px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(-10px);
  transition: transform 0.2s;
  box-shadow: 0 4px 24px rgba(244, 67, 54, 0.3);
}

.error-guide-modal-overlay.active .error-guide-modal {
  transform: translateY(0);
}

.error-guide-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #404040;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #3a2a2a 0%, #2a2a2a 100%);
  border-radius: 8px 8px 0 0;
}

.error-guide-modal-icon {
  font-size: 24px;
  line-height: 1;
}

.error-guide-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #f44336;
  flex: 1;
}

.error-guide-modal-close {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s;
}

.error-guide-modal-close:hover {
  background: #3a3a3a;
  color: #fff;
}

.error-guide-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.error-guide-message {
  font-size: 14px;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #1a1a1a;
  border-radius: 6px;
  border-left: 3px solid #f44336;
}

.error-guide-section {
  margin-bottom: 16px;
}

.error-guide-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.error-guide-cause {
  font-size: 13px;
  color: #b0b0b0;
  padding: 10px 14px;
  background: #1e1e1e;
  border-radius: 4px;
  border: 1px solid #333;
}

.error-guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.error-guide-steps li {
  font-size: 13px;
  color: #e0e0e0;
  padding: 10px 14px 10px 44px;
  background: #1e1e1e;
  border-radius: 4px;
  border: 1px solid #333;
  margin-bottom: 8px;
  position: relative;
  line-height: 1.5;
  counter-increment: step-counter;
}

.error-guide-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: #00bcd4;
  color: #1a1a1a;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-guide-steps li:hover {
  background: #252525;
  border-color: #444;
}

.error-guide-detail {
  font-size: 11px;
  color: #888;
  padding: 10px 14px;
  background: #1a1a1a;
  border-radius: 4px;
  border: 1px solid #333;
  font-family: "IBM Plex Mono", monospace;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 120px;
  overflow-y: auto;
  margin-top: 12px;
}

.error-guide-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #404040;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.error-guide-btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #404040;
  background: #2a2a2a;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.error-guide-btn:hover {
  background: #3a3a3a;
  border-color: #00bcd4;
}

.error-guide-btn-primary {
  background: #00bcd4;
  border-color: #00bcd4;
  color: #1a1a1a;
  font-weight: 500;
}

.error-guide-btn-primary:hover {
  background: #00e5ff;
  border-color: #00e5ff;
}

/* Scrollbar styling for the modal body */
.error-guide-modal-body::-webkit-scrollbar {
  width: 6px;
}

.error-guide-modal-body::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.error-guide-modal-body::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.error-guide-modal-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Detail scrollbar */
.error-guide-detail::-webkit-scrollbar {
  width: 4px;
}

.error-guide-detail::-webkit-scrollbar-track {
  background: #111;
}

.error-guide-detail::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}
