/* Dashboard overview: welcome, stats, current work, and activity styles. */

/* --- Dashboard --- */
/* --- Welcome / Landing Page --- */
.welcome-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: calc(100vh - 48px - 48px);
}

.welcome-card {
    text-align: center;
    max-width: 420px;
    padding: 48px 32px;
}

.welcome-icon {
    margin-bottom: 24px;
}

.welcome-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.welcome-cta {
    display: inline-block;
    padding: 10px 28px;
    font-size: 14px;
}

.welcome-hint {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.welcome-link {
    color: var(--accent);
    text-decoration: none;
}

.welcome-link:hover {
    text-decoration: underline;
}

.dashboard {
    max-width: 1280px;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 24px;
    gap: 16px;
}

.dashboard-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.dashboard-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-subtitle {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* --- Stats Grid --- */
.dashboard-credits-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.welcome-page .dashboard-credits-strip {
    width: min(620px, 100%);
    margin-bottom: 0;
}

.dashboard-credits-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-credits-kicker {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.dashboard-credits-main strong {
    color: var(--text-primary);
    font-size: 22px;
    line-height: 1.2;
}

.dashboard-credits-main span:last-child,
.dashboard-credits-actions span {
    color: var(--text-secondary);
    font-size: 14px;
}

.dashboard-credits-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }

    .dashboard-credits-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-credits-actions {
        justify-content: flex-start;
    }
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color var(--transition-speed);
}

.stat-card:hover {
    border-color: var(--text-muted);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-secondary);
}

.stat-icon svg {
    width: 18px;
    height: 18px;
}

.sparkline {
    flex-shrink: 0;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-card-sub {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Current Work Banner --- */
.current-work {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    margin-bottom: 28px;
}

.current-work-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.current-work-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.current-work-project {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.current-work-detail {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.current-work-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.current-work-pct {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.current-work-eta {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Dashboard Page --- */
.dashboard-page {
    max-width: 1280px;
}

/* --- Recent Activity Section --- */
.dashboard-activity-section {
    margin-top: 32px;
}

.dashboard-activity-section .section-title {
    display: block;
    margin-bottom: 14px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background var(--transition-speed);
}

.activity-row:hover {
    background: var(--bg-secondary);
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.activity-project {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.activity-action {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
