/* ========================================
 * CCW Install Modal Styles
 * ======================================== */
.ccw-install-modal {
  padding: 0.5rem 0;
}

.ccw-install-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ccw-install-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ccw-install-option:hover {
  background: hsl(var(--hover));
  border-color: hsl(var(--primary) / 0.3);
}

.ccw-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.ccw-option-icon.global {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.ccw-option-icon.path {
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
}

.ccw-option-info {
  flex: 1;
}

.ccw-option-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.ccw-option-desc {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Path Input Section */
.ccw-path-input-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.ccw-path-input-group {
  margin-bottom: 1rem;
}

.ccw-path-input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.ccw-path-input-group .cli-textarea {
  width: 100%;
  min-height: auto;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
}

.ccw-install-action {
  display: flex;
  justify-content: flex-end;
}

/* Danger Button (icon style - subtle) */
.btn-icon.btn-danger {
  color: hsl(var(--muted-foreground));
  background: transparent;
}

.btn-icon.btn-danger:hover {
  color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.1);
}

/* ========================================
 * Generic Modal Styles
 * ======================================== */
.generic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.generic-modal-overlay.active {
  opacity: 1;
}

.generic-modal {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.25);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.generic-modal-overlay.active .generic-modal {
  transform: scale(1);
}

.generic-modal.large {
  max-width: 800px;
}

.generic-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.3);
  border-radius: 0.75rem 0.75rem 0 0;
}

.generic-modal-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}

.generic-modal-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}

.generic-modal-close:hover {
  background: hsl(var(--hover));
  color: hsl(var(--foreground));
}

.generic-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.generic-modal.lg {
  max-width: 640px;
}

/* ========================================
 * Modal Aliases (for backward compatibility)
 * ======================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.modal-container {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.25);
  transform: scale(1);
  transition: transform 0.2s ease;
}

.modal-container.large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.3);
  border-radius: 0.75rem 0.75rem 0 0;
}

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(var(--primary-light));
  border-radius: 0.5rem;
  color: hsl(var(--primary));
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

