﻿.dashboard-page {
    padding: 3rem 0 4rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.dashboard-card {
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.dashboard-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.dashboard-subtext {
    margin: 0.35rem 0 0;
    color: var(--color-text-soft);
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.mini-stat {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.mini-stat-label {
    color: var(--color-text-soft);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    display: block;
}

.mini-stat strong {
    font-size: 1.5rem;
}

.profile-list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .profile-list li {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--color-border);
    }

.profile-label {
    color: var(--color-text-soft);
    font-weight: 600;
}

.profile-value {
    word-break: break-word;
    text-align: right;
}

.dashboard-message {
    min-height: 1.25rem;
    margin-top: 1rem;
    color: var(--color-text-soft);
}

.recent-results-table-wrap {
    overflow-x: auto;
}

.empty-state {
    color: var(--color-text-soft);
    margin: 0;
}

@media (max-width: 900px) {
    .stats-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }

    .profile-list li {
        flex-direction: column;
    }

    .profile-value {
        text-align: left;
    }
}
