/* Mobile-First Swimming Times App */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1a202c;
    line-height: 1.5;
}

.app {
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.swimmer-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.swimmer-selector select {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.refresh-btn {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Filters */
.filters {
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.stat-card {
    text-align: center;
    padding: 1rem 0.5rem;
    background: #f7fafc;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
}

/* Smaller text for meet names in stat cards */
.stat-number:not([data-numeric="true"]) {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.stat-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Loading & Error States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #718096;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 2rem 1rem;
    color: #e53e3e;
}

.error-message button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Events Grid */
.events-grid {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* Event Tile */
.event-tile {
    background: white;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s ease;
}

.event-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.event-tile.faster {
    border-left-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.event-tile.close {
    border-left-color: #ed8936;
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
}

.event-tile.slower {
    border-left-color: #f56565;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.event-tile.no-county {
    border-left-color: #a0aec0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.event-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.times-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.times-container-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.times-container-single-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.time-item {
    text-align: center;
}

.time-label {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 0.25rem;
}

.time-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.time-value.best {
    color: #3182ce;
}

.time-value.recent {
    color: #805ad5;
}

.time-value.county {
    color: #38a169;
}

.time-value.no-time {
    color: #a0aec0;
    font-style: italic;
}

.time-value.faster {
    color: #38a169;
    font-weight: 600;
}

.time-value.close {
    color: #d69e2e;
    font-weight: 600;
}

.time-value.slower {
    color: #e53e3e;
    font-weight: 600;
}

.time-value.no-county {
    color: #a0aec0;
    font-weight: 600;
}

.comparison {
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.comparison-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.comparison-text.faster {
    color: #38a169;
}

.comparison-text.slower {
    color: #e53e3e;
}

.comparison-text.no-county {
    color: #d69e2e;
}

.time-diff {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
}



/* Responsive Design */
@media (min-width: 640px) {
    .header {
        padding: 1.5rem 2rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .filters {
        padding: 1.5rem 2rem;
    }
    
    .summary-stats {
        padding: 1.5rem 2rem;
    }
    
    .events-grid {
        padding: 1.5rem 2rem;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    

}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    
    .times-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Cli
ckable Tiles */
.event-tile.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-tile.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.event-tile.clickable:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Detail Page Styles */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.swimmer-info {
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.swimmer-card {
    text-align: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
}

.swimmer-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.detail-content {
    padding: 1rem;
}

.chart-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.times-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.times-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.times-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.times-list .time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s ease;
}

.times-list .time-item:hover {
    background: #edf2f7;
}

.times-list .time-item.personal-best {
    border-left-color: #FFD43B;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.time-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-main .time-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
}

.time-improvement {
    font-size: 0.875rem;
}

.improvement.positive {
    color: #38a169;
    font-weight: 600;
}

.improvement.negative {
    color: #e53e3e;
    font-weight: 600;
}

.time-details {
    text-align: right;
}

.competition-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.time-date {
    font-size: 0.75rem;
    color: #718096;
}

.split-time {
    font-size: 0.75rem;
    color: #4a5568;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.course-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #667eea;
    vertical-align: middle;
    margin-left: 4px;
}

.competition-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

/* Responsive adjustments for detail page */
@media (min-width: 640px) {
    .swimmer-info {
        padding: 1.5rem 2rem;
    }
    
    .detail-stats {
        padding: 1.5rem 2rem;
    }
    
    .detail-content {
        padding: 1.5rem 2rem;
    }
    
    .chart-container {
        height: 400px;
    }
}

@media (max-width: 640px) {
    .time-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .times-list .time-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .time-details {
        text-align: left;
        width: 100%;
    }
    
    .split-time {
        margin-bottom: 0.25rem;
    }
}/* Coun
ty Times Section */
.county-times-section {
    padding: 1rem;
    text-align: center;
}

.show-all-county-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.show-all-county-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.show-all-county-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .county-times-section {
        padding: 1.5rem 2rem;
    }
}

/* County Times Section */
.county-times-section {
    padding: 1rem;
    text-align: center;
}

.show-all-county-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.show-all-county-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.show-all-county-btn:active {
    transform: translateY(0);
}
/* County Times Table Page */
.table-info {
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.info-card {
    text-align: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.info-subtitle {
    font-size: 0.875rem;
    color: #718096;
}

.table-container {
    padding: 1rem;
}

.table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.county-times-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.county-times-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.county-times-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.county-times-table tbody tr:hover {
    background: #f7fafc;
}

.county-times-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table cell styling */
.event-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.875rem; /* Match the table font size */
}

.county-time {
    font-weight: 600;
    color: #F59E0B;
    text-align: center;
}

.swimmer-time.has-time {
    color: #2d3748;
    font-weight: 600;
}

.swimmer-time.no-time {
    color: #a0aec0;
    font-style: italic;
}

.swimmer-time.faster {
    color: #38a169;
    font-weight: 600;
}

.swimmer-time.close {
    color: #d69e2e;
    font-weight: 600;
}

.swimmer-time.no-county {
    color: #a0aec0;
    font-weight: 600;
}

/* County time column color coding */
.county-time.faster {
    background: #f0fff4;
    color: #38a169;
    font-weight: 600;
}

.county-time.close {
    background: #fffaf0;
    color: #d69e2e;
    font-weight: 600;
}

.county-time.no-county {
    background: #f7fafc;
    color: #a0aec0;
    font-weight: 600;
}

.age-header {
    text-align: center;
}

/* Responsive table */
@media (max-width: 768px) {
    .table-container {
        padding: 0.5rem;
    }
    
    .county-times-table {
        font-size: 0.75rem;
    }
    
    .county-times-table th,
    .county-times-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .info-title {
        font-size: 1rem;
    }
    
    .info-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .table-info {
        padding: 0.5rem;
    }
    
    .county-times-table th {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .county-times-table td {
        padding: 0.5rem;
    }
    
    .county-time {
        font-size: 0.75rem;
    }
}/* Na
vigation Section */
.navigation-section {
    padding: 1rem;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.nav-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(72, 187, 120, 0.4);
}

.nav-btn:active {
    transform: translateY(0);
}

@media (min-width: 640px) {
    .navigation-section {
        padding: 1.5rem 2rem;
    }
}
/* Progress Page Styles */
/* Progress Page Styles */
.progress-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: white;
    margin: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.progress-content {
    margin: 1rem;
}

.progress-summary {
    margin-bottom: 2rem;
}

.charts-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.2rem;
}

.chart-container canvas {
    max-width: 100%;
    height: 300px !important;
}

.progress-table-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-table-container h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.progress-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.progress-table th,
.progress-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.progress-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.progress-table tr:hover {
    background: #f7fafc;
}

.progress-table .faster {
    color: #38a169;
    font-weight: 600;
}

.progress-table .slower {
    color: #718096;
    font-weight: 600;
}

.progress-table .improving {
    color: #38a169;
    font-weight: 600;
}

.progress-table .declining {
    color: #718096;
    font-weight: 600;
}

.progress-table .neutral {
    color: #718096;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #718096;
    font-size: 1.1rem;
}

/* Responsive design for progress page */
@media (max-width: 900px) {
    .progress-filters {
        grid-template-columns: repeat(2, 1fr);
        margin: 0.5rem;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .progress-filters {
        grid-template-columns: repeat(2, 1fr) !important;
        margin: 0.5rem;
        gap: 0.75rem;
    }
    
    .progress-content {
        margin: 0.5rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .chart-container canvas {
        height: 250px !important;
    }
    
    .progress-table {
        font-size: 0.8rem;
    }
    
    .progress-table th,
    .progress-table td {
        padding: 0.5rem;
    }
    
    .header-left h1 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .progress-table-container {
        overflow-x: auto;
    }
    
    .progress-table {
        min-width: 600px;
    }
    
    .progress-filters {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}
/* Progress button in header */
.header-right {
    display: flex;
    align-items: center;
}

.progress-btn {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-left h1 {
        font-size: 1.3rem;
        text-align: center;
    }
}
/* Progress table enhancements */
.progress-table .with-graph {
    background: rgba(102, 126, 234, 0.05);
}

.progress-table .single-point {
    background: rgba(113, 128, 150, 0.05);
}

.progress-table .has-graph {
    color: #667eea;
    font-weight: 600;
}

.progress-table .no-graph {
    color: #a0aec0;
}

.table-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.table-note p {
    margin: 0;
    color: #4a5568;
    font-size: 0.9rem;
}
/* Latest Meet Events Section */
.latest-meet-section {
    background: white;
    border-radius: 12px;
    margin: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.section-header h3 {
    margin: 0;
    color: #1a202c;
    font-size: 1.25rem;
}

.close-section-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-section-btn:hover {
    background: #f7fafc;
    color: #2d3748;
}

.event-selector {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.event-selector label,
.meet-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.event-selector select,
.meet-selector select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.meet-selector {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.latest-meet-times-display,
.meet-events-display {
    padding: 1.5rem;
}

.latest-meet-times-display h4,
.meet-events-display h4 {
    margin: 0 0 1rem 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.latest-times-list,
.meet-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.latest-time-entry,
.meet-event-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.latest-time-entry.personal-best,
.meet-event-entry.personal-best {
    border-left-color: #ffd700;
    background: #fffbeb;
}

.latest-time-info,
.meet-event-info {
    display: flex;
    flex-direction: column;
}

.latest-time-value,
.meet-event-time {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
}

.latest-time-details,
.meet-event-details {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

.latest-time-badge,
.meet-event-badge {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.latest-time-badge.pb,
.meet-event-badge.pb {
    background: #ffd700;
    color: #744210;
}

/* Make the third stat card clickable when showing latest meet */
.stat-card.clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .latest-meet-section {
        margin: 0.5rem;
    }
    
    .section-header,
    .event-selector,
    .latest-meet-times-display {
        padding: 1rem;
    }
}