/* Diff Navigation Widget Styles */
.sage-ai-diff-navigation-widget {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: auto;
  transition: bottom 0.2s ease;
}

.sage-ai-diff-navigation-widget:hover {
  bottom: 22px;
}

/* Ensure the notebook container has relative positioning for absolute child positioning */
.jp-Notebook {
  position: relative;
}

.sage-ai-diff-navigation-floating-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
  background-color: var(--jp-layout-color1);
  border: 1px solid var(--jp-border-color1);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  font-family: var(--jp-ui-font-family);
}

/* Navigation Section */
.sage-ai-diff-navigation-navigation-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sage-ai-diff-navigation-nav-button {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  color: var(--jp-ui-font-color0);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.2s ease;
  font-family: var(--jp-ui-font-family);
}

.sage-ai-diff-navigation-nav-button:hover:not(:disabled) {
  background-color: var(--jp-layout-color2);
}

.sage-ai-diff-navigation-nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--jp-ui-font-color3);
}

.sage-ai-diff-navigation-counter-display {
  font-size: var(--jp-ui-font-size1);
  font-weight: 500;
  color: var(--jp-ui-font-color0);
  min-width: 40px;
  text-align: center;
  font-family: var(--jp-ui-font-family);
}

/* Button Section */
.sage-ai-diff-navigation-button-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sage-ai-diff-navigation-action-button {
  padding: 4px 6px;
  border-radius: 6px !important;
  font-size: var(--jp-ui-font-size1);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--jp-ui-font-family);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sage-ai-diff-navigation-action-button span {
  white-space: nowrap;
}

/* Reject Button (Outlined) */
.sage-ai-diff-navigation-reject-button {
  background-color: var(--jp-layout-color3);
  color: var(--jp-ui-font-color0);
}

.sage-ai-diff-navigation-reject-button:hover {
  background-color: var(--jp-layout-color4);
}

/* Approve Button (Primary) */
.sage-ai-diff-navigation-approve-button {
  background-color: var(--jp-layout-color3);
  color: var(--jp-ui-font-color0);
}

.sage-ai-diff-navigation-approve-button:hover {
  background-color: var(--jp-layout-color4);
}

/* Accept & Run All Button (Enhanced Primary) */
.sage-ai-diff-navigation-accept-run-button {
  background-color: var(--jp-inverse-layout-color2);
  color: var(--jp-ui-inverse-font-color0);
}

.sage-ai-diff-navigation-accept-run-button:hover {
  background-color: var(--jp-inverse-layout-color0);
}

/* Hidden state */
.sage-ai-diff-navigation-widget.hidden {
  display: none;
}

/* Dark theme adjustments */
[data-jp-theme-light="false"] .sage-ai-diff-navigation-floating-content {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

/* Light theme specific overrides if needed */
[data-jp-theme-light="true"] .sage-ai-diff-navigation-floating-content {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Icon styling */
.sage-ai-diff-navigation-nav-icon {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.sage-ai-diff-navigation-action-icon {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

/* Make icons lighter on hover */
.sage-ai-diff-navigation-nav-button:hover:not(:disabled) .sage-ai-diff-navigation-nav-icon {
  opacity: 1;
}

.sage-ai-diff-navigation-action-button:hover .sage-ai-diff-navigation-action-icon {
  opacity: 1;
}

/* Icon color adjustments for different button states */
.sage-ai-diff-navigation-nav-button:disabled .sage-ai-diff-navigation-nav-icon {
  opacity: 0.3;
}

/* Specific button styling (if needed for customization) */
.sage-ai-diff-navigation-prev-button {
  /* Previous button specific styles can be added here */
}

.sage-ai-diff-navigation-next-button {
  /* Next button specific styles can be added here */
}
