/* ==============================
   Dashboard Page — New Design
   ============================== */

/* ===== Profile Section ===== */
.dash-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0 16px;
}

.dash-avatar-wrap {
    position: relative;
    margin-bottom: 16px;
}
.dash-avatar-glow {
    position: absolute;
    inset: -12px;
    background: var(--purple-500);
    border-radius: 50%;
    filter: blur(24px);
    opacity: 0.2;
}
.dash-avatar-frame {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--purple-500);
    padding: 3px;
    background: var(--bg-primary);
    overflow: visible;
}
.dash-avatar-frame .avatar-placeholder,
.dash-avatar-frame .avatar-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.dash-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: var(--purple-500);
    color: #fff;
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}
.dash-avatar-edit .material-symbols-outlined {
    font-size: 14px;
}
.dash-avatar-edit:hover {
    background: var(--purple-400);
    transform: scale(1.1);
}

.dash-profile-info {
    text-align: center;
}
.dash-player-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.dash-player-name-row h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}
.dash-rank-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
    color: var(--purple-400);
}
.dash-rank-row .rank-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}
.dash-level-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 4px;
}

/* ===== XP Bar Section ===== */
.dash-xp-section {
    padding: 8px 0 20px;
}
.dash-xp-labels {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}
.dash-xp-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--purple-400);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.dash-xp-value {
    font-size: 0.75rem;
    font-family: 'Space Grotesk', monospace;
    color: var(--text-muted);
}
.dash-xp-track {
    height: 10px;
    width: 100%;
    background: rgba(157, 0, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(157, 0, 255, 0.2);
}
.dash-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-500), #00f0ff);
    border-radius: 999px;
    transition: width var(--transition-slow);
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.8);
}
.dash-xp-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}
.dash-xp-hint {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
    margin-top: 6px;
}

/* ===== Nav Grid Cards ===== */
.dash-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 8px 0 24px;
}
.dash-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    border-radius: var(--radius-xl);
    background: rgba(157, 0, 255, 0.05);
    border: 1px solid rgba(157, 0, 255, 0.25);
    cursor: pointer;
    transition: all var(--transition-normal);
    gap: 8px;
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.15);
}
.dash-nav-card .material-symbols-outlined {
    color: var(--purple-400);
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}
.dash-nav-card span:last-child {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}
.dash-nav-card:hover {
    background: rgba(157, 0, 255, 0.1);
    border-color: rgba(157, 0, 255, 0.4);
    transform: translateY(-2px);
}
.dash-nav-card:hover .material-symbols-outlined {
    transform: scale(1.15);
}
.dash-nav-card:active {
    transform: scale(0.97);
}

/* ===== Radar Panel ===== */
.dash-radar-panel {
    background: rgba(157, 0, 255, 0.04);
    border: 1px solid rgba(157, 0, 255, 0.2);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.dash-radar-panel::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    background: rgba(157, 0, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}
.dash-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--purple-400);
    margin-bottom: 16px;
    margin-top: 0;
}
.radar-chart-container {
    max-width: 260px;
    margin: 0 auto;
    width: 100%;
}
.radar-chart-container canvas {
    max-width: 100%;
    height: auto !important;
}
.dash-radar-note {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 12px;
}

/* ===== System Message Panel ===== */
.dash-system-panel {
    background: rgba(10, 15, 30, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #00f0ff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.dash-system-icon-wrap {
    padding: 10px;
    background: rgba(0, 240, 255, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
}
.dash-system-icon-wrap .material-symbols-outlined {
    color: #00f0ff;
    font-size: 1.5rem;
}
.dash-system-content {
    flex: 1;
}
.dash-system-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}
.system-messages {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.system-messages .msg-item {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ===== Daily Log ===== */
.dash-dailylog {
    padding: 4px 0 24px;
}
.dash-dailylog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.daily-login-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.daily-login-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--purple-400);
    cursor: pointer;
}
.daily-log-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.log-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(157, 0, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(157, 0, 255, 0.1);
    font-size: 0.85rem;
}
.log-entry .log-xp {
    color: #00f0ff;
    font-weight: 700;
    margin-left: auto;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ===== Stats display for dashboard ===== */
.stats-quote {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}




/* ===== Highlight helpers ===== */
.highlight-blue { color: var(--blue-400); font-weight: 600; }
.highlight-gold { color: var(--gold-400); font-weight: 600; }
.highlight-red { color: var(--red-400); font-weight: 600; }
.highlight-green { color: var(--green-400); font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .dash-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .dash-nav-card {
        padding: 14px 8px;
    }
    .dash-avatar-frame {
        width: 100px;
        height: 100px;
    }
    .dash-player-name-row h2 {
        font-size: 1.3rem;
    }
}
