/**
 * Expert SEO Tools - Shared Styles
 */

/* Base styles */
.esc-tool {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  color: #333;
}

.esc-tool * {
  box-sizing: border-box;
}

/* Header */
.esc-tool-header {
  text-align: center;
  margin-bottom: 30px;
}

.esc-tool-header h2 {
  font-size: 28px;
  color: #1a1a2e;
  margin-bottom: 10px;
  font-weight: 700;
}

.esc-tool-header p {
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

/* Input section */
.esc-input-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

.esc-input-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.esc-input-group input,
.esc-input-group textarea {
  flex: 1;
  min-width: 250px;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.esc-input-group input:focus,
.esc-input-group textarea:focus {
  border-color: #2563eb;
}

.esc-input-group input::placeholder,
.esc-input-group textarea::placeholder {
  color: #9ca3af;
}

/* Form groups */
.form-group {
  margin-bottom: 16px;
}

.form-group:last-of-type {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-hint {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.4;
}

/* Full-width inputs */
.esc-full-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.esc-full-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.esc-full-input::placeholder {
  color: #9ca3af;
}

textarea.esc-full-input {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
.esc-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.esc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.esc-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.esc-btn-secondary {
  background: #f1f5f9;
  color: #374151;
}

.esc-btn-secondary:hover {
  background: #e2e8f0;
  box-shadow: none;
}

.esc-btn-success {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.esc-btn-success:hover {
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* Spinner */
.esc-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: esc-spin 0.8s linear infinite;
}

@keyframes esc-spin {
  to { transform: rotate(360deg); }
}

/* Error message */
.esc-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Loading state */
.esc-loading {
  text-align: center;
  padding: 60px 20px;
}

.esc-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: esc-spin 1s linear infinite;
  margin: 0 auto 20px;
}

.esc-loading h3 {
  font-size: 18px;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.esc-loading p {
  color: #666;
  font-size: 14px;
}

/* Results animation */
.esc-results {
  animation: esc-fadeIn 0.5s ease-out;
}

@keyframes esc-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Overview card */
.esc-overview {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

/* Score ring */
.esc-score-ring {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.esc-score-ring svg {
  transform: rotate(-90deg);
}

.esc-score-ring-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 10;
}

.esc-score-ring-progress {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.esc-score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.esc-score-number {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1;
}

.esc-score-grade {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.esc-overview-info {
  flex: 1;
  min-width: 280px;
}

.esc-overview-url {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.esc-overview-url-value {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #1a1a2e;
  word-break: break-all;
  margin-bottom: 16px;
}

/* Mini scores */
.esc-mini-scores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.esc-mini-score {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
}

.esc-mini-score-icon {
  font-size: 20px;
}

.esc-mini-score-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
}

.esc-mini-score-value {
  font-size: 18px;
  font-weight: 700;
}

/* Alert boxes */
.esc-alert {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.esc-alert-critical {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.esc-alert-priority {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.esc-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.esc-alert h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.esc-alert-critical h4 {
  color: #dc2626;
}

.esc-alert-priority h4 {
  color: #16a34a;
}

.esc-alert-info h4 {
  color: #2563eb;
}

.esc-alert ul,
.esc-alert ol {
  margin-left: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

/* Tabs */
.esc-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 10px;
  flex-wrap: wrap;
}

.esc-tab {
  background: transparent;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.esc-tab:hover {
  color: #1a1a2e;
  background: rgba(255,255,255,0.5);
}

.esc-tab.active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.esc-tab-content {
  display: none !important;
}

.esc-tab-content.active {
  display: block !important;
}

/* Cards grid */
.esc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
}

/* Card */
.esc-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}

.esc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.esc-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.esc-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.esc-card-icon.experience { background: #fef3c7; }
.esc-card-icon.expertise { background: #d1fae5; }
.esc-card-icon.authority { background: #dbeafe; }
.esc-card-icon.trust { background: #fce7f3; }

.esc-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
}

.esc-card-score {
  font-size: 24px;
  font-weight: 700;
}

/* Signals */
.esc-signals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.esc-signal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.esc-signal.present {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
}

.esc-signal.missing {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
}

.esc-signal-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
}

.esc-signal.present .esc-signal-icon {
  background: #22c55e;
}

.esc-signal.missing .esc-signal-icon {
  background: #ef4444;
}

.esc-signal-content {
  flex: 1;
}

.esc-signal-name {
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 2px;
}

.esc-signal-details {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

/* Recommendations */
.esc-recommendations {
  background: #eff6ff;
  border-radius: 8px;
  padding: 14px;
  border: 1px solid #bfdbfe;
}

.esc-recommendations-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 10px;
}

.esc-recommendations ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
}

/* Features grid */
.esc-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.esc-feature {
  background: #f8fafc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.esc-feature-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.esc-feature h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.esc-feature p {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* CTA box */
.esc-cta {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-top: 30px;
  border: 1px solid #bfdbfe;
}

.esc-cta h4 {
  font-size: 18px;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.esc-cta p {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
}

.esc-cta-btn {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: all 0.2s;
}

.esc-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  color: #fff !important;
}

/* Usage limit notice */
.esc-usage-notice {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.esc-usage-notice a {
  color: #92400e;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .esc-tool {
    padding: 10px;
  }
  
  .esc-overview {
    flex-direction: column;
    text-align: center;
  }
  
  .esc-mini-scores {
    justify-content: center;
  }
  
  .esc-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .esc-input-group {
    flex-direction: column;
  }
  
  .esc-btn {
    width: 100%;
    justify-content: center;
  }
  
  .esc-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  
  .esc-tab {
    white-space: nowrap;
  }
}

/* Tier Selector */
.esc-tier-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.esc-tier-option {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.esc-tier-option:hover {
  border-color: #2563eb;
}

.esc-tier-option.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.esc-tier-option.locked {
  opacity: 0.8;
  cursor: default;
}

.esc-tier-option.locked:hover {
  border-color: #e5e7eb;
}

.esc-tier-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.esc-tier-option:first-child .esc-tier-badge {
  background: #f0fdf4;
  color: #16a34a;
}

.esc-tier-option:last-child .esc-tier-badge {
  background: #fef3c7;
  color: #d97706;
}

.esc-tier-option h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 12px 0;
}

.esc-tier-option ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #666;
}

.esc-tier-option ul li {
  padding: 4px 0;
}

.esc-tier-limit {
  margin-top: 12px;
  font-size: 12px;
  color: #f59e0b;
  font-weight: 500;
}

/* Premium badge for results */
.esc-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.esc-lite-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #64748b;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Locked/Premium feature indicator */
.esc-premium-only {
  position: relative;
  opacity: 0.6;
}

.esc-premium-only::after {
  content: '⭐ Premium';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fef3c7;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Upgrade prompt in results */
.esc-upgrade-prompt {
  background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.esc-upgrade-prompt h4 {
  margin: 0 0 8px 0;
  color: #1a1a2e;
  font-size: 16px;
}

.esc-upgrade-prompt p {
  margin: 0 0 16px 0;
  color: #666;
  font-size: 14px;
}

.esc-upgrade-prompt ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: #374151;
}

.esc-upgrade-prompt ul li::before {
  content: '✓ ';
  color: #16a34a;
}

/* ============================================
   SIMPLIFIED UI STYLES (v1.2)
   ============================================ */

/* Simple header with status badge */
.esc-tool-header-simple {
  margin-bottom: 24px;
}

.esc-tool-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.esc-tool-title-row h2 {
  font-size: 28px;
  color: #1a1a2e;
  margin: 0;
  font-weight: 700;
}

/* Status badges */
.esc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.esc-status-premium {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.esc-status-free {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

/* Tool intro section */
.esc-tool-intro {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.esc-tool-intro > p {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 20px 0;
}

/* Benefits grid */
.esc-tool-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.esc-benefit {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.esc-benefit-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.esc-benefit strong {
  display: block;
  font-size: 14px;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.esc-benefit p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* Usage note under input */
.esc-usage-note {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.esc-usage-note a {
  color: #2563eb;
  text-decoration: none;
}

.esc-usage-note a:hover {
  text-decoration: underline;
}

/* Enhanced upgrade prompt */
.esc-upgrade-prompt {
  background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
  border: 2px solid #bfdbfe;
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
}

.esc-upgrade-content h4 {
  margin: 0 0 12px 0;
  color: #1a1a2e;
  font-size: 20px;
}

.esc-upgrade-content > p {
  margin: 0 0 16px 0;
  color: #4b5563;
  font-size: 15px;
}

.esc-upgrade-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.esc-upgrade-content ul li {
  padding: 6px 0;
  font-size: 14px;
  color: #374151;
}

.esc-btn-upgrade {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.esc-btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  color: #fff !important;
}

/* Hide tier selector in simplified mode */
.esc-tool-simple .esc-tier-selector {
  display: none;
}

/* Print Button */
.esc-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.esc-print-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.esc-print-btn svg {
  width: 16px;
  height: 16px;
}

.esc-results-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

/* Print Styles */
@media print {
  /* Hide navigation and UI elements but preserve content structure */
  
  /* WordPress admin bar */
  #wpadminbar {
    display: none !important;
  }
  
  /* Standard semantic elements that are navigation */
  body > header,
  body > footer,
  body > nav,
  header:not(.esc-print-header),
  footer:not(.esc-print-footer),
  nav,
  aside {
    display: none !important;
  }
  
  /* Common WordPress/theme navigation classes */
  .site-header,
  .site-footer,
  .site-navigation,
  .main-navigation,
  .primary-navigation,
  .secondary-navigation,
  .menu-toggle,
  .nav-menu,
  .navigation-menu,
  .mobile-menu,
  .mobile-navigation,
  .header-menu,
  .footer-menu,
  .navbar,
  .nav-bar,
  .top-bar,
  .top-nav,
  .bottom-bar,
  .masthead,
  .site-branding,
  .header-inner,
  .header-wrapper,
  .header-container,
  .footer-inner,
  .footer-wrapper,
  .footer-container,
  .sidebar,
  .widget-area,
  #secondary,
  .sticky-header,
  .fixed-header,
  .breadcrumbs,
  .breadcrumb,
  .social-links,
  .social-icons {
    display: none !important;
  }
  
  /* Tool-specific elements to hide */
  .esc-tool-header,
  .esc-input-section,
  .esc-tier-selector,
  .esc-initial,
  .esc-loading,
  .esc-cta,
  .esc-results-actions,
  .esc-print-btn,
  .esc-upsell,
  .esc-upgrade-cta,
  .progress-bar-container,
  #batch-progress,
  #completed-urls,
  #stop-batch-audit,
  .export-buttons {
    display: none !important;
  }
  
  /* Hide buttons but not inside results */
  .esc-tool > .esc-btn {
    display: none !important;
  }
  
  /* Reset container styles for full-width printing */
  .esc-tool {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .esc-results {
    display: block !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
  
  /* Ensure results content is visible - but preserve layout */
  #batch-results {
    display: block !important;
    visibility: visible !important;
  }
  
  #batch-results * {
    visibility: visible !important;
  }
  
  /* Print header */
  .esc-print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
  }
  
  .esc-print-header h1 {
    font-size: 24px;
    margin: 0 0 5px 0;
  }
  
  .esc-print-header .print-url {
    font-size: 14px;
    color: #666;
  }
  
  .esc-print-header .print-date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
  }
  
  /* Score displays */
  .esc-overview,
  .esc-score-display {
    border: 1px solid #ccc !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    page-break-inside: avoid;
  }
  
  /* Category cards */
  .esc-category-card,
  .eeat-category {
    border: 1px solid #ccc !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    page-break-inside: avoid;
  }
  
  /* Tables */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  
  th, td {
    border: 1px solid #ccc !important;
    padding: 8px !important;
    text-align: left !important;
  }
  
  /* Links show URL */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 10px;
    color: #666;
  }
  
  /* Page breaks */
  .esc-section,
  .crawl-check-item {
    page-break-inside: avoid;
  }
  
  /* Ensure colors print for status indicators */
  .esc-status-pass,
  .crawl-check-icon.pass {
    background-color: #d1fae5 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  .esc-status-warning,
  .crawl-check-icon.warning {
    background-color: #fef3c7 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  .esc-status-fail,
  .crawl-check-icon.fail {
    background-color: #fee2e2 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* Score circles */
  .esc-score-circle {
    border: 3px solid currentColor !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* Footer */
  .esc-print-footer {
    display: block !important;
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
    font-size: 11px;
    color: #999;
  }
}
