/* ===================================================================
   Momentum Wellness 2.0 – Dashboard Styles (NEW)
   Includes:
   ✓ Greeting
   ✓ First Login Banner
   ✓ Shortcut Bar
   ✓ Snapshot Cards
   ✓ Progress Bars
   ✓ Articles Section
   =================================================================== */


/* ----------------------------------------
   GLOBAL SPACING + PAGE LAYOUT
   ✅ MOVED TO core1.css for universal consistency
   ---------------------------------------- */



/* ===================================================================
   GREETING SECTION
   =================================================================== */
.greeting {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}



/* ===================================================================
   FIRST LOGIN BANNER
   =================================================================== */
.first-login-banner {
    background: #222b2a;
    border: 2px solid #5affc6;
    color: #5affc6;
    padding: 1.2em 1em;
    border-radius: 1em;
    margin: 1.3em 0 1.1em 0;
    text-align: center;
    box-shadow: 0 0 16px #17887688;
    position: relative;
}

.first-login-banner a {
    color: #5affc6;
    font-weight: 600;
    text-decoration: underline;
}

.first-login-banner .close-btn {
    position: absolute;
    top: 4px;
    right: 10px;
    background: none;
    border: none;
    color: #5affc6;
    font-size: 1.6rem;
    cursor: pointer;
}



/* ===================================================================
   SHORTCUT BAR
   =================================================================== */
.shortcut-bar {
    background: var(--card-bg);
    padding: 12px;
    border-radius: var(--radius);
    margin-top: 12px;
    margin-bottom: 22px;
    box-shadow: 0 2px 6px var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shortcut-actions button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 14px;
    font-size: 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity .2s ease;
}

.shortcut-actions button:hover {
    opacity: 0.85;
}



/* ===================================================================
   SNAPSHOT SECTION
   =================================================================== */
.snapshot h2 {
    margin: 18px 0 12px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===================================================================
   CARD ATTENTION GLOW (for cards with 0 value)
   =================================================================== */
.card.needs-attention {
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.5),
                0 2px 8px var(--card-shadow);
}


/* ===================================================================
   CARD VALUE TEXT
   =================================================================== */
#stepsCardValue,
#waterCardValue,
#sleepCardValue,
#caloriesCardValue {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 10px 0 6px 0;
}

/* Empty State Design (for 0 values) */
.empty-state {
    padding: 6px 8px;
    text-align: center;
    background: linear-gradient(135deg, rgba(90, 255, 198, 0.05), rgba(90, 255, 198, 0.02));
    border-radius: 10px;
    margin: 8px 0 6px 0;
}

.empty-state-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.empty-state-icon {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.empty-state-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

.empty-state-action {
    font-size: 0.75rem;
    color: rgba(90, 255, 198, 0.7);
    font-weight: 400;
    opacity: 0.8;
}

.card.has-empty-state {
    box-shadow: 0 0 20px rgba(90, 255, 198, 0.15),
                0 2px 8px var(--card-shadow);
}

/* ===================================================================
   STEPS CARD PROGRESS INDICATORS (Subtle & Modern)
   =================================================================== */

/* Card needs position relative for absolute children */
#stepsCard {
    position: relative;
    overflow: hidden;
}

/* Heat map background gradient */
.card-progress-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    transition: all 0.8s ease;
    opacity: 0;
    z-index: 0;
}

/* Card content sits above background */
.card-content {
    position: relative;
    z-index: 1;
}

/* Circular progress ring (bottom right corner) */
.steps-progress-ring {
    position: absolute;
    bottom: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(90, 255, 198, 0.08);
    stroke-width: 2;
}

.progress-ring-fill {
    fill: none;
    stroke: rgba(90, 255, 198, 0.4);
    stroke-width: 2;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.8s ease;
}



/* ===================================================================
   PROGRESS BARS (Momentum style)
   =================================================================== */
.progress-wrapper {
    margin-top: 4px;
}

.progress-bar {
    width: 100%;
    background: rgba(255,255,255,0.10);
    height: 10px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar.yesterday {
    height: 6px;
}

.progress-bar.burn {
    height: 6px;
    margin-top: 6px;
}

.progress {
    height: 100%;
    width: 0%;
    border-radius: 8px;
    transition: width 0.35s ease-out;
}

/* Today bars */
.progress-green { background: #61ff82; }
.progress-blue  { background: #44c8ff; }

/* Yesterday bar */
.progress-yesterday { background: rgba(255,255,255,0.2); }

/* Calories burned bar */
#caloriesBurnProgress {
    background: #ff5252;
}



/* ===================================================================
   PROGRESS LABELS
   =================================================================== */
.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-top: 4px;
    color: var(--text-muted);
}

.progress-labels.small {
    font-size: 0.76rem;
}



/* ===================================================================
   ARTICLE SECTION
   =================================================================== */
.articles {
    margin-top: 28px;
}

.articles h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.featured-swiper {
    border-radius: 12px;
    overflow: hidden;
}

.swiper-pagination-bullet {
    background: var(--primary);
}



