/**
 * Dashboard Styles
 * Simple, clean styling using CSS variables
 */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.dashboard {
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 2rem;
}

/* Spot Rate Control */
.spot-rate-control {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 0.5rem;
}

.control-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.spot-rate-input-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.spot-rate-input {
  width: 120px;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
}

.scenario-display {
  text-align: right;
}

.scenario-label-small {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}


/* Row Generator */
.row-generator-section {
  margin-bottom: 2rem;
}

.row-generator-details summary {
  cursor: pointer;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: 0.5rem;
  font-weight: bold;
}

.row-generator-form {
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 0 0 0.5rem 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--color-muted);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

/* Table */
.table-section {
  margin-bottom: 2rem;
  background-color: var(--color-bg);
}

.hedging-table-container {
  overflow-x: auto;
}

.hedging-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

.hedging-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid var(--color-border);
  background: var(--color-bg-alt);
}

.hedging-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.hedging-table .data-row:hover {
  background: var(--color-bg-alt);
}

/* Table Headers */
.header-row-1 th {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-muted);
}

.header-row-2 th {
  font-size: 1.1rem;
}

/* Table Inputs */
.date-input,
.exposure-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  font-size: 1.4rem;
}

.exposure-input {
  text-align: right;
}

/* Table Buttons - don't override global button styles */
.btn-delete {
  background: transparent;
  color: var(--color-error);
  font-size: 2rem;
  padding: 0.25rem 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-delete:hover {
  background: var(--color-error);
  color: var(--color-bg);
}

/* Table Actions */
.table-actions {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

/* Recommendation Section Highlighting */
.recommendation-cell {
  background: var(--color-bg-alt);
  font-weight: bold;
}

.hedged-amount-clickable {
  cursor: pointer;
  color: var(--color-accent);
  text-decoration: underline;
}

.hedged-amount-clickable:hover {
  opacity: 0.8;
}

/* Hedge Status Row Colors */
.hedge-status-under {
  background-color: rgba(251, 191, 36, 0.1) !important; /* Amber tint */
}

.hedge-status-between {
  background-color: rgba(34, 197, 94, 0.1) !important; /* Green tint */
}

.hedge-status-over {
  background-color: rgba(33, 150, 243, 0.1) !important; /* Blue tint - at or above maximum */
}

.hedge-status-over:hover {
  background-color: rgba(33, 150, 243, 0.15) !important;
}

/* Apply All link styling */
.apply-all-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.apply-all-link:hover {
  text-decoration: underline;
}

/* Chart Section */
.chart-section {
  margin-bottom: 2rem;
}
