/**
 * Theme Performance Analyzer - Front-end Styles
 *
 * @package ThemePerformanceAnalyzer
 * @since 1.0.0
 */

/* Modern CSS Variables and Color Palette */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --danger-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  --excellent-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --good-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --poor-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);

  --dark-bg: #1a1a2e;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);

  --border-radius: 15px;
  --border-radius-lg: 20px;
  --border-radius-xl: 25px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container Styles */
.tpa-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Error Message Styles */
.tpa-error-message {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  border: 1px solid #f56565;
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: var(--shadow-medium);
}

.tpa-error-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tpa-error-content h4 {
  margin: 0 0 10px 0;
  color: #c53030;
  font-size: 18px;
  font-weight: 600;
}

.tpa-error-list {
  margin: 0;
  padding-left: 20px;
  color: #742a2a;
}

.tpa-error-list li {
  margin-bottom: 5px;
  font-size: 14px;
}

.tpa-error-list li:last-child {
  margin-bottom: 0;
}

/* Header Styles */
.tpa-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #0073aa;
}

.tpa-header h2 {
  color: #0073aa;
  margin: 0 0 15px 0;
  font-size: 28px;
  font-weight: 600;
}

.tpa-header p {
  color: #666;
  font-size: 16px;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Form Styles */
.tpa-form-container {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.tpa-form {
  margin: 0;
}

.tpa-form-group {
  margin-bottom: 25px;
}

.tpa-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.tpa-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.tpa-input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.tpa-input:invalid,
.tpa-input.tpa-input-error {
  border-color: #dc3232;
  box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.1);
}

.tpa-input:focus.tpa-input-error {
  border-color: #dc3232;
  box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.1);
}

.tpa-help-text {
  display: block;
  margin-top: 8px;
  color: #666;
  font-size: 13px;
  font-style: italic;
}

.tpa-validation-error {
  display: none;
  margin-top: 8px;
  color: #dc3232;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  background: #fdf2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  border-left: 3px solid #dc3232;
}

/* Button Styles */
.tpa-submit-btn {
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.tpa-submit-btn:hover {
  background: linear-gradient(135deg, #005a87 0%, #004a73 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.tpa-submit-btn:active {
  transform: translateY(0);
}

.tpa-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Override disabled state when button should be enabled */
.tpa-submit-btn:not(:disabled) {
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  cursor: pointer;
  transform: none;
  box-shadow: none;
}

.tpa-submit-btn:not(:disabled):hover {
  background: linear-gradient(135deg, #005a87 0%, #004a73 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

/* Specific override for analyze button */
#tpa-analyze-btn:not(:disabled) {
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
  cursor: pointer !important;
  transform: none !important;
  box-shadow: none !important;
}

#tpa-analyze-btn:not(:disabled):hover {
  background: linear-gradient(135deg, #005a87 0%, #004a73 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3) !important;
}

/* Loading Spinner */
.tpa-loading-spinner {
  margin-left: 10px;
}

.tpa-spinner {
  width: 20px;
  height: 20px;
  animation: tpa-spin 1s linear infinite;
}

.tpa-spinner-path {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  animation: tpa-dash 1.5s ease-in-out infinite;
}

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

@keyframes tpa-dash {
  0% {
    stroke-dashoffset: 126;
  }
  50% {
    stroke-dashoffset: 32;
  }
  100% {
    stroke-dashoffset: 126;
  }
}

/* Results Styles */
/* .tpa-results {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} */

.tpa-results h3 {
  color: #ffffff;
  margin: 0 0 20px 0;
  font-size: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.tpa-results .tpa-loader-container h3 {
  color: #575dc0;
}

.tpa-results .tpa-loader-container h3.tpa-loader-title {
  margin: 0 0 0 0;
}

.tpa-results .tpa-loader-container p.tpa-loader-subtitle {
  margin: 0 0 0 0;
}

.tpa-lead-benefits h4 {
  color: #ffffff;
  margin-top: 0px;
}

/* Score Grid */
.tpa-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.tpa-score-item {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

/* Score-based styling */
.tpa-score-item.score-excellent {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: white;
}

.tpa-score-item.score-good {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  color: white;
}

.tpa-score-item.score-poor {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: white;
}

.tpa-score-item.score-excellent .tpa-score-number,
.tpa-score-item.score-good .tpa-score-number,
.tpa-score-item.score-poor .tpa-score-number {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tpa-score-item.score-excellent .tpa-score-label,
.tpa-score-item.score-good .tpa-score-label,
.tpa-score-item.score-poor .tpa-score-label {
  color: rgba(255, 255, 255, 0.9);
}

.tpa-score-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tpa-score-value {
  font-size: 32px;
  font-weight: bold;
  color: #0073aa;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tpa-score-number {
  font-size: 36px;
  font-weight: 700;
  color: #0073aa;
  line-height: 1;
}

.tpa-score-max {
  font-size: 18px;
  font-weight: 500;
  color: #666;
  line-height: 1;
}

.tpa-score-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* WordPress Info */
.tpa-wordpress-info {
  background: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #d1e7dd;
}

.tpa-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.tpa-info-item:last-child {
  border-bottom: none;
}

.tpa-info-label {
  font-weight: 600;
  color: #0073aa;
  font-size: 14px;
}

.tpa-info-value {
  color: #333;
  font-size: 14px;
  text-align: right;
  max-width: 60%;
}

/* Download PDF Button */
.tpa-download-pdf-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.tpa-download-pdf-btn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Lead Form - Hero Style Design */
.tpa-lead-capture-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 16px !important;
  padding: 40px !important;
  margin: 40px 0 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
}

.tpa-lead-capture-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.tpa-lead-form {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr !important;
  gap: 20px !important;
  align-items: start !important;
  position: relative !important;
  z-index: 1 !important;
}

.tpa-lead-form-fields {
  background: rgba(255, 255, 255, 0.95) !important;
  padding: 30px !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
  display: block !important;
}

.tpa-lead-benefits {
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 30px !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  display: block !important;
}

.tpa-lead-header {
  text-align: center;
  margin-bottom: 30px;
  grid-column: 1 / -1;
}

.tpa-lead-header h3 {
  color: white;
  margin: 0 0 15px 0;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tpa-lead-description {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.6;
}

.tpa-urgency-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

.tpa-badge-icon {
  margin-right: 8px;
  font-size: 16px;
}

.tpa-lead-form .tpa-input {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-bottom: 20px;
}

.tpa-lead-form .tpa-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.tpa-lead-form .tpa-input-valid {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.tpa-lead-form .tpa-input-invalid {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.tpa-lead-form .tpa-label {
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  font-size: 14px;
}

.tpa-lead-form .tpa-required {
  color: #dc3545;
  margin-left: 4px;
}

.tpa-lead-form .tpa-help-text {
  color: #666;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

/* Checkbox Styling */
.tpa-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 0;
}

#tpa-lead-consent {
  display: none;
}

.tpa-checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
  background: white;
  transition: all 0.3s ease;
  position: relative;
}

.tpa-checkbox:checked + .tpa-checkbox-custom {
  background: #667eea;
  border-color: #667eea;
}

.tpa-checkbox:checked + .tpa-checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.tpa-consent-text {
  color: #333;
  font-size: 14px;
}

.tpa-consent-group {
  margin-bottom: 20px;
}

.tpa-lead-submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  width: 100%;
  margin-top: 10px;
}

.tpa-lead-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.tpa-lead-submit-btn:active {
  transform: translateY(-1px);
}

.tpa-lead-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.tpa-recommendations-list {
  margin: 0px;
}

/* Trust Indicators */
.tpa-trust-indicators {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.tpa-trust-item {
  display: flex;
  align-items: center;
  color: rgb(22 24 22 / 90%);
  font-size: 14px;
  font-weight: 500;
}

.tpa-trust-icon {
  margin-right: 8px;
  font-size: 16px;
}

/* Social Proof */
.tpa-social-proof {
  text-align: center;
  margin: 20px 0;
}

.tpa-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tpa-stat-item {
  text-align: center;
}

.tpa-stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tpa-stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.tpa-testimonial {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.tpa-testimonial p {
  color: white;
  font-style: italic;
  margin: 0 0 8px 0;
  font-size: 14px;
}

.tpa-testimonial-author {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
}

/* Value Proposition */
.tpa-value-proposition {
  text-align: center;
  margin: 20px 0;
}

.tpa-value-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 25px;
  margin-bottom: 15px;
}

.tpa-value-price {
  font-size: 24px;
  font-weight: 700;
  color: #ffd700;
  margin-right: 10px;
}

.tpa-value-original {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: line-through;
}

.tpa-value-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* Enhanced Benefits List */
.tpa-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tpa-benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tpa-benefit-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.tpa-benefit-item.tpa-benefit-animate {
  animation: slideInFromLeft 0.6s ease-out;
}

.tpa-benefit-item.tpa-benefit-hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.tpa-benefit-icon {
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tpa-benefit-content h4 {
  color: white;
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 600;
}

.tpa-benefit-content p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .tpa-lead-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tpa-lead-capture-container {
    padding: 20px;
    margin: 20px 0;
  }

  .tpa-lead-form-fields,
  .tpa-lead-benefits {
    padding: 20px;
  }

  .tpa-lead-header h3 {
    font-size: 24px;
  }

  .tpa-lead-description {
    font-size: 14px;
  }

  .tpa-stats {
    gap: 20px;
  }

  .tpa-stat-number {
    font-size: 20px;
  }

  .tpa-trust-indicators {
    flex-direction: column;
    gap: 10px;
  }

  .tpa-benefit-item {
    padding: 12px;
  }

  .tpa-benefit-icon {
    font-size: 20px;
    margin-right: 12px;
  }

  .tpa-benefit-content h4 {
    font-size: 14px;
  }

  .tpa-benefit-content p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .tpa-lead-capture-container {
    padding: 15px;
    margin: 15px 0;
  }

  .tpa-lead-form-fields,
  .tpa-lead-benefits {
    padding: 15px;
  }

  .tpa-lead-header h3 {
    font-size: 20px;
  }

  .tpa-lead-submit-btn {
    padding: 15px 30px;
    font-size: 16px;
  }
}

/* Section Styles */
.tpa-section {
  margin-bottom: 30px;
  border-bottom: 1px solid #d3d3d3;
}

.tpa-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.tpa-section h3 {
  color: #dc143c;
  margin: 0 0 20px 0;
  font-size: 26px;
  font-weight: 700;
  border-bottom: 2px solid #dc143c;
  padding-bottom: 10px;
}

/* Report Container */
.tpa-report-container {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .tpa-container {
    padding: 15px;
  }

  .tpa-form-container {
    padding: 20px;
  }

  .tpa-score-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .tpa-info-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .tpa-info-value {
    max-width: 100%;
    text-align: left;
    margin-top: 5px;
  }
}

/* Strategy Sections */
.tpa-strategy-section {
  margin-bottom: 40px;
}

.tpa-strategy-section:last-child {
  margin-bottom: 0;
}

.tpa-strategy-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
  color: #dc143c;
}

.tpa-strategy-icon {
  margin-right: 10px;
  font-size: 20px;
}

.tpa-mobile-icon {
  color: #4caf50;
}

.tpa-desktop-icon {
  color: #2196f3;
}

/* Download Section */
.tpa-download-section {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  margin-top: 20px;
  width: 162%;
}

.tpa-download-section h4 {
  color: #dc143c;
  margin: 10px 0px;
  font-size: 24px;
  font-weight: 700;
}

.tpa-download-section p {
  color: #555555;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 500;
}

.tpa-download-section .tpa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.tpa-download-section .tpa-btn-primary {
  background: linear-gradient(135deg, #dc143c 0%, #b22222 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.tpa-download-section .tpa-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

.tpa-download-section .tpa-icon-download {
  font-size: 18px;
}

/* Mobile Readiness Section */
.tpa-mobile-readiness-section {
  background: linear-gradient(
    135deg,
    rgba(220, 20, 60, 0.1) 0%,
    rgba(178, 34, 34, 0.1) 100%
  );
  border: 1px solid rgba(220, 20, 60, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(220, 20, 60, 0.1);
  color: #333333;
}

.tpa-waterfall-section .tpa-section h3 {
  color: #dc143c;
  border-bottom: 2px solid #dc143c;
}

.tpa-mobile-readiness-section h3 {
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 700;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 10px;
}

.tpa-mobile-overview {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tpa-mobile-score {
  flex-shrink: 0;
  text-align: center;
}

.tpa-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Readiness Score Circle */
/* .tpa-mobile-readiness-section .tpa-score-circle {
    background: linear-gradient(135deg, #DC143C 0%, #B22222 100%);
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.3);
} */

/* Page Loading Analysis Score Circle */
/* .tpa-waterfall-section .tpa-score-circle {
    background: linear-gradient(135deg, #DC143C 0%, #B22222 100%);
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.3);
} */

.tpa-score-circle .tpa-score-number {
  font-size: 36px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tpa-score-circle .tpa-score-label {
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-top: 4px;
}

/* Modern Circular Progress Indicators */
.tpa-circular-progress {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.tpa-circular-progress:hover {
  transform: scale(1.05);
}

.tpa-circular-progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--score-color) var(--progress-angle, 0deg),
    #f3f4f6 0deg
  );
  animation: scoreReveal 1.2s ease-out;
}

.tpa-circular-progress::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tpa-circular-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.tpa-circular-score {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.tpa-circular-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Score-based color coding */
.tpa-circular-progress.score-excellent {
  --score-color: #10b981;
}

.tpa-circular-progress.score-excellent::before {
  background: conic-gradient(
    var(--score-color) var(--progress-angle, 0deg),
    #f3f4f6 0deg
  );
}

.tpa-circular-progress.score-good {
  --score-color: #3b82f6;
}

.tpa-circular-progress.score-good::before {
  background: conic-gradient(
    var(--score-color) var(--progress-angle, 0deg),
    #f3f4f6 0deg
  );
}

.tpa-circular-progress.score-poor {
  --score-color: #ef4444;
}

.tpa-circular-progress.score-poor::before {
  background: conic-gradient(
    var(--score-color) var(--progress-angle, 0deg),
    #f3f4f6 0deg
  );
}

/* Circular Progress Content */
.tpa-circular-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
}

.tpa-circular-score {
  font-size: 36px;
  font-weight: 800;
  color: #2d3748;
  line-height: 1;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tpa-circular-label {
  font-size: 12px;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  line-height: 1;
}

/* Enhanced Card Styles */
.tpa-modern-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
}

.tpa-modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.tpa-modern-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

/* Section Headers with Modern Design */
.tpa-section-header {
  background: var(--primary-gradient);
  color: white;
  padding: 25px 30px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.tpa-section-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.tpa-section-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 2;
}

.tpa-section-header .tpa-section-title {
  font-size: 28px;
}

.tpa-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Enhanced Results Container */
.tpa-results-modern {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-xl);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-heavy);
}

/* Animations */
@keyframes scoreReveal {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.tpa-section {
  animation: slideInUp 0.8s ease-out;
}

/* Urgency and Social Proof Elements */
.tpa-urgency-badge {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: pulse 2s infinite;
  display: inline-block;
  margin: 10px 0;
}

.tpa-social-proof {
  background: var(--primary-gradient);
  color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 25px 0;
  box-shadow: var(--shadow-medium);
}

/* Enhanced Metric Cards */
.tpa-metric-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 15px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tpa-metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--score-gradient);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.tpa-metric-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

/* Ripple Effect for Buttons */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced Button Styles */
.tpa-submit-btn,
.tpa-lead-submit-btn {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.tpa-submit-btn:hover,
.tpa-lead-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

/* Modern Metric Header Styles */
.tpa-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.tpa-metric-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tpa-metric-score {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tpa-metric-score.score-excellent {
  background: var(--excellent-gradient);
}

.tpa-metric-score.score-good {
  background: var(--good-gradient);
}

.tpa-metric-score.score-poor {
  background: var(--poor-gradient);
}

.tpa-metric-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
}

/* Enhanced Hover States */
.tpa-modern-card.hovered,
.tpa-metric-card.hovered {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

/* Mobile Responsiveness for Modern Elements */
@media (max-width: 768px) {
  .tpa-circular-progress {
    width: 120px;
    height: 120px;
  }

  .tpa-circular-score {
    font-size: 28px;
  }

  .tpa-circular-label {
    font-size: 10px;
  }

  .tpa-modern-card {
    padding: 20px;
    margin-bottom: 15px;
  }

  .tpa-section-header {
    padding: 20px;
    font-size: 1.2rem;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .tpa-section-icon {
    font-size: 2rem;
  }

  .tpa-results-modern {
    padding: 25px;
  }

  .tpa-metric-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tpa-metric-score {
    font-size: 1.2rem;
    padding: 6px 12px;
  }
}

.tpa-mobile-details {
  flex: 1;
  display: grid;
  gap: 1rem;
}

.tpa-mobile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(220, 20, 60, 0.05);
  border-radius: 8px;
  border-left: 3px solid #dc143c;
}

.tpa-mobile-label {
  font-weight: 600;
  color: #555555;
  font-size: 1.1rem;
}

.tpa-mobile-value {
  font-weight: 700;
  color: #dc143c;
  font-size: 1.2rem;
}

/* Mobile details grid removed - keeping only score and recommendations */

.tpa-mobile-recommendations {
  display: none;
  background: rgba(220, 20, 60, 0.05);
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #dc143c;
  backdrop-filter: blur(10px);
}

.tpa-mobile-recommendations h4 {
  color: #dc143c;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 700;
}

.tpa-mobile-recommendations .tpa-recommendation-item {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(220, 20, 60, 0.1);
  font-size: 17px;
  line-height: 1.6;
  color: #555555;
  font-weight: 500;
}

.tpa-mobile-recommendations .tpa-recommendation-item:last-child {
  border-bottom: none;
}

.tpa-mobile-recommendations .tpa-icon-mobile {
  color: #ff9800;
  margin-right: 10px;
  margin-top: 2px;
  font-size: 16px;
}

/* Responsive Design for Mobile Section */
@media (max-width: 768px) {
  .tpa-mobile-overview {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .tpa-mobile-details {
    grid-template-columns: 1fr;
  }

  .tpa-mobile-details-grid {
    grid-template-columns: 1fr;
  }

  .tpa-mobile-readiness-section {
    padding: 20px;
  }
}

/* Analysis Loader Styles */
.tpa-analysis-loader {
  background: linear-gradient(
    135deg,
    #f8f9fa 0%,
    #e9ecef 50%,
    #dee2e6 100%
  ) !important;
  border: 2px solid rgba(220, 20, 60, 0.1);
  border-radius: 20px;
  padding: 40px;
  margin: 20px 0;
  color: #333333;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  min-height: 500px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1000;
}

.tpa-loader-container {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.tpa-circular-progress {
  position: relative;
  display: inline-block;
}

.tpa-progress-ring {
  transform: rotate(-90deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.tpa-progress-ring-circle {
  transition: stroke-dashoffset 0.3s ease;
}

.tpa-progress-ring-progress {
  transition: stroke-dashoffset 0.3s ease;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
}

.tpa-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px; /* Increased from 24px */
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Enhanced shadow */
  background: rgba(0, 115, 170, 0.9); /* Added background */
  padding: 10px; /* Added padding */
  border-radius: 25px; /* Rounded corners */
  min-width: 80px; /* Minimum width */
  z-index: 10; /* Higher z-index */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Added shadow */
}

.tpa-progress-percentage {
  display: block;
  font-size: 28px; /* Increased from 32px */
  line-height: 1;
  font-weight: 800; /* Increased weight */
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Enhanced shadow */
}

.tpa-loader-content {
  text-align: center;
  width: 100%;
}

.tpa-loader-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 0 0;
  color: #dc143c;
  text-shadow: none;
}

.tpa-loader-subtitle {
  font-size: 18px;
  margin: 0 0 0 0;
  color: #666666;
  font-weight: 500;
  text-shadow: none;
}

.tpa-loader-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  text-align: left;
}

.tpa-step {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 20, 60, 0.2);
  transition: all 0.3s ease;
  opacity: 0.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tpa-step.tpa-step-active {
  opacity: 1;
  background: rgba(220, 20, 60, 0.1);
  border-color: rgba(220, 20, 60, 0.4);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.15);
}

.tpa-step.tpa-step-completed {
  opacity: 0.9;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.tpa-step-icon {
  font-size: 20px;
  width: 30px;
  text-align: center;
}

.tpa-step-text {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  text-shadow: none;
}

.tpa-loader-tips {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 20, 60, 0.2);
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tpa-tip-text {
  margin: 0;
  font-size: 16px;
  color: #333333;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: none;
}

.tpa-tip-content {
  font-style: italic;
  color: #666666;
  font-weight: 400;
  text-shadow: none;
}

/* Responsive Design for Loader */
@media (max-width: 768px) {
  .tpa-analysis-loader {
    padding: 30px 20px;
    min-height: 400px;
  }

  .tpa-loader-title {
    font-size: 24px;
  }

  .tpa-loader-subtitle {
    font-size: 14px;
  }

  .tpa-progress-percentage {
    font-size: 28px;
  }

  .tpa-step {
    padding: 10px 15px;
    gap: 12px;
  }

  .tpa-step-icon {
    font-size: 18px;
    width: 25px;
  }

  .tpa-step-text {
    font-size: 13px;
  }

  .tpa-tip-text {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .tpa-analysis-loader {
    padding: 20px 15px;
    min-height: 350px;
  }

  .tpa-loader-title {
    font-size: 20px;
  }

  .tpa-progress-percentage {
    font-size: 24px;
  }

  .tpa-step {
    padding: 8px 12px;
    gap: 10px;
  }

  .tpa-step-icon {
    font-size: 16px;
    width: 20px;
  }

  .tpa-step-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .tpa-score-grid {
    grid-template-columns: 1fr;
  }

  .tpa-header h2 {
    font-size: 24px;
  }

  .tpa-form-container {
    padding: 15px;
  }

  .tpa-strategy-title {
    font-size: 16px;
  }
}

/* Success/Error Messages */
.tpa-message {
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  font-weight: 500;
}

.tpa-message.success {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6c3;
  color: #155724;
}

.tpa-message.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Loading States */
.tpa-loading {
  opacity: 0.6;
  pointer-events: none;
}

.tpa-loading .tpa-loading-spinner {
  display: inline-block !important;
}

.tpa-loading .tpa-btn-text {
  display: none;
}

/* ========================================
   WATERFALL SECTION STYLES
   ======================================== */
/* 
.tpa-waterfall-section {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(178, 34, 34, 0.1) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.1);
} */

.tpa-waterfall-overview {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.tpa-waterfall-score {
  flex-shrink: 0;
  text-align: center;
}

.tpa-waterfall-details {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tpa-waterfall-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(220, 20, 60, 0.05);
  border-radius: 8px;
  border-left: 3px solid #dc143c;
}

.tpa-waterfall-label {
  font-weight: 600;
  color: #555555;
  font-size: 1.1rem;
}

.tpa-waterfall-value {
  font-weight: 700;
  color: #dc143c;
  font-size: 1.2rem;
}

/* Waterfall Chart */
.tpa-waterfall-chart {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.tpa-waterfall-timeline {
  height: 300px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Resource Details */
.tpa-waterfall-resources {
  margin-bottom: 2rem;
}

.tpa-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tpa-resource-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.tpa-resource-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tpa-resource-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tpa-resource-type {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tpa-resource-type-css {
  background: #dbeafe;
  color: #1e40af;
}

.tpa-resource-type-js {
  background: #fef3c7;
  color: #92400e;
}

.tpa-resource-type-images {
  background: #d1fae5;
  color: #065f46;
}

.tpa-resource-type-fonts {
  background: #f3e8ff;
  color: #6b21a8;
}

.tpa-resource-type-other {
  background: #f3f4f6;
  color: #374151;
}

.tpa-resource-size {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.tpa-resource-blocking {
  background: #fecaca;
  color: #dc2626;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
}

.tpa-resource-url {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.75rem;
  word-break: break-all;
  font-family: "Courier New", monospace;
}

.tpa-resource-timing {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tpa-timing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
  min-width: 60px;
}

.tpa-timing-label {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.tpa-timing-value {
  font-size: 0.8rem;
  color: #1f2937;
  font-weight: 600;
}

/* Waterfall Recommendations */
.tpa-waterfall-recommendations {
  display: none;
  padding: 1.5rem;
  background: rgba(220, 20, 60, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border-left: 4px solid #dc143c;
}

.tpa-waterfall-recommendations h4 {
  color: #dc143c;
}

.tpa-loader-title i {
  margin-right: 5px;
}

/* Waterfall Section Responsive */
@media (max-width: 768px) {
  .tpa-waterfall-overview {
    flex-direction: column;
    text-align: center;
  }

  .tpa-waterfall-details {
    grid-template-columns: 1fr;
  }

  .tpa-resources-grid {
    grid-template-columns: 1fr;
  }

  .tpa-resource-timing {
    justify-content: center;
  }
}
