/* Commit dialog styles */

/* Commit dialog overlay */
.commit-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Commit dialog */
.commit-dialog {
  background: var(--jp-layout-color1);
  border: 1px solid var(--jp-border-color1);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  min-width: 440px;
  max-width: 600px;
  min-height: 260px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 0;
}

.commit-dialog-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--jp-border-color2);
  background: var(--jp-layout-color2);
}

.commit-dialog-header h3 {
  margin: 0;
  font-size: var(--jp-ui-font-size2);
  font-weight: 600;
  color: var(--jp-ui-font-color1);
}

.commit-dialog-content {
  padding: 20px;
}

.commit-dialog-content label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--jp-ui-font-color1);
  font-size: var(--jp-ui-font-size1);
}

.commit-dialog-content textarea {
  width: 100%;
  min-height: 80px;
  padding: 8px 12px;
  border: 1px solid var(--jp-border-color1);
  border-radius: 3px;
  background: var(--jp-layout-color1);
  color: var(--jp-ui-font-color1);
  font-family: var(--jp-ui-font-family);
  font-size: var(--jp-ui-font-size1);
  resize: vertical;
  box-sizing: border-box;
}

.commit-dialog-content textarea:focus {
  outline: none;
  border-color: var(--jp-brand-color1);
  box-shadow: 0 0 0 1px var(--jp-brand-color1);
}

.commit-dialog-actions {
  padding: 20px 20px 24px 20px;
  border-top: 1px solid var(--jp-border-color2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: var(--jp-layout-color2);
  margin-top: auto;
}

.commit-dialog-btn {
  padding: 6px 16px;
  border: 1px solid var(--jp-border-color1);
  border-radius: 3px;
  font-size: var(--jp-ui-font-size1);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.commit-dialog-btn-cancel {
  background: var(--jp-layout-color1);
  color: var(--jp-ui-font-color1);
}

.commit-dialog-btn-cancel:hover {
  background: var(--jp-layout-color2);
}

.commit-dialog-btn-confirm {
  background: var(--jp-brand-color1);
  color: var(--jp-ui-inverse-font-color1);
  border-color: var(--jp-brand-color1);
}

.commit-dialog-btn-confirm:hover {
  background: var(--jp-brand-color0);
  border-color: var(--jp-brand-color0);
}

.commit-dialog-btn:disabled {
  background: var(--jp-layout-color3);
  color: var(--jp-ui-font-color2);
  border-color: var(--jp-border-color2);
  cursor: not-allowed;
}

/* Widget container */
.git-lock-sign-commit-widget {
  display: inline-block;
}
