/* Modern PayPal-style Dashboard Styles */
.dashboard-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 0;
}

.dashboard-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 1200px) {
    .dashboard-content-wrapper {
        max-width: 1200px;
    }
}

@media (max-width: 992px) {
    .dashboard-content-wrapper {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}

.modern-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* PayPal-style Financial Snapshot Chart */
#financialSnapshot {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#financialSnapshot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0070ba 0%, #47bce8 50%, #0070ba 100%);
}

#financialSnapshot .chart-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.025em;
}

#financialSnapshot .chart-title i {
    color: #0070ba;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #0070ba 0%, #47bce8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#financialSnapshot .apex-charts {
    position: relative;
    z-index: 1;
}

/* Enhanced chart container styling */
#assetsLiabilitiesChart {
    position: relative;
    min-height: 300px;
}

/* PayPal-style tooltip enhancements */
.modern-tooltip {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-tooltip .tooltip-arrow::before {
    border-top-color: #2c3e50;
}

.tooltip-header {
    background: linear-gradient(135deg, #0070ba 0%, #47bce8 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 0.9rem;
    margin: -0.5rem -0.5rem 0.5rem -0.5rem;
    text-align: center;
}

.tooltip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-item:last-child {
    border-bottom: none;
}

.tooltip-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.tooltip-label {
    color: #bdc3c7;
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
}

.tooltip-value {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

/* Chart animation enhancements */
.apexcharts-canvas {
    transition: all 0.3s ease;
}

.apexcharts-canvas:hover {
    transform: scale(1.02);
}

/* Responsive chart styling */
@media (max-width: 768px) {
    #financialSnapshot .chart-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    #assetsLiabilitiesChart {
        min-height: 250px;
    }
    
    .modern-tooltip {
        max-width: 250px;
        font-size: 0.8rem;
    }
}

.welcome-section {
    background: linear-gradient(135deg, #0576b9 0%, #47bce8 100%);
    color: white;
    border-radius: 20px;
    padding: 1.25rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

/* Enhanced Tooltip Styles */
.modern-tooltip {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    max-width: 300px;
}

.modern-tooltip .tooltip-arrow::before {
    border-top-color: #2c3e50;
}

.tooltip-header {
    background: linear-gradient(135deg, #0576b9 0%, #47bce8 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 0.9rem;
    margin: -0.5rem -0.5rem 0.5rem -0.5rem;
}

.tooltip-content {
    color: white;
    padding: 0 0.5rem 0.5rem 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Motivational Message Styles */
.motivational-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 189, 88, 0.95) 0%, rgba(255, 193, 7, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.motivational-content {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 500px;
}

.motivational-content .achievement-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    animation: motivational-pulse 2s infinite;
}

@keyframes motivational-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.motivational-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Second Entry Celebration Styles */
.second-entry-celebration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 181, 126, 0.95) 0%, rgba(40, 167, 69, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.celebration-content {
    text-align: center;
    color: white;
    padding: 1rem;
    max-width: 350px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.celebration-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: bold;
}

.celebration-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.celebration-actions {
    margin-top: 0.75rem;
}

.celebration-view-chart-btn {
    background: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #ffffff !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 160px !important;
}

.celebration-view-chart-btn:hover {
    background: #f8f9fa !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    text-decoration: none !important;
}

.celebration-view-chart-btn i {
    margin-right: 0.4rem;
    color: inherit !important;
}

.celebration-content .achievement-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    animation: celebration-pulse 1.5s infinite;
}

@keyframes celebration-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.05) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.celebration-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: celebration-text 2s infinite;
}

@keyframes celebration-text {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* First-time User Experience Styles */
.first-time-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 118, 185, 0.95) 0%, rgba(71, 188, 232, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.first-time-content {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 500px;
}

.achievement-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
    color: #333;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5); }
}

.first-time-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.motivational-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.next-steps {
    margin-bottom: 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

.step-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: #ffd700;
}

.progress-indicator {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    margin-bottom: 0.75rem;
}

.progress-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    animation: progress-glow 2s infinite;
}

@keyframes progress-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

.progress-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Urgency Button Styles */
.urgency-btn {
    position: relative;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    border: none !important;
    animation: urgency-pulse 2s infinite;
}

@keyframes urgency-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.urgency-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    animation: urgency-blink 1.5s infinite;
}

@keyframes urgency-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Enhanced Metric Cards for First-time Users */
.metric-card.first-time .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0576b9 0%, #47bce8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-change.positive {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

.metric-change.positive i {
    color: #ffd700;
    margin-right: 0.5rem;
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .first-time-overlay {
    background: linear-gradient(135deg, rgba(5, 118, 185, 0.9) 0%, rgba(71, 188, 232, 0.9) 100%);
}

[data-bs-theme="dark"] .progress-indicator {
    background: rgba(0, 0, 0, 0.2);
}

/* Dark theme adjustments for celebration */
[data-bs-theme="dark"] .second-entry-celebration {
    background: linear-gradient(135deg, rgba(44, 181, 126, 0.9) 0%, rgba(40, 167, 69, 0.9) 100%);
}

/* Dark theme adjustments for motivational message */
[data-bs-theme="dark"] .motivational-message {
    background: linear-gradient(135deg, rgba(245, 189, 88, 0.9) 0%, rgba(255, 193, 7, 0.9) 100%);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .first-time-content {
        padding: 1.5rem;
    }
    
    .first-time-content h3 {
        font-size: 1.5rem;
    }
    
    .motivational-text {
        font-size: 1rem;
    }
    
    .step-item {
        font-size: 0.9rem;
    }
    
    .achievement-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.metric-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: none;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 1rem auto;
    color: white;
}

.metric-icon.primary {
    background: linear-gradient(135deg, #0576b9 0%, #47bce8 100%);
}

.metric-icon.success {
    background: linear-gradient(135deg, #2cb57e 0%, #28a745 100%);
}

.metric-icon.warning {
    background: linear-gradient(135deg, #f5bd58 0%, #ffc107 100%);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1d2d42;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.metric-change {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.metric-change.positive {
    background: rgba(44, 181, 126, 0.1);
    color: #2cb57e;
}

.metric-change.negative {
    background: rgba(245, 110, 80, 0.1);
    color: #f56e50;
}

/* Ensure growth rate indicators get pill styling */
#currentGrowthRate {
    background: rgba(245, 110, 80, 0.1);
    color: #f56e50;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.chart-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0576b9 0%, #47bce8 50%, #2cb57e 100%);
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: -0.025em;
    text-align: center;
}

.chart-title i {
    color: #0576b9;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #0576b9 0%, #47bce8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    transition: all 0.3s ease;
    text-align: center;
}

.chart-card:hover .chart-value {
    transform: scale(1.02);
    color: #0576b9;
}

.chart-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.modern-btn {
    background: linear-gradient(135deg, #0576b9 0%, #47bce8 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(5, 118, 185, 0.2);
}

.modern-btn:hover {
    background: linear-gradient(135deg, #47bce8 0%, #0576b9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 118, 185, 0.3);
    color: white;
}

.modern-btn i {
    transition: transform 0.3s ease;
}

.modern-btn:hover i {
    transform: rotate(90deg);
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .modern-card,
[data-bs-theme="dark"] .metric-card,
[data-bs-theme="dark"] .chart-card {
    background: #121e2d;
    border: 1px solid #2d3748;
}

[data-bs-theme="dark"] .metric-value {
    color: #ffffff;
}

[data-bs-theme="dark"] .metric-label {
    color: #8fa6bf;
}

[data-bs-theme="dark"] .chart-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .chart-value {
    color: #ffffff;
}

[data-bs-theme="dark"] .chart-subtitle {
    color: #8fa6bf;
}

[data-bs-theme="dark"] .chart-card::before {
    background: linear-gradient(90deg, #0576b9 0%, #47bce8 50%, #2cb57e 100%);
}

[data-bs-theme="dark"] .chart-card:hover .chart-value {
    color: #47bce8;
}

/* Dark theme for Financial Snapshot */
[data-bs-theme="dark"] #financialSnapshot {
    background: #121e2d;
    border: 1px solid #2d3748;
}

[data-bs-theme="dark"] #financialSnapshot .chart-title {
    color: #ffffff;
}

[data-bs-theme="dark"] #financialSnapshot .chart-title i {
    background: linear-gradient(135deg, #47bce8 0%, #0070ba 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .dashboard-container {
    background: linear-gradient(135deg, #0d1117 0%, #121e2d 100%);
}

[data-bs-theme="dark"] .dashboard-content-wrapper {
    /* Maintains the same width constraints in dark mode */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-content-wrapper {
        padding: 0 0.75rem;
    }

    .welcome-section {
        padding: 1rem 1.5rem;
        margin-bottom: 1rem;
    }

    .metric-card {
        padding: 1rem;
        margin-bottom: 3rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .chart-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .chart-value {
        font-size: 1.25rem;
    }

    .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Modern Tooltip Styles */
.modern-tooltip {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    min-width: 200px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.tooltip-header {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.tooltip-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 13px;
}

.tooltip-item:last-child {
    margin-bottom: 0;
}

.tooltip-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.tooltip-label {
    color: #6c757d;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.tooltip-value {
    font-weight: 600;
    color: #333;
    margin-left: auto;
}

[data-bs-theme="dark"] .modern-tooltip {
    background: #1a1d29;
    border-color: #2a2d3a;
}

[data-bs-theme="dark"] .tooltip-header {
    color: #ffffff;
    border-bottom-color: #2a2d3a;
}

[data-bs-theme="dark"] .tooltip-label {
    color: #8fa6bf;
}

[data-bs-theme="dark"] .tooltip-value {
    color: #ffffff;
} 

/* Premium AI Advisory Tab Styling - High Specificity */
/* Override all other sidebar styles for AI advisory tab */
body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium,
body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium,
#sidebar-menu ul li.ai-advisory-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 8px;
    margin: 8px 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    list-style: none;
}

#sidebar-menu ul li.ai-advisory-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#sidebar-menu ul li.ai-advisory-premium:hover::before {
    left: 100%;
}

body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium > a,
body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium > a,
#sidebar-menu ul li.ai-advisory-premium > a {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 2 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}

body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium > a:hover,
body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium > a:hover,
#sidebar-menu ul li.ai-advisory-premium > a:hover {
    background: transparent !important;
    color: white !important;
}

body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium > a i,
body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium > a i,
#sidebar-menu ul li.ai-advisory-premium > a i {
    color: white !important;
    font-size: 1.1em !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
    width: 20px !important;
    text-align: center !important;
}

body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium > a span,
body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium > a span,
#sidebar-menu ul li.ai-advisory-premium > a span {
    color: white !important;
    font-weight: 600 !important;
}

#sidebar-menu ul li.ai-advisory-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

#sidebar-menu ul li.ai-advisory-premium .premium-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    font-size: 0.65em;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 3;
}

#sidebar-menu ul li.ai-advisory-premium .premium-badge::before {
    content: '✨';
    position: absolute;
    top: -1px;
    left: -1px;
    font-size: 0.7em;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0.8;
}

#sidebar-menu ul li.ai-advisory-premium .premium-badge::after {
    content: '✨';
    position: absolute;
    bottom: -1px;
    right: -1px;
    font-size: 0.5em;
    animation: sparkle 2s ease-in-out infinite 1s;
    opacity: 0.6;
}

/* Premium pulse animation */
@keyframes premium-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
}

#sidebar-menu ul li.ai-advisory-premium {
    animation: premium-pulse 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium,
    body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium,
    #sidebar-menu ul li.ai-advisory-premium {
        margin: 6px 8px !important;
    }
    
    body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium > a,
    body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium > a,
    #sidebar-menu ul li.ai-advisory-premium > a {
        padding: 10px 12px !important;
    }
    
    body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium .premium-badge,
    body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium .premium-badge,
    #sidebar-menu ul li.ai-advisory-premium .premium-badge {
        font-size: 0.6em !important;
        padding: 1px 4px !important;
    }
}

/* Additional high-specificity overrides to ensure AI advisory tab works everywhere */
body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium,
body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium,
body[data-sidebar-size=sm] #sidebar-menu ul li.ai-advisory-premium,
body[data-sidebar-size=md] #sidebar-menu ul li.ai-advisory-premium,
#sidebar-menu ul li.ai-advisory-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    border-radius: 8px !important;
    margin: 8px 12px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
    list-style: none !important;
    animation: premium-pulse 3s ease-in-out infinite !important;
}

body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium > a,
body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium > a,
body[data-sidebar-size=sm] #sidebar-menu ul li.ai-advisory-premium > a,
body[data-sidebar-size=md] #sidebar-menu ul li.ai-advisory-premium > a,
#sidebar-menu ul li.ai-advisory-premium > a {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 2 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}

body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium > a i,
body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium > a i,
body[data-sidebar-size=sm] #sidebar-menu ul li.ai-advisory-premium > a i,
body[data-sidebar-size=md] #sidebar-menu ul li.ai-advisory-premium > a i,
#sidebar-menu ul li.ai-advisory-premium > a i {
    color: white !important;
    font-size: 1.1em !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
    width: 20px !important;
    text-align: center !important;
}

body[data-sidebar=dark] #sidebar-menu ul li.ai-advisory-premium > a span,
body[data-sidebar=brand] #sidebar-menu ul li.ai-advisory-premium > a span,
body[data-sidebar-size=sm] #sidebar-menu ul li.ai-advisory-premium > a span,
body[data-sidebar-size=md] #sidebar-menu ul li.ai-advisory-premium > a span,
#sidebar-menu ul li.ai-advisory-premium > a span {
    color: white !important;
    font-weight: 600 !important;
} 

.celebration-content .achievement-badge {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Financial Health Score Styles */
.health-score-card {
    background: linear-gradient(135deg, rgba(30, 34, 44, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.health-score-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10B981 0%, #3B82F6 25%, #F59E0B 50%, #EF4444 75%, #10B981 100%);
}

.health-score-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.health-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.health-score-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.health-score-title i {
    color: #10B981;
    margin-right: 0.5rem;
}

.health-score-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 1.5rem;
    justify-content: center;
}

.health-score-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
    justify-content: center;
}

.health-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #10B981 0deg, #3B82F6 90deg, #F59E0B 180deg, #EF4444 270deg, #10B981 360deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    margin: 0 auto;
}

.health-score-circle::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.health-score-value {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    z-index: 1;
    position: relative;
    line-height: 1;
}

.health-score-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    z-index: 1;
    position: relative;
}

.health-score-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.health-score-grade {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: capitalize;
}

.health-score-trend {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.health-score-next {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-style: italic;
}

.health-score-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.breakdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: 0 -0.5rem;
}

.breakdown-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 140px;
    text-transform: capitalize;
}

.breakdown-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.breakdown-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    border-radius: 5px;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #EF4444 0%, #F59E0B 25%, #3B82F6 50%, #10B981 100%);
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.breakdown-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    border-radius: 5px;
}

.breakdown-value {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    min-width: 45px;
    text-align: right;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    backdrop-filter: blur(4px);
}

.health-score-recommendations {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendation-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.recommendation-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.recommendation-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.recommendation-priority.high {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.recommendation-priority.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
}

.recommendation-priority.low {
    background: rgba(16, 185, 129, 0.2);
    color: #86EFAC;
}

.recommendation-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.recommendation-action {
    color: #3B82F6;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mobile Health Score Adjustments */
@media (max-width: 768px) {
    .health-score-card {
        padding: 1.5rem;
    }
    
    .health-score-content {
        flex-direction: column;
        gap: 2rem;
    }

    .health-score-main {
        justify-content: center;
        flex-direction: column;
        gap: 1.5rem;
    }

    .health-score-circle {
        width: 120px;
        height: 120px;
    }

    .health-score-circle::before {
        width: 100px;
        height: 100px;
    }

    .health-score-value {
        font-size: 1.75rem;
    }

    .health-score-breakdown {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
    }

    .breakdown-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem 0;
    }

    .breakdown-label {
        min-width: 120px;
        font-size: 0.8rem;
    }

    .breakdown-bar {
        width: auto;
        flex: 1;
    }

    .breakdown-value {
        min-width: 40px;
        font-size: 0.8rem;
    }
} 

/* Phase 1: Enhanced Onboarding & Gamification Styles */

/* Debug Logger Styles */
.debug-logger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.debug-logger.show {
    display: block;
}

.debug-logger .log-entry {
    margin-bottom: 5px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

/* Onboarding Nudge Styles */
.onboarding-nudge {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
    animation: slideInRight 0.3s ease-out;
}

.nudge-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.nudge-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nudge-header i {
    margin-right: 10px;
    font-size: 16px;
}

.nudge-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nudge-body {
    padding: 20px;
    color: #e2e8f0;
}

.nudge-body p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.progress-bar {
    background: #374151;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.nudge-actions {
    display: flex;
    gap: 10px;
}

.nudge-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
}

/* Smart Notification Styles */
.smart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
    animation: slideInRight 0.3s ease-out;
}

.smart-notification.reminder {
    border-left: 4px solid #f59e0b;
}

.smart-notification.celebration {
    border-left: 4px solid #10b981;
}

.smart-notification.engagement {
    border-left: 4px solid #3b82f6;
}

.smart-notification.warning {
    border-left: 4px solid #ef4444;
}

.notification-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.notification-header {
    background: rgba(59, 130, 246, 0.1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #475569;
}

.notification-header i {
    margin-right: 10px;
    font-size: 16px;
    color: #3b82f6;
}

.notification-title {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-body {
    padding: 20px;
    color: #cbd5e1;
}

.notification-body p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.notification-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
}

/* Gamification Styles */
.points-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    animation: pointsFloat 2s ease-out forwards;
}

.points-content {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
}

.points-content i {
    font-size: 20px;
}

@keyframes pointsFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(0.8);
    }
}

.achievement-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    animation: achievementPop 5s ease-out forwards;
}

.achievement-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid #fbbf24;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    min-width: 300px;
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.achievement-text h4 {
    color: #fbbf24;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

/* Achievement toast (header) */
.achievement-toast {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 2500;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.achievement-toast .toast-content {
  display: flex;
  gap: 10px;
  align-items: center;
}
.achievement-toast .toast-icon {
  font-size: 20px;
}
.achievement-toast .toast-title {
  color: #e5e7eb;
  font-weight: 600;
  font-size: 13px;
}
.achievement-toast .toast-sub {
  color: #9ca3af;
  font-size: 12px;
}
.achievement-toast .toast-actions {
  margin-left: 8px;
  display: flex;
  gap: 6px;
}
.highlight-achievement {
  outline: 2px solid #3b82f6;
  border-radius: 8px;
}

.achievement-text p {
    color: #e2e8f0;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
}

.achievement-text small {
    color: #9ca3af;
    font-size: 12px;
}

@keyframes achievementPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Achievements Modal */
.achievements-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.achievements-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 15px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.achievements-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 15px 15px 0 0;
}

.achievements-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievements-body {
    padding: 20px;
}

.points-summary {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.points-summary h4 {
    color: #3b82f6;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

/* Compact milestone progress */
.milestone-compact {
  margin-top: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px;
}
.milestone-compact .milestone-title {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
}
.milestone-row {
  display: grid;
  grid-template-columns: 110px 1fr 60px;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.milestone-bar {
  height: 8px;
  background: #1f2937;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #374151;
}
.milestone-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
}

.achievements-list {
    display: grid;
    gap: 15px;
}

.achievement-item {
    background: rgba(75, 85, 99, 0.3);
    border: 1px solid #475569;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.achievement-item.unlocked {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.achievement-item.locked {
    opacity: 0.6;
    filter: grayscale(1);
}

.achievement-icon {
    font-size: 32px;
    min-width: 40px;
    text-align: center;
}

.achievement-info {
    flex: 1;
}

.achievement-info h5 {
    color: #e2e8f0;
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.achievement-info p {
    color: #9ca3af;
    margin: 0 0 5px 0;
    font-size: 13px;
    line-height: 1.4;
}

.achievement-info .points {
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
}

/* Animation Keyframes */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .onboarding-nudge,
    .smart-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .achievements-content {
        margin: 20px;
        max-width: none;
    }
    
    .achievement-item {
        flex-direction: column;
        text-align: center;
    }
    
    .achievement-icon {
        margin-bottom: 10px;
    }
}



/* Enhanced User Experience Styles */
.user-progress-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 10px;
    padding: 15px;
    color: #e2e8f0;
    font-size: 12px;
    min-width: 200px;
}

.progress-indicator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-indicator-title {
    font-weight: 600;
    color: #3b82f6;
}

.progress-indicator-value {
    color: #10b981;
    font-weight: bold;
}

.progress-indicator-bar {
    background: #374151;
    border-radius: 5px;
    height: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-indicator-fill {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-indicator-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
}

/* Value Demonstration Styles */
.value-demo {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.value-demo h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.value-demo p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.value-demo .highlight {
    font-weight: bold;
    font-size: 16px;
    color: #fbbf24;
}

/* Step Completion Message Styles */
.step-completion-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    animation: stepCompletionPop 3s ease-out forwards;
}

.completion-content {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
}

.completion-icon {
    font-size: 32px;
    animation: bounce 0.6s ease-out;
}

.completion-text h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.completion-text p {
    margin: 0 0 5px 0;
    font-size: 14px;
    opacity: 0.9;
}

.completion-text small {
    font-size: 12px;
    opacity: 0.8;
    color: #fbbf24;
}

@keyframes stepCompletionPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-8px,0);
    }
    70% {
        transform: translate3d(0,-4px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}

/* Onboarding Completion Styles */
.onboarding-completion {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    animation: completionPop 5s ease-out forwards;
}

.onboarding-completion .completion-content {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    text-align: center;
    min-width: 350px;
}

.onboarding-completion .completion-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 0.6s ease-out;
}

.onboarding-completion .completion-text h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
}

.onboarding-completion .completion-text p {
    color: white;
    margin-bottom: 5px;
    font-size: 16px;
    opacity: 0.9;
}

.onboarding-completion .completion-text small {
    color: #fbbf24;
    font-size: 14px;
    font-weight: 600;
}

.onboarding-completion .btn {
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

@keyframes completionPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Enhanced Button Styles */
.btn-urgency {
    position: relative;
    overflow: hidden;
}

.btn-urgency::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: urgencyShine 2s infinite;
}

@keyframes urgencyShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.urgency-badge {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
} 