
:root {
  --primary-color: #e50914;
  --secondary-color: #221f1f;
  --tertiary-color: #f5f5f1;
  --text-color: #333;
  --light-gray: #e5e5e5;
  --dark-gray: #333;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--tertiary-color);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--secondary-color);
  color: white;
  padding: 20px 0;
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.hero {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

section {
  padding: 40px 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

p {
  margin-bottom: 20px;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.card-header {
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.card-title {
  margin: 0;
  color: var(--secondary-color);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: bold;
  margin: 10px 0;
  color: var(--primary-color);
}

.metric-label {
  font-size: 1rem;
  color: var(--dark-gray);
}

.chart-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.recommendation {
  background-color: var(--secondary-color);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.recommendation h3 {
  color: white;
  margin-bottom: 15px;
}

.recommendation-status {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 15px 0;
}

.recommendation-status.buy {
  color: var(--success-color);
}

.recommendation-status.hold {
  color: var(--warning-color);
}

.recommendation-status.sell {
  color: var(--danger-color);
}

.rationale-list {
  list-style-type: none;
}

.rationale-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.rationale-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th, table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

table th {
  background-color: var(--secondary-color);
  color: white;
}

table tr:nth-child(even) {
  background-color: #f8f8f8;
}

.portfolio-allocation {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.allocation-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  flex: 1;
  min-width: 250px;
}

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

.allocation-ticker {
  font-weight: bold;
  font-size: 1.2rem;
}

.allocation-percentage {
  background-color: var(--secondary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.allocation-details {
  margin-bottom: 15px;
}

.allocation-details p {
  margin-bottom: 5px;
}

.simulator-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.simulator-controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.control-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #c30710;
}

.simulator-results {
  margin-top: 20px;
}

.result-card {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.result-value {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 10px 0;
  color: var(--primary-color);
}

footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.disclaimer {
  font-size: 0.8rem;
  max-width: 800px;
  margin: 0 auto;
  color: #aaa;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 20px;
  }
  
  nav ul li {
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-allocation {
    flex-direction: column;
  }
}

/* Chart styles */
.chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin: 0 10px 10px 0;
}

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

/* Tab styles */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-color);
  position: relative;
}

.tab.active {
  color: var(--primary-color);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tooltip styles */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.badge-success {
  background-color: var(--success-color);
  color: white;
}

.badge-warning {
  background-color: var(--warning-color);
  color: black;
}

.badge-danger {
  background-color: var(--danger-color);
  color: white;
}

.badge-info {
  background-color: var(--info-color);
  color: white;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Print styles */
@media print {
  header, nav, footer, .simulator-container {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .card, .chart-container, .metric-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
