.project-selector {
  position: relative;
  flex-shrink: 0;
}

.project-selector-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  height: 22px;
  background: transparent;
  border: none;
  color: var(--vscode-statusBar-foreground);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.project-selector-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.project-selector-trigger:focus {
  outline: none;
}

.project-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

.project-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  flex-shrink: 0;
  opacity: 0.6;
}

.project-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  min-width: 220px;
  margin-bottom: 4px;
  background-color: var(--vscode-dropdown-background);
  border: 1px solid var(--vscode-dropdown-border);
  border-radius: 4px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  overflow: hidden;
}

.project-dropdown-header {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vscode-descriptionForeground);
  border-bottom: 1px solid var(--vscode-dropdown-border);
}

.project-list {
  max-height: 200px;
  overflow-y: auto;
}

.project-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-icon {
  flex-shrink: 0;
  color: var(--vscode-terminal-ansiGreen);
}

.project-empty {
  padding: 16px 12px;
  text-align: center;
  color: var(--vscode-descriptionForeground);
  font-size: 12px;
}

.project-dropdown-footer {
  padding: 8px;
  border-top: 1px solid var(--vscode-dropdown-border);
}

.create-project-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 12px;
  background-color: var(--vscode-button-secondaryBackground);
  color: var(--vscode-button-secondaryForeground);
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.create-project-btn:hover {
  background-color: var(--vscode-button-secondaryHoverBackground);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background-color: var(--vscode-editor-background);
  border: 1px solid var(--vscode-widget-border);
  border-radius: 6px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--vscode-widget-border);
}

.modal-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--vscode-foreground);
}

.modal-close {
  background: transparent;
  border: none;
  padding: 4px;
  color: var(--vscode-foreground);
  cursor: pointer;
  opacity: 0.7;
  border-radius: 3px;
}

.modal-close:hover {
  opacity: 1;
  background-color: var(--vscode-list-hoverBackground);
}

.modal-body {
  padding: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--vscode-foreground);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 8px 10px;
  background-color: var(--vscode-input-background);
  border: 1px solid var(--vscode-input-border);
  border-radius: 4px;
  color: var(--vscode-input-foreground);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--vscode-focusBorder);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--vscode-input-placeholderForeground);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--vscode-widget-border);
}

.btn-primary {
  padding: 6px 14px;
  background-color: var(--vscode-button-background);
  color: var(--vscode-button-foreground);
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--vscode-button-hoverBackground);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 6px 14px;
  background-color: var(--vscode-button-secondaryBackground);
  color: var(--vscode-button-secondaryForeground);
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--vscode-button-secondaryHoverBackground);
}

.btn-danger {
  padding: 6px 14px;
  background-color: var(--vscode-inputValidation-errorBackground, #5a1d1d);
  color: var(--vscode-inputValidation-errorForeground, #f48771);
  border: 1px solid var(--vscode-inputValidation-errorBorder, #be1100);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-danger:hover:not(:disabled) {
  background-color: #6b2222;
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Project item with delete button */
.project-item {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
}

.project-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--vscode-dropdown-foreground);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.project-item:hover {
  background-color: var(--vscode-list-hoverBackground);
}

.project-item.active {
  background-color: var(--vscode-list-activeSelectionBackground);
}

.project-item.active .project-item-content {
  color: var(--vscode-list-activeSelectionForeground);
}

.project-item-delete {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: transparent;
  border: none;
  color: var(--vscode-descriptionForeground);
  cursor: pointer;
  opacity: 0.6;
}

.project-item:hover .project-item-delete {
  display: flex;
}

.project-item-delete:hover {
  opacity: 1;
  color: var(--vscode-errorForeground, #f48771);
}

/* Delete modal styles */
.modal-danger .modal-header h3 {
  color: var(--vscode-errorForeground, #f48771);
}

.delete-warning {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--vscode-foreground);
  line-height: 1.5;
}

.delete-list {
  margin: 0 0 16px 0;
  padding-left: 20px;
  font-size: 12px;
  color: var(--vscode-descriptionForeground);
  line-height: 1.6;
}

.delete-list li {
  margin: 4px 0;
}

.delete-confirm-text {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: var(--vscode-foreground);
}

/* Folder picker styles */
.folder-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.folder-path-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background-color: var(--vscode-input-background);
  border: 1px solid var(--vscode-input-border);
  border-radius: 4px;
}

.folder-path {
  flex: 1;
  font-size: 12px;
  color: var(--vscode-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--vscode-editor-font-family, monospace);
}

.folder-default-info {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background-color: var(--vscode-input-background);
  border: 1px solid var(--vscode-input-border);
  border-radius: 4px;
}

.default-label {
  font-size: 12px;
  color: var(--vscode-descriptionForeground);
  font-style: italic;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: transparent;
  border: none;
  color: var(--vscode-descriptionForeground);
  cursor: pointer;
  border-radius: 3px;
}

.btn-icon:hover {
  color: var(--vscode-foreground);
  background-color: var(--vscode-list-hoverBackground);
}

.btn-small {
  padding: 4px 10px;
  font-size: 11px;
}

.btn-secondary.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
}

.form-hint {
  margin: 6px 0 0 0;
  font-size: 11px;
  color: var(--vscode-descriptionForeground);
  line-height: 1.4;
}
