/* Portfolio commentary styles */
.portfolio-commentary {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 20px auto;
  padding: 20px;
  max-width: 1200px;
  width: 95%;
}

.commentary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.commentary-header h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.refresh-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.refresh-btn:hover {
  background-color: rgba(0,0,0,0.05);
}

.commentary-content {
  line-height: 1.6;
  color: #333;
}

.commentary-timestamp {
  font-size: 0.8rem;
  color: #777;
  text-align: right;
  margin-top: 10px;
  font-style: italic;
}

.loading-message {
  color: #666;
  text-align: center;
  padding: 20px;
  font-style: italic;
}

/* AI Assistant button */
.toggle-assistant-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  font-size: 1rem;
  cursor: pointer;
  margin: 10px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.1s;
}

.toggle-assistant-btn:hover {
  background-color: #152c48;
  transform: translateY(-1px);
}

.toggle-assistant-btn:active {
  transform: translateY(1px);
}

/* Country ETF Dashboard Styles */
.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.portfolio-table th, 
.portfolio-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.portfolio-table .header-row {
  background-color: #f5f7fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.portfolio-table th {
  font-weight: 600;
  color: #444;
}

.table-row-hover:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.country-header {
  font-weight: 600;
  color: #444;
  min-width: 120px;
}

.country-label {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  margin-right: 5px;
}

.price-cell, 
.level-cell {
  font-family: monospace;
  text-align: right;
}

.volume-cell {
  font-family: monospace;
  text-align: right;
  color: #666;
}

.signal-cell {
  font-weight: 500;
}

.percent-cell {
  font-family: monospace;
  text-align: right;
  font-weight: 500;
}

.sentiment-cell {
  font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .portfolio-commentary {
    padding: 15px;
  }
  
  .commentary-header h3 {
    font-size: 1.1rem;
  }
  
  .toggle-assistant-btn {
    margin: 10px auto;
    display: block;
  }
}
