/* Performance Page Styles */
.performance-banner {
  background: linear-gradient(135deg, #0a2463 0%, #3e92cc 100%);
  position: relative;
  overflow: hidden;
}

.performance-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/patterns/dots-pattern.svg");
  background-size: 200px;
  opacity: 0.1;
  z-index: 0;
}

/* Performance Highlights */
.highlight-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  height: 100%;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  font-size: 24px;
}

.highlight-value {
  margin-bottom: 15px;
}

.highlight-value .counter {
  font-size: 42px;
  font-weight: 800;
  color: #333;
  line-height: 1;
}

.highlight-value .unit {
  font-size: 18px;
  font-weight: 600;
  color: #666;
  margin-left: 2px;
}

.highlight-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.highlight-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 0;
}

.performance-disclaimer {
  font-size: 14px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Performance Charts */
.chart-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: 100%;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.chart-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 0;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 5px;
}

.chart-period {
  display: flex;
  gap: 5px;
}

.chart-body {
  height: 300px;
  position: relative;
}

/* Performance Tables */
.performance-tabs {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.nav-tabs {
  border-bottom: 1px solid #eee;
  padding: 0 20px;
}

.nav-tabs .nav-link {
  border: none;
  color: #555;
  font-weight: 600;
  padding: 15px 20px;
  margin-right: 10px;
  border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link:hover {
  border-color: transparent;
  color: var(--bs-primary);
}

.nav-tabs .nav-link.active {
  border-color: transparent;
  border-bottom: 3px solid var(--bs-primary);
  color: var(--bs-primary);
  background-color: transparent;
}

.tab-content {
  padding: 20px;
}

.performance-table {
  margin-bottom: 0;
}

.performance-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  padding: 12px 15px;
  border-top: none;
  white-space: nowrap;
}

.performance-table td {
  padding: 12px 15px;
  border-color: #eee;
  color: #555;
}

.performance-table td.positive {
  color: #28a745;
  font-weight: 600;
}

.performance-table td.negative {
  color: #dc3545;
  font-weight: 600;
}

.performance-note {
  font-size: 14px;
  color: #666;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Monthly Returns */
.monthly-returns-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.monthly-returns-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 15px;
}

.year-selector {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.portfolio-selector {
  width: 200px;
}

.monthly-table {
  margin-bottom: 0;
}

.monthly-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  padding: 12px 15px;
  border-top: none;
  text-align: center;
}

.monthly-table td {
  padding: 12px 15px;
  border-color: #eee;
  color: #555;
  text-align: center;
}

.monthly-table td.year {
  font-weight: 700;
  color: #333;
  text-align: left;
}

.monthly-table td.positive {
  color: #28a745;
  font-weight: 600;
}

.monthly-table td.negative {
  color: #dc3545;
  font-weight: 600;
}

/* Methodology Cards */
.methodology-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.methodology-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.methodology-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.methodology-card h3 i {
  color: var(--bs-primary);
}

.methodology-card p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.methodology-card p:last-child {
  margin-bottom: 0;
}

.methodology-disclaimer {
  font-size: 14px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .chart-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-body {
    height: 250px;
  }

  .nav-tabs .nav-link {
    padding: 12px 15px;
    font-size: 14px;
  }

  .monthly-returns-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-selector {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .highlight-value .counter {
    font-size: 36px;
  }

  .highlight-value .unit {
    font-size: 16px;
  }

  .chart-body {
    height: 200px;
  }

  .performance-table th,
  .performance-table td,
  .monthly-table th,
  .monthly-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .methodology-card {
    padding: 20px;
  }
}
