:root {
    --bg-main: #f8fafc;
    /* Lighter background */
    --bg-panel: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent-primary: #10b981;
    --accent-primary-hover: #059669;
    --accent-orange: #f97316;
    --accent-yellow: #eab308;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 80% -10%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 110%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

.dashboard {
    max-width: 1000px;
    /* Tighter containment for light theme */
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), #059669);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo p {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-badge {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.text-orange {
    color: var(--accent-orange);
}

.text-yellow {
    color: var(--accent-yellow);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
    color: var(--text-main);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.profile-pic img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--bg-panel);
    box-shadow: 0 0 0 1px var(--border-color);
}

/* Navigation Tabs */
.app-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.nav-tab {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.nav-tab i {
    font-size: 1.1rem;
}

.nav-tab:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
}

.nav-tab.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
}

/* Main Layout */
.main-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

/* Left Column */
.date-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.date-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Promo Card for Activity */
.activity-promo-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.3);
}

.promo-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.promo-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.promo-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.promo-content h3 {
    color: var(--accent-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 700;
}

.promo-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.1;
}

.promo-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s;
}

.start-btn:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Spiritual Armory Section */
.armory-section {
    margin-top: 40px;
}

.armory-header {
    margin-bottom: 20px;
}

.armory-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.armory-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.armory-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.armory-card {
    display: flex;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.armory-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(16, 185, 129, 0.3);
}

.armory-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.challenge-card .card-icon {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
}

.bank-card .card-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
}

.testimony-card .card-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    /* Blue */
}

.armory-card .card-content {
    flex-grow: 1;
}

.armory-card h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.armory-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.arrow-icon {
    color: var(--border-color);
    transition: color 0.3s;
}

.armory-card:hover .arrow-icon {
    color: var(--accent-primary);
}

/* Right Column Widgets */
.widget-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.widget-card:hover {
    box-shadow: var(--shadow-md);
}

/* Progress Module */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.level-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.progress-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.circular-progress {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.circular-progress .bg {
    stroke: var(--bg-main);
}

.circular-progress .fg {
    stroke: var(--accent-primary);
    stroke-dasharray: 251.2;
    /* 2 * pi * 40 */
    stroke-dashoffset: 251.2;
    /* Starts empty */
    transition: stroke-dashoffset 1s ease-out;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.progress-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.progress-text strong {
    color: var(--accent-primary);
}

/* Affirmation Module */
.affirmation-module {
    background: linear-gradient(135deg, var(--bg-panel) 0%, #f0fdf4 100%);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    color: rgba(16, 185, 129, 0.2);
}

.affirmation-text {
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-main);
    text-align: center;
    line-height: 1.6;
    margin: 15px 0 20px;
    position: relative;
    z-index: 1;
}

.affirmation-footer {
    display: flex;
    justify-content: center;
}

.small-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.small-btn:hover {
    color: var(--accent-primary);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

/* Calendar Widget Adjustment */
.calendar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
    color: var(--text-main);
}

.week-days {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

.day .dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.day.completed .dot {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-primary);
}

.day.completed .dot::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.55rem;
    color: var(--accent-primary);
}

.day.active .dot {
    background: white;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.day.active span {
    color: var(--text-main);
    font-weight: 700;
}

.consistency-message {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* Tip Card */
.tip-card {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05), transparent);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.tip-icon {
    font-size: 1.5rem;
    color: #ca8a04;
    background: rgba(234, 179, 8, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.tip-text h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 5px;
}

.tip-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Celebration Overlay */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.celebration-overlay.active {
    opacity: 1;
    visibility: visible;
}

.celebration-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    max-width: 360px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-lg);
}

.celebration-overlay.active .celebration-content {
    transform: scale(1) translateY(0);
}

.celebration-icon {
    font-size: 3.5rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    animation: bouncePop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite alternate;
}

@keyframes bouncePop {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.celebration-content h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.celebration-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.streak-bump {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.close-celebration {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.close-celebration:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.4);
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
    .dashboard {
        padding: 0 16px 30px;
    }

    .app-header {
        padding: 20px 0;
        margin-bottom: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .user-stats {
        width: 100%;
        justify-content: space-between;
    }

    .main-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .date-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .date-header h2 {
        font-size: 1.5rem;
    }

    .promo-content {
        padding: 30px 20px;
    }

    .promo-content h2 {
        font-size: 1.8rem;
    }

    .start-btn {
        width: 100%;
        justify-content: center;
    }
}