/* ==========================================================================
   ResumeCrafted - UI Components & Controls
   ========================================================================== */

/* Top Header Bar */
.top-bar {
  height: var(--header-height);
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 50;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-spark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-spark {
  background: linear-gradient(135deg, var(--accent-spark) 0%, #e11d48 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--accent-spark-glow);
}
.btn-spark:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-color-strong);
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.btn-icon:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.btn-sm {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-score {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.badge-score:hover {
  background: rgba(56, 189, 248, 0.25);
  transform: scale(1.03);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--bg-app-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop-bg);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  transform: translateY(10px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.close-btn:hover {
  color: var(--text-main);
}

.premium-modal .modal-content {
  position: relative !important;
}

.premium-modal .close-btn {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  z-index: 20 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bg-surface-hover, rgba(255, 255, 255, 0.08)) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  color: var(--text-muted) !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
}

.premium-modal .close-btn:hover {
  background: var(--bg-surface-active, rgba(255, 255, 255, 0.2)) !important;
  color: var(--text-main) !important;
}

/* Theme Toggle Button Specific Styles */
.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}
.btn-theme-toggle:hover {
  transform: translateY(-1px);
}
.btn-theme-toggle .theme-toggle-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Profile Card Dropdown Styling */
.user-chip-btn:hover {
  background: var(--bg-surface-active) !important;
  border-color: var(--border-color-strong) !important;
}

.profile-card-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 200;
  animation: fadeInDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-spark));
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.profile-card-info {
  overflow: hidden;
}

.profile-card-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.85rem 0;
}

.profile-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profile-card-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.profile-card-item:hover {
  background: var(--bg-surface-hover) !important;
  color: var(--primary);
}

.profile-card-item-danger {
  color: var(--accent-spark);
  background: transparent !important;
  border: 1px solid transparent !important;
}

.profile-card-item-danger:hover {
  background: rgba(244, 63, 94, 0.08) !important;
  color: var(--accent-spark);
}

/* Theme Submenu Wrapper & Flyout Card */
.profile-card-theme-wrapper {
  position: relative;
  width: 100%;
}

.profile-card-theme-wrapper:hover .theme-flyout-card,
.profile-card-theme-wrapper:focus-within .theme-flyout-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.theme-flyout-card {
  position: absolute;
  top: 0;
  right: calc(100% + 8px);
  width: 170px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px) scale(0.95);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.theme-option-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  width: 100%;
  transition: all var(--transition-fast);
}

.theme-option-item:hover {
  background: var(--bg-surface-hover);
  color: var(--primary);
  border-color: var(--border-color);
}

.theme-option-item.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.theme-check-icon {
  opacity: 0;
  color: var(--primary);
  margin-left: auto;
  transition: opacity var(--transition-fast);
}

.theme-option-item.active .theme-check-icon {
  opacity: 1;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ==========================================================================
   Resume Generating & Downloading Modal Animation
   ========================================================================== */
.export-progress-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.export-progress-card {
  max-width: 400px;
  width: 90%;
  padding: 2.25rem 1.75rem;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.export-spinner-ring {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-svg {
  animation: rotate 2s linear infinite;
  width: 100%;
  height: 100%;
}

.spinner-svg .path {
  stroke: var(--primary);
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

.export-spark-icon {
  position: absolute;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.5s ease-in-out infinite;
}

.export-progress-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.export-progress-step {
  font-size: 0.8125rem;
  color: var(--text-muted);
  min-height: 20px;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.export-progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-surface-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
}

.export-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #f43f5e);
  border-radius: var(--radius-full);
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.export-progress-footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ==========================================================================
   Full Template Live Preview Modal Component
   ========================================================================== */
.template-preview-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.template-preview-card {
  max-width: 820px;
  width: 92%;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.template-preview-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--bg-surface-hover);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.template-preview-viewport {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}

.template-preview-paper {
  width: 100% !important;
  min-height: 600px !important;
  transform: none !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* ==========================================================================
   AI Workflow & Modal Dialog Styling System
   Matches UI Theme (Dark & Light) and export PDF cards
   ========================================================================== */

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--modal-backdrop-bg, rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1.25rem;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Card Surface */
.modal-card {
  background: var(--bg-surface, #1e293b);
  color: var(--text-main, #f8fafc);
  border: 1px solid var(--border-color-strong, rgba(255, 255, 255, 0.15));
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-xl, 0 25px 60px rgba(0, 0, 0, 0.45));
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-lg {
  max-width: 640px !important;
  width: 90% !important;
}

/* Modal Header, Body, Footer */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface-hover, #334155);
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main, #f8fafc);
}

.close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.35rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.close-modal:hover {
  color: var(--accent-spark, #f43f5e);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem 1.25rem;
  background: var(--bg-surface, #1e293b);
  color: var(--text-main, #f8fafc);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface-hover, #334155);
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

/* Import Dropzone File Card */
.file-dropzone {
  border: 2px dashed var(--primary, #38bdf8);
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: var(--bg-surface-hover, #334155);
  color: var(--text-main, #f8fafc);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.file-dropzone:hover,
.file-dropzone.drag-over {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-spark, #f43f5e);
  transform: scale(1.01);
}

/* Universal AI Glowing Dual-Color Rotating Spinner Animation */
.ai-spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--primary, #38bdf8);
  border-right-color: var(--accent-spark, #f43f5e);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  box-sizing: border-box;
}

.ai-spinner-sm {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--primary, #38bdf8);
  border-right-color: var(--accent-spark, #f43f5e);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
}

.ai-spinner-xs {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--primary, #38bdf8);
  border-right-color: var(--accent-spark, #f43f5e);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
}

.btn.is-loading {
  position: relative !important;
  pointer-events: none !important;
  opacity: 0.85 !important;
}

.btn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--primary, #38bdf8);
  border-right-color: var(--accent-spark, #f43f5e);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
  display: inline-block;
  margin-left: 0.4rem;
  vertical-align: middle;
  box-sizing: border-box;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 9999px;
  font-size: 0.78rem;
  color: var(--text-main, #f8fafc);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.radio-pill:hover {
  border-color: var(--primary, #38bdf8);
  color: var(--primary, #38bdf8);
}

.radio-pill input[type="radio"]:checked + span {
  font-weight: 700;
  color: var(--primary, #38bdf8);
}

.review-card {
  background: var(--bg-surface-hover, #334155) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)) !important;
  color: var(--text-main, #f8fafc) !important;
}

/* AI Diff Boxes */
.diff-box.diff-original {
  background: var(--bg-surface-hover, #334155) !important;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)) !important;
  color: var(--text-main, #f8fafc) !important;
}

.diff-box.diff-suggested {
  background: var(--bg-surface, #1e293b) !important;
  border: 1px solid var(--primary, #38bdf8) !important;
  color: var(--text-main, #f8fafc) !important;
}

.diff-box.diff-suggested textarea {
  background: var(--bg-surface-hover, #334155) !important;
  color: var(--text-main, #f8fafc) !important;
  border-color: var(--border-color-strong, rgba(255, 255, 255, 0.2)) !important;
}

/* ==========================================================================
   PASSWORD STRENGTH METER & CHECKLIST COMPONENT
   ========================================================================== */

.password-meter-wrapper {
  margin: 0.35rem 0 0.45rem 0;
}

.password-meter-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  margin-bottom: 0.25rem;
}

.meter-title {
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
}

.meter-value-label {
  font-weight: 700;
  transition: color 0.2s ease;
}

.password-meter-bar-bg {
  width: 100%;
  height: 5px;
  background: var(--border-color, rgba(255, 255, 255, 0.15));
  border-radius: 9999px;
  overflow: hidden;
}

.password-meter-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Checklist Rules */
.password-checklist-wrapper {
  margin: 0.35rem 0;
  padding: 0.45rem 0.6rem;
  background: var(--bg-surface-hover, rgba(0, 0, 0, 0.02));
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  border-radius: 8px;
}

.password-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 0.5rem;
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  transition: color 0.2s ease;
}

.rule-item.invalid {
  color: #ef4444;
}

.rule-item.valid {
  color: #10b981;
  font-weight: 600;
}

.rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.rule-item.invalid .rule-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.rule-item.valid .rule-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* Confirm Match indicator */
.confirm-match-wrapper {
  margin-top: 0.35rem;
}

.confirm-match-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.confirm-match-item.invalid {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.confirm-match-item.valid {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}



