body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

h1 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 3rem; 
    color: #004080;
    text-align: center; 
    font-weight: 700; 
    margin-bottom: 20px; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid #0074D9; 
    padding-bottom: 10px; 
    margin-top: 10px; 
}


.dashboard-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.dashboard-header {
    text-align: center;
    color: #333333;
    margin-bottom: 30px;
}

.graph {
    margin-bottom: 40px;
}

.charts-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.chart {
    flex: 1;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 20px;
    color: #333333;
}

.leaderboard-container table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 80%;
}

.leaderboard-container th,
.leaderboard-container td {
    border: 1px solid #cccccc;
    padding: 10px;
    text-align: center;
}

.leaderboard-container th {
    background-color: #0074D9;
    color: white;
}

.dropdown-row {
    display: flex;
    padding:50px 120px;
    justify-content: space-between;
    gap: 20px;
}

.dropdown {
    flex: 1;
}

#rower-dropdown {
    display:'inline-block';
}

#workout-dropdown {
    display:'inline-block';
}

#metric-dropdown {
    display:'inline-block';
}


/* Mobile styles (default) - already mostly handled */

@media (max-width: 768px) {
    .charts-row {
        flex-direction: column;
    }

    .dropdown-row {
        flex-direction: column;
        padding: 20px;
    }

    .dropdown {
        width: 100%;
    }

    .leaderboard-container table {
        width: 100%;
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    .dashboard-container {
        padding: 10px;
        box-shadow: none;
        border-radius: 0;
    }
}


/* ---- Intervals summary table ---- */

.intervals-title {
    margin: 12px 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
  }
  
  .intervals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: fixed;      /* keeps columns stable */
  }
  
  .intervals-table th,
  .intervals-table td {
    padding: 4px 8px;
    border-bottom: 1px solid #e0e0e0;
  }
  
  /* header row */
  .intervals-header-row th {
    text-align: right;
    background-color: #f5f7fb;
    font-weight: 600;
  }
  
  .intervals-header-row th:first-child {
    text-align: left;
  }
  
  /* zebra striping for readability */
  .interval-row:nth-child(even) {
    background-color: #fafafa;
  }
  
  /* label and numeric alignment */
  .label-cell {
    text-align: left;
    white-space: nowrap;
  }
  
  .numeric-cell {
    text-align: right;
    font-family: "Roboto Mono", Menlo, Consolas, monospace;
  }
  
  /* highlight total row */
  .interval-row-total {
    font-weight: 600;
    border-top: 2px solid #c0c8e0;
  }
  
  /* highlight selected/slider-filtered interval */
  .interval-row-selected {
    background-color: #e7f3ff;
    border-left: 3px solid #2576d2;
  }
  
  /* small hover effect */
  .interval-row:hover {
    background-color: #f0f4ff;
  }
  