/* Add this to your rides.css file */

.clickable-year {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-year:hover {
    color: #667eea;
    transform: scale(1.05);
    text-decoration: underline;
}

.clickable-year:active {
    transform: scale(0.98);
}


span.version {
    font-size: 81%;
    padding-left: 20px;
    padding-top: 2px;
}
body.home .header p.subtitle {
    font-size: 1.02em;
    line-height: 2.0em;
}
span.version {
    /* font-size: 81%; */
    padding-left: 20px;
    padding-top: 2px;
}
.ride-date .ride-stat-value {
    font-size: 1.0em;
    display: inline;
}






.active {
    color: white !important;
    background: #e74c3c !important;
}

button#start {
    font-size: 11px;
    padding: 5px 11px;
}
.menu {
    margin: 20px 0 0 0;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    /* background: rgba(255, 255, 255, 0.1); */
    /* backdrop-filter: blur(10px); */
    border-radius: 20px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    color: #424242;
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 400;
}

.header p {
    color: rgb(22 21 21 / 90%);
    font-size: 1.2em;
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 8px 25px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0px;
}

.stat-label {
    font-size: 1.1em;
    color: #666;
    font-weight: 500;
}

.yearly-stats {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.yearly-stats h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    font-size: 1.3em;
}

.yearly-grid {
    display: grid;
    gap: 20px;
}

.year-row {
    display: grid;
    grid-template-columns: 120px repeat(5, 1fr);
    gap: 15px;
    align-items: center;
    padding: 2px 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    /* border-left: 4px solid #667eea; */
}

.year-label {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1em;
}

.year-stat {
    text-align: center;
}

.year-stat-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.year-stat-label {
    font-size: 0.8em;
    color: #666;
    font-weight: 400;
}

.controls {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.controls-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 10%;
  margin-right: 0%;
}

.search-box {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box:focus {
    border-color: #667eea;
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    border-color: #667eea;
}

.toggle-btn {
    padding: 12px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: background 0.3s ease;
}

.toggle-btn:hover {
    background: #5a6fd8;
}

.filter-active {
    border-color: #667eea !important;
    background: rgba(102, 126, 234, 0.1) !important;
}

.clear-filters-btn {
    padding: 12px 25px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: background 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.clear-filters-btn.visible {
    opacity: 1;
    visibility: visible;
}

.clear-filters-btn:hover {
    background: #c0392b;
}

.stats-subtitle {
    text-align: center;
    margin-top: 10px;
    /* color: rgba(255, 255, 255, 0.8); */
    /* font-style: italic; */
    /* opacity: 0; */
    transition: opacity 0.3s ease;
}

.stats-subtitle.visible {
    opacity: 1;
}

.strava-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fc4c02, #ff6b35);
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(252, 76, 2, 0.3);
}

.strava-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 76, 2, 0.4);
    background: linear-gradient(135deg, #e63c00, #ff5722);
}

.strava-icon {
    font-size: 1.1em;
}

.ride-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.rides-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.ride-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ride-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.ride-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.ride-header {
    margin-bottom: 20px;
}

.ride-date {
    font-size: 1.1em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

.ride-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.truncate {
  width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.truncate.smaller {
  width: 79%;
}
.ride-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}
p.adjustment {
  padding: 20px 20px 0;
  font-size: .79em;
}
.ride-stat {
    text-align: center;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.ride-stat-value {
    font-size: 1.2em;
    font-weight: 600;
    color: #667eea;
}

.ride-stat-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    font-weight: 400;
}

.charts-section {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-container {
    height: 300px;
    position: relative;
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .controls-row {
        flex-direction: column;
        align-items: stretch;
    }

    .rides-container {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .year-row {
        grid-template-columns: 50px repeat(5, 1fr);
        gap: 8px;
        text-align: center;
    }

    .year-label {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 2px solid #667eea;
    }

    .year-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-value {
        font-size: 1.05rem;
    }
}


.custom-select {
  &, &::picker(select) {
    appearance: base-select;
  }
}
