/* Shortcodes Styling */

/* Pros & Cons Shortcode */
.pros-cons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 25px 0;
}

.pros-section, .cons-section {
  flex: 1;
  min-width: 250px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.pros-section {
  border-top: 4px solid #28a745;
}

.cons-section {
  border-top: 4px solid #dc3545;
}

.pros-title, .cons-title {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 1.2em;
}

.pros-title::before {
  content: "✓";
  color: #28a745;
  margin-right: 10px;
  font-size: 1.2em;
}

.cons-title::before {
  content: "✗";
  color: #dc3545;
  margin-right: 10px;
  font-size: 1.2em;
}

.pros-list, .cons-list {
  margin: 0;
  padding-left: 15px;
}

.pros-list li, .cons-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* CTA Button Shortcode */
.cta-button-container {
  text-align: center;
  margin: 25px 0;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background: linear-gradient(135deg, #0069d9, #004494);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Comparison Table Shortcode */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* Table wrapper for horizontal scrolling */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 25px 0;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* A subtle indicator that the table is scrollable */
.table-wrapper::after {
  content: '→';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 123, 255, 0.7);
  font-size: 20px;
  pointer-events: none;
  animation: fadeInOut 2s infinite;
  display: none; /* Hidden by default, shown on mobile */
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.comparison-table th {
  background-color: #007bff;
  color: white;
  text-align: left;
  padding: 12px 15px;
  font-weight: 600;
  font-size: 1rem;
  white-space: normal;
  min-width: 120px; /* Ensure columns have reasonable width */
}

.comparison-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #e9ecef;
  min-width: 120px; /* Ensure columns have reasonable width */
  font-size: 0.95rem;
  line-height: 1.5;
  vertical-align: middle;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Highlight the first column which usually contains the feature name */
.comparison-table td:first-child,
.comparison-table th:first-child {
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 1;
  /* Match background color of rows for sticky effect */
  background-color: inherit;
}

.comparison-table tr:nth-child(even) td:first-child {
  background-color: #f8f9fa;
}

.comparison-table tr:nth-child(odd) td:first-child {
  background-color: #fff;
}

.comparison-table th:first-child {
  background-color: #0056b3; /* Darker blue for header */
}

/* Responsive table styles */
@media (max-width: 768px) {
  .table-wrapper::after {
    display: block; /* Show scroll indicator on mobile */
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  /* First column should be at least this wide */
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    min-width: 140px;
  }
  
  /* Ensure data columns are reasonably sized */
  .comparison-table th:not(:first-child),
  .comparison-table td:not(:first-child) {
    min-width: 100px;
  }
}

/* Feature Highlight Shortcode */
.feature-highlight {
  display: flex;
  flex-wrap: wrap;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-image {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-content {
  flex: 2;
  padding: 20px;
  min-width: 250px;
}

.feature-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #343a40;
}

.feature-content p {
  margin-bottom: 0;
  color: #495057;
  line-height: 1.6;
}

/* Social Proof Shortcode */
.social-proof-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-proof-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.social-proof-count {
  font-size: 2em;
  font-weight: 700;
  color: #007bff;
  margin-right: 15px;
}

.social-proof-title {
  font-size: 1.2em;
  font-weight: 600;
}

.social-proof-content {
  color: #495057;
  line-height: 1.5;
}

/* Limited Offer Shortcode */
.limited-offer-container {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.limited-offer-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.limited-offer-icon {
  font-size: 1.5em;
  color: #dc3545;
  margin-right: 10px;
}

.limited-offer-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #856404;
}

.limited-offer-content {
  color: #856404;
  line-height: 1.5;
}

.limited-offer-timer {
  text-align: center;
  font-size: 1.2em;
  font-weight: 700;
  color: #dc3545;
  margin-top: 15px;
}

/* Summary Box Shortcode */
.review-summary-box {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-summary-box h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #343a40;
  font-size: 1.5rem;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 10px;
}

.summary-rating {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.summary-rating .rating-stars {
  margin-right: 10px;
  color: #ffc107;
}

.summary-rating .rating-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #495057;
  display: inline-block;
  vertical-align: middle;
}

.summary-content {
  color: #495057;
  line-height: 1.6;
}

/* Conclusion Box Shortcode */
.review-conclusion-box {
  background-color: #e8f4f8;
  border: 1px solid #b8daff;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-conclusion-box h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #0056b3;
  font-size: 1.5rem;
  border-bottom: 2px solid #b8daff;
  padding-bottom: 10px;
}

.conclusion-content {
  color: #495057;
  line-height: 1.6;
  margin-bottom: 15px;
}

.conclusion-cta {
  text-align: center;
  margin-top: 20px;
}

.conclusion-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.conclusion-button:hover {
  background: linear-gradient(135deg, #0069d9, #004494);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Note Box Shortcode */
.note-box {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.note-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.note-icon {
  font-size: 1.5rem;
  margin-right: 10px;
}

.note-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.note-content {
  color: #495057;
  line-height: 1.6;
}

/* Note types */
.note-note {
  background-color: #e8f4f8;
  border-left: 4px solid #0088cc;
}

.note-note .note-icon {
  color: #0088cc;
}

.note-warning {
  background-color: #fff3cd;
  border-left: 4px solid #f0ad4e;
}

.note-warning .note-icon {
  color: #f0ad4e;
}

.note-tip {
  background-color: #e8f8e8;
  border-left: 4px solid #28a745;
}

.note-tip .note-icon {
  color: #28a745;
}

.note-important {
  background-color: #f8e8e8;
  border-left: 4px solid #dc3545;
}

.note-important .note-icon {
  color: #dc3545;
}

/* Accordion Shortcode */
.accordion-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  width: 100%;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  color: #343a40;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-button:focus {
  outline: none;
}

.accordion-button:hover {
  background-color: #e9ecef;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-button.collapsed .accordion-icon {
  transform: rotate(0deg);
}

.accordion-button:not(.collapsed) .accordion-icon {
  transform: rotate(180deg);
}

.accordion-collapse {
  border-top: 1px solid #e9ecef;
}

.accordion-body {
  padding: 15px 20px;
  background-color: #fff;
}

/* Rating Box Shortcode */
.rating-box {
  margin: 25px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rating-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #343a40;
}

.rating-stars-container {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
  margin-right: 10px;
}

.rating-stars-bg {
  color: #e9ecef;
}

.rating-stars-fg {
  color: #ffc107;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}

.rating-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #343a40;
  display: inline-block;
  vertical-align: middle;
}

.rating-comment {
  margin-top: 10px;
  color: #495057;
  font-style: italic;
}

/* Specifications Table Shortcode */
.specs-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 25px 0;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-name, .spec-value {
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.95rem;
  line-height: 1.5;
}

.spec-name {
  background-color: #f8f9fa;
  font-weight: 600;
  width: 30%;
  min-width: 150px;
}

.spec-value {
  width: 70%;
}

.specs-table tr:last-child .spec-name,
.specs-table tr:last-child .spec-value {
  border-bottom: none;
}

.specs-table-header {
  background: linear-gradient(135deg, #0056b3, #0077cc);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: left;
  border-bottom: 2px solid #e9ecef;
}

/* General fix for all shortcodes content to prevent overflow */
.pros-section, 
.cons-section, 
.feature-highlight,
.feature-content,
.cta-button-container,
.comparison-table,
.social-proof-container,
.limited-offer-container,
.review-summary-box,
.review-conclusion-box,
.note-box,
.accordion-item,
.specs-table-container,
.rating-box,
.testing-methodology,
.reliability-stats-container,
.award-badge-container,
.award-badge-group {
  box-sizing: border-box;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-left: 0;
  margin-right: 0;
}

/* Ensure images don't cause horizontal overflow */
.feature-image img,
img {
  max-width: 100%;
  height: auto;
}

/* Ensure all text content in shortcodes is wrapped properly */
p, li, td, th, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-word;
  word-break: break-word;
}

/* Media queries for mobile responsiveness - optimize for readability */
@media (max-width: 768px) {
  .pros-cons-container {
    flex-direction: column;
  }
  
  .feature-highlight {
    flex-direction: column;
  }
  
  .feature-image {
    max-width: 100%;
  }
  
  .review-summary-box,
  .review-conclusion-box,
  .note-box,
  .testing-methodology {
    padding: 15px;
  }
  
  .review-summary-box h3,
  .review-conclusion-box h3,
  .testing-methodology h3 {
    font-size: 1.3rem;
  }
  
  .conclusion-button,
  .cta-button {
    width: 100%;
    padding: 10px 16px;
  }

  /* Fix for text overflow in shortcodes on mobile */
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .specs-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  /* Ensure content in shortcodes doesn't overflow but maintains readability */
  .feature-content p,
  .note-content,
  .accordion-body,
  .pros-list li, 
  .cons-list li,
  .testing-description,
  .testing-details,
  .testing-steps li,
  .social-proof-content,
  .limited-offer-content,
  .summary-content,
  .conclusion-content,
  .reliability-stats-subtitle,
  .reliability-note {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fix for elements with white-space: nowrap in mobile view */
  .stat-value {
    white-space: normal;
    font-size: 0.8rem;
    min-width: 36px;
    text-align: center;
  }
  
  .award-date {
    white-space: normal;
  }
  
  .comparison-table {
    font-size: 0.9rem;
  }
  
  .comparison-table th, 
  .comparison-table td {
    padding: 8px 10px;
  }
  
  /* Ensure horizontal scrolling works smoothly for tables that need it */
  .comparison-table,
  .specs-table {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  /* Article content container fixes for mobile */
  .article-content,
  .post-content,
  .content-wrapper,
  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure readable font size on mobile */
  .article-content p,
  .post-content p,
  .content-wrapper p,
  .main-content p {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
}

/* Additional responsive fix for smaller mobile devices */
@media (max-width: 480px) {
  /* Ensure all shortcode containers don't overflow but still use available space */
  .pros-section, 
  .cons-section,
  .feature-highlight,
  .social-proof-container,
  .limited-offer-container,
  .review-summary-box,
  .review-conclusion-box,
  .note-box,
  .accordion-item,
  .rating-box,
  .testing-methodology,
  .reliability-stats-container {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    overflow-x: hidden;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Ensure text in tables is readable */
  .comparison-table th,
  .comparison-table td,
  .specs-table .spec-name,
  .specs-table .spec-value {
    white-space: normal;
    word-break: break-word;
    font-size: 14px;
  }
}

/* Testing Methodology Shortcode */
.testing-methodology {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testing-methodology h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #343a40;
  font-size: 1.5rem;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 10px;
}

.testing-description {
  margin-bottom: 20px;
  color: #495057;
  line-height: 1.6;
}

.testing-details {
  background-color: #e9ecef;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

.testing-details h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #343a40;
}

.testing-details ul {
  margin: 0;
  padding-left: 20px;
}

.testing-details li {
  margin-bottom: 5px;
}

.testing-steps {
  margin-bottom: 0;
}

.testing-steps h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #343a40;
}

.testing-steps ol {
  margin: 0;
  padding-left: 20px;
}

.testing-steps li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Award Badge Shortcode */
.award-badge-container {
  display: inline-block;
  margin: 20px 0;
  perspective: 1000px;
  /* Additional anti-blur wrapper properties */
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.award-badge {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 20px 20px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.9), 0 0 0 12px rgba(0, 86, 179, 0.2);
  text-align: center;
  overflow: hidden;
  background-image: radial-gradient(circle, #ffffff, #f0f7ff);
  /* Enhanced anti-blur properties */
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease;
}

/* Separate hover effect without transforms on the main badge */
.award-badge-container:hover .award-badge {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(255, 255, 255, 0.9), 0 0 0 12px rgba(0, 86, 179, 0.3);
}

/* Create pseudo-element for transform effects instead of transforming the actual badge */
.award-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  z-index: -1;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  pointer-events: none;
}

.award-badge-container:hover .award-badge::after {
  transform: scale(1.05) rotateY(5deg);
}

.award-badge .award-icon {
  margin-bottom: 15px;
  font-size: 2.2rem;
  color: white;
  z-index: 1;
  position: relative;
  top: -8px;
  /* Anti-blur for icon */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  /* Smoother animation curve */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Apply transform only to the icon, not to the text */
.award-badge-container:hover .award-icon {
  transform: translateY(-3px) scale(1.1) rotate(8deg);
}

.award-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background-color: #0056b3;
  z-index: 0;
}

.award-badge.gold::before {
  background-color: #f8c50a;
}

.award-badge.silver::before {
  background-color: #a1a1a1;
}

.award-badge.bronze::before {
  background-color: #cd7f32;
}

.award-badge.editors-choice::before {
  background-color: #9c27b0;
}

.award-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0056b3;
  margin-bottom: 5px;
  margin-top: 5px;
  text-transform: uppercase;
  z-index: 1;
  /* Anti-blur for text */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.award-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 8px;
  z-index: 1;
  /* Anti-blur for text */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.award-date {
  font-size: 0.85rem;
  color: #666;
  z-index: 1;
  max-width: 160px;
  word-wrap: break-word;
  /* Anti-blur for text */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.award-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Media query for smaller screens */
@media (max-width: 576px) {
  .award-badge {
    width: 150px;
    height: 150px;
  }
  
  .award-icon {
    font-size: 2rem;
  }
  
  .award-title {
    font-size: 0.9rem;
  }
  
  .award-name {
    font-size: 0.8rem;
  }
  
  .award-date {
    font-size: 0.75rem;
    max-width: 135px;
  }
}

/* Reliability Stats Shortcode */
.reliability-stats-container {
  margin: 25px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: inherit;
}

.reliability-stats-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0056b3;
  margin-bottom: 5px;
}

.reliability-stats-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 20px;
}

.reliability-chart-container {
  margin-bottom: 25px;
}

.stats-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-label {
  min-width: 120px;
  font-weight: 500;
  color: #444;
}

.stat-bar-container {
  position: relative;
  height: 25px;
  background-color: #e9ecef;
  border-radius: 15px;
  flex-grow: 1;
  overflow: hidden;
}

.stat-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,86,179,0.8) 0%, rgba(0,123,255,0.8) 100%);
  border-radius: 15px;
  width: 0; /* Will be set by JS */
  transition: width 1s ease;
  min-width: 8%; /* Ensure a minimum width so values are always visible */
}

.stat-bar.good {
  background: linear-gradient(90deg, rgba(40,167,69,0.8) 0%, rgba(76,210,105,0.8) 100%);
}

.stat-bar.warning {
  background: linear-gradient(90deg, rgba(255,193,7,0.8) 0%, rgba(255,213,79,0.8) 100%);
}

.stat-bar.poor {
  background: linear-gradient(90deg, rgba(220,53,69,0.8) 0%, rgba(255,91,105,0.8) 100%);
}

.stat-value {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 5;
  display: block !important; /* Ensure always visible */
  white-space: nowrap;
  padding-left: 5px;
  padding-right: 5px;
}

.reliability-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6c757d;
  border-top: 1px solid #dee2e6;
  padding-top: 15px;
}

.reliability-source {
  display: flex;
  align-items: center;
  gap: 5px;
}

.reliability-source i {
  color: #0056b3;
}

.reliability-note {
  font-style: italic;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: #0056b3;
  margin: 10px 0;
}

.stat-card.good .stat-card-value {
  color: #28a745;
}

.stat-card.warning .stat-card-value {
  color: #ffc107;
}

.stat-card.poor .stat-card-value {
  color: #dc3545;
}

.stat-card-label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 5px;
}

.stat-card-description {
  font-size: 0.85rem;
  color: #6c757d;
} 