/* Button and Icon Size Fixes */

/* Global Button Size Standardization */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 36px;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

/* Small Button Size */
.btn-sm {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 0.8125rem;
}

/* Large Button Size */
.btn-lg {
  min-height: 44px;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.9375rem;
}

/* Icon Size Standardization */
.btn-icon,
.nav-icon,
svg.w-4,
svg.h-4,
button svg:not(.title-icon) {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}

.btn-icon-sm,
.btn-sm svg {
  width: 14px !important;
  height: 14px !important;
}

/* Fix oversized SVG icons in buttons */
.card-header button svg,
.editor-actions button svg,
.save-section-btn svg,
.remove-item-btn svg {
  width: 16px !important;
  height: 16px !important;
}

/* Fix oversized icons in the navigation */
.nav-item svg,
.sidebar-tab svg {
  width: 16px !important;
  height: 16px !important;
}

/* Add spacing to buttons with icons */
.btn svg + span,
span + svg {
  margin-left: 4px;
}

/* Remove/Delete Button Sizing */
.remove-item-btn {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 0.8125rem;
}

/* Editor Header Buttons */
.editor-actions .btn {
  min-height: 36px;
  padding: 6px 12px;
}

#save-resume-title-btn {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 0.8125rem;
}

/* Section Save Buttons */
.save-section-btn {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 0.8125rem;
}

/* Dropdown and Toggle Buttons */
.dropdown-toggle {
  padding-right: var(--spacing-md);
}

/* Button Hover Effects */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Preview Section Buttons */
.preview-actions .btn {
  min-height: 36px;
  font-size: 0.875rem;
}

/* Hide Style Controller Action Buttons */
.style-controls-panel .action-buttons {
  display: none !important;
}

/* Alternative: Hide individual action buttons */
#save-styles-btn,
#reset-styles-btn,
#export-styles-btn,
#import-styles-btn {
  display: none !important;
}

/* Hide the entire Actions section if needed */
.style-section h3:contains("Actions") {
  display: none !important;
}

.style-section:has(h3:contains("Actions")) {
  display: none !important;
}

/* Fallback: Hide Actions section by position (last style-section) */
.style-controls-panel .style-section:last-child {
  display: none !important;
}

/* Hide specific style controls */
#heading-scale-slider,
#font-weight-select,
#border-style-select,
#border-width-slider,
label[for="heading-font-size"],
label[for="font-weight-select"],
label[for="border-style-select"],
label[for="border-width-slider"] {
  display: none !important;
}

/* Hide parent form-groups of hidden controls */
#heading-scale-slider:parent,
#font-weight-select:parent,
#border-style-select:parent,
#border-width-slider:parent {
  display: none !important;
}
