/* ================================================
 * DASHBOARD WIDGETS v4.4 — Phase 4 new widget styles
 * Goals business + Streaks
 * ================================================ */

/* ── Goals business widget ──────────────────────── */
.dw-goals-content { padding: 4px 0; }
.dw-goals-month-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dw-goals-month-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    text-transform: capitalize;
}
.dw-goals-month-pct {
    font-size: 11px;
    color: var(--text-secondary, #888);
}

.dw-goal-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dw-goal-item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }

.dw-goal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.dw-goal-icon { font-size: 14px; }
.dw-goal-title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}
.dw-goal-status {
    font-size: 11px;
    font-weight: 600;
}

.dw-goal-bar-wrap { margin-bottom: 6px; }
.dw-goal-bar-track {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: visible;
    position: relative;
}
.dw-goal-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
    min-width: 2px;
}
.dw-goal-bar-marker {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 14px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
    transform: translateX(-1px);
}

.dw-goal-values {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.dw-goal-current {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}
.dw-goal-target {
    font-size: 11px;
    color: var(--text-secondary, #888);
}

/* Empty state */
.dw-goals-empty {
    text-align: center;
    padding: 20px 10px;
}
.dw-goals-empty-icon { font-size: 32px; margin-bottom: 8px; }
.dw-goals-empty-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 4px;
}
.dw-goals-empty-sub {
    font-size: 12px;
    color: var(--text-secondary, #888);
}

/* ── Streaks widget ────────────────────────────── */
@keyframes streaksPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.dw-streaks-content {
    text-align: center;
    padding: 8px 0;
}

.dw-streaks-main {
    margin-bottom: 12px;
}

.dw-streaks-fire {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 4px;
    display: inline-block;
}
.dw-streaks-fire--animate {
    animation: streaksPulse 2s ease-in-out infinite;
}

.dw-streaks-streak {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
}

.dw-streaks-unit {
    font-size: 12px;
    color: var(--text-secondary, #888);
    margin-top: 2px;
}

.dw-streaks-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0;
}
.dw-streaks-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: transform 0.3s ease-out, background 0.3s ease-out, border-color 0.3s ease-out, color 0.3s ease-out, opacity 0.3s ease-out;
}
.dw-streaks-dot--active {
    transform: scale(1.1);
    box-shadow: 0 0 6px rgba(139,92,246,0.4);
}

.dw-streaks-maha {
    font-size: 12px;
    color: var(--text-secondary, #ccc);
    font-style: italic;
    padding: 8px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-top: 8px;
    line-height: 1.4;
}

.dw-streaks-best {
    font-size: 11px;
    color: var(--text-secondary, #888);
    margin-top: 8px;
}
