/* Bouldering Dashboard Styles */

.dashboard-hero {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    padding: 3rem 2rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
}

.dashboard-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.dashboard-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0078d4;
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #495057;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 0;
    justify-content: center;
    margin: 2rem auto;
    max-width: 800px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.dashboard-tabs a {
    flex: 1;
    padding: 1rem 2rem;
    text-align: center;
    color: #495057;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border-right: 1px solid #e9ecef;
}

.dashboard-tabs a:last-child {
    border-right: none;
}

.dashboard-tabs a:hover {
    background: #f8f9fa;
    color: #0078d4;
}

.dashboard-tabs a.active {
    background: #0078d4;
    color: #fff;
}

/* Session Cards Grid */
.session-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.session-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.session-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.session-card-header {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 1.2rem;
    border-bottom: 2px solid #0078d4;
}

.session-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 0.3rem 0;
}

.session-card-date {
    font-size: 0.9rem;
    color: #495057;
}

.session-card-body {
    padding: 1.2rem;
}

.session-stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.session-stat {
    text-align: center;
}

.session-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0078d4;
}

.session-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

.completion-bar-container {
    margin-top: 1rem;
}

.completion-bar-label {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.4rem;
}

.completion-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.completion-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

/* Session Detail View */
.session-detail {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.session-detail-header {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.session-detail-header h2 {
    margin: 0 0 1rem 0;
    color: #222;
}

.session-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.session-detail-meta-item {
    display: flex;
    flex-direction: column;
}

.session-detail-meta-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
}

.session-detail-meta-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0078d4;
}

/* Problems Table */
.problems-table {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.problems-table table {
    width: 100%;
    border-collapse: collapse;
}

.problems-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.problems-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.problems-table tr:last-child td {
    border-bottom: none;
}

.problems-table tr:hover {
    background: #f8f9fa;
}

.grade-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.grade-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.outcome-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.outcome-completed {
    background: #d4edda;
    color: #155724;
}

.outcome-attempted {
    background: #fff3cd;
    color: #856404;
}

/* Chart Containers */
.chart-container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.chart-container h3 {
    margin: 0 0 1.5rem 0;
    color: #222;
    font-size: 1.3rem;
}

.chart-container canvas {
    max-height: 400px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Period Stats Cards */
.period-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.period-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.period-card-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e9ecef;
}

.period-card-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.period-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.period-stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.period-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0078d4;
}

/* Responsive Design */
@media (max-width: 900px) {
    .session-cards, .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-stats {
        gap: 1rem;
    }

    .stat-card {
        min-width: 120px;
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .session-cards, .charts-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero h1 {
        font-size: 2rem;
    }

    .dashboard-tabs {
        flex-direction: column;
    }

    .dashboard-tabs a {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .dashboard-tabs a:last-child {
        border-bottom: none;
    }

    .dashboard-stats {
        flex-direction: column;
        gap: 0.8rem;
    }

    .stat-card {
        width: 100%;
    }

    .session-detail-meta {
        grid-template-columns: 1fr;
    }

    .period-stats-cards {
        grid-template-columns: 1fr;
    }
}

/* Grade Colors */
.grade-Grey { background-color: #999; }
.grade-Green { background-color: #4CAF50; }
.grade-Orange { background-color: #FF9800; }
.grade-Blue { background-color: #2196F3; }
.grade-Purple { background-color: #9C27B0; }
.grade-Pink { background-color: #E91E63; }
.grade-Red { background-color: #F44336; }
.grade-Yellow { background-color: #FFEB3B; }
.grade-White { background-color: #FAFAFA; border-color: #333 !important; }
.grade-Black { background-color: #333; }
