/* Custom styles for the chart */
.ct-chart {
  width: 100%;
  height: 400px;
}
.ct-series-a .ct-line {
  stroke: #1f77b4; /* Color for est_series */
  stroke-width: 3px;
}
.ct-series-b .ct-line {
  stroke: #ff7f0e; /* Color for act_series */
  stroke-width: 3px;
}
.ct-point {
  stroke-width: 8px;
  stroke-linecap: round;
}
.ct-series-a .ct-point {
  stroke: #1f77b4; /* Color for est_series points */
}
.ct-series-b .ct-point {
  stroke: #ff7f0e; /* Color for act_series points */
}

/* Content grid layout */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

.left-stack, .right-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.definition-item {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideIn 0.5s ease-out forwards;
}

.left-stack .definition-item:nth-child(1) { animation-delay: 0.2s; }
.left-stack .definition-item:nth-child(2) { animation-delay: 0.4s; }
.right-stack .definition-item:nth-child(1) { animation-delay: 0.6s; }
.right-stack .definition-item:nth-child(2) { animation-delay: 0.8s; }

.definition-item h2 {
  color: #660000;
  margin: 0 0 1.5rem 0;
  padding: 0.5rem 0;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.definition-item h2::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.2em;
  animation: iconFloat 3s ease-in-out infinite;
}

/* Icon for Heat Index Information */
.definition-item h2[data-icon="heat"]::before {
  content: "\f2c7"; /* fa-thermometer-full */
  color: #660000;
}

/* Icon for WHY is the feels like index important */
.definition-item h2[data-icon="why"]::before {
  content: "\f059"; /* fa-question-circle */
  color: #660000;
}

/* Icon for The feels like index explained */
.definition-item h2[data-icon="explain"]::before {
  content: "\f0eb"; /* fa-lightbulb */
  color: #660000;
}

/* Icon for Protective measures */
.definition-item h2[data-icon="protect"]::before {
  content: "\f132"; /* fa-shield-heart */
  color: #660000;
}

.definition-item span {
  display: block;
  padding: 0.5rem 0;
  color: #333;
  line-height: 1.8;
  text-align: justify;
  max-width: 95%;
  hyphens: auto;
}

.definition-item ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.definition-item li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}

.definition-item li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #660000;
  font-size: 1.2em;
}

/* Fix nested definition-item issue */
.definition-item .definition-item {
  margin-top: 3rem;
  padding-left: 0;
}

.definition-item .definition-item::before {
  display: none;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
  
  .left-stack, .right-stack {
    gap: 2rem;
  }
  
  .definition-item span {
    max-width: 100%;
  }
}

/* Table styles */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

th, td {
  padding: 1rem 1.5rem;
  vertical-align: middle;
}

/* Column alignment and widths */
th:nth-child(1), 
td:nth-child(1) {
  width: 20%;
  text-align: center;
}

th:nth-child(2), 
td:nth-child(2) {
  width: 25%;
  text-align: center;
}

th:nth-child(3), 
td:nth-child(3) {
  width: 55%;
  text-align: left;
}

th {
  background-color: #2c3e50;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Remove border radius from first row th elements */
tr:first-child th:first-child {
  border-top-left-radius: 0;
}

tr:first-child th:last-child {
  border-top-right-radius: 0;
}

/* Safety level colors with white text for better contrast */
.extreme-danger {
  background-color: transparent;
  color: #333;
}

.danger {
  background-color: transparent;
  color: #333;
}

.extreme-caution {
  background-color: transparent;
  color: #333;
}

.caution {
  background-color: transparent;
  color: #333;
}

/* Remove all previous ::before elements */
td.extreme-danger::before,
td.danger::before,
td.extreme-caution::before,
td.caution::before {
  display: none;
}

/* Add circles only to first column (Category) */
td:first-child.extreme-danger::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #ff0000;
  border-radius: 50%;
  margin-right: 8px;
}

td:first-child.danger::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #e67e22;
  border-radius: 50%;
  margin-right: 8px;
}

td:first-child.extreme-caution::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #f1c40f;
  border-radius: 50%;
  margin-right: 8px;
}

td:first-child.caution::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #C0C815;
  border-radius: 50%;
  margin-right: 8px;
}

/* Text alignment for columns */
td:first-child {
  text-align: left;
}

td:nth-child(2) {
  text-align: center;
}

td:nth-child(3) {
  text-align: left;
}

/* Footer styling */
.footer {
  background-color: transparent;
  color: #660000;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.footer::before {
  content: "Note: ";
  font-weight: 700;
}

/* Card styling for the table container */
.safety-summary .card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem auto 0;
  max-width: 1200px;
}

.safety-summary {
  padding-bottom: 2rem;
}

.feels-like-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.chart-wrapper {
    height: 400px;
    padding: 20px;
}

.custom-card-header {
    background: linear-gradient(145deg, #333333 0%, #3d1a1a 25%, #4d0000 50%, #590000 75%, #660000 100%) !important;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-card-header i {
    font-size: 1.4em;
}

/* Keep existing styles and add animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Remove the color legend section */
.color-legend {
  display: none;
}

/* Remove left borders */
td.extreme-danger,
td.danger,
td.extreme-caution,
td.caution {
  border-left: none;
}

