/* Icon Size Standardization and Button Icon Alignment */

/* Global icon size standardization */
svg.w-4, 
svg.h-4, 
svg.w-5, 
svg.h-5, 
.card-header svg,
.btn svg:not(.title-icon),
.nav-icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}

/* Small icons */
svg.w-3,
svg.h-3,
.btn-sm svg,
.btn-icon-sm {
  width: 14px !important;
  height: 14px !important;
}

/* Medium icons in headers and navigation */
.card-title svg,
.nav-item svg,
.sidebar-tab svg {
  width: 18px !important;
  height: 18px !important;
}

/* Larger icons should be reduced */
svg.w-6,
svg.h-6,
svg.w-8,
svg.h-8 {
  width: 20px !important;
  height: 20px !important;
}

/* Icon alignment in buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Prevent icon shrinking */
.btn svg {
  flex-shrink: 0;
}

/* Fix alignment for editor title section */
.editor-title-section {
  display: flex;
  align-items: center;
}

.editor-main-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Icon color enhancements */
.text-primary svg {
  color: var(--primary-green);
}

.text-secondary svg {
  color: var(--text-secondary);
}

.text-danger svg,
.btn-danger svg {
  color: var(--danger);
}

/* Icon container sizing */
.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Icon spacing in headings */
h1 svg, h2 svg, h3 svg {
  margin-right: 6px;
}

/* Reduce button icon padding */
.btn svg {
  margin: 0 !important;
}

/* Fix card header button icon alignment */
.card-header button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
}

/* Fix oversized icons in specific locations */
.editor-main-title .title-icon {
  width: 20px !important;
  height: 20px !important;
}

.editor-actions .btn-icon {
  width: 16px !important;
  height: 16px !important;
}

/* Add, remove, edit icons standardization */
.add-icon,
.remove-icon,
.edit-icon {
  width: 16px !important;
  height: 16px !important;
}

/* Fix specific oversized buttons in the UI */
.remove-item-btn,
.save-section-btn,
#save-resume-title-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  min-height: 32px;
  font-size: 0.8125rem;
}

/* Ensure buttons with icons have proper text alignment */
.btn svg + span {
  vertical-align: middle;
}

/* Prevent icon distortion */
svg {
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Specific overrides for problem areas */
.experience-card .card-header button svg,
.education-card .card-header button svg,
.project-card .card-header button svg,
.involvement-card .card-header button svg {
  width: 16px !important;
  height: 16px !important;
}

/* Fix for date picker icon sizes */
.date-picker-icon {
  width: 16px !important;
  height: 16px !important;
}

/* Fix for preview section buttons */
#preview-section-content .btn svg {
  width: 16px !important;
  height: 16px !important;
}

/* Fix for sidebar icon alignment */
.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Fix for action button sizes in cards */
.action-buttons .btn {
  padding: 6px 10px;
  min-height: 32px;
}

/* Fix for edit buttons */
.edit-btn svg,
.delete-btn svg {
  width: 14px !important;
  height: 14px !important;
}
