/* Clean Minimal Dashboard Styles */

/* Main Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Clean Widget Styles */
.widget {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

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

.widget h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 2px;
    transition: width 0.8s ease;
}

/* Special widget styles */
.stress-emoji {
    font-size: 3rem;
    text-align: center;
    margin: 8px 0;
}

#mealSuggestion {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Clean Insights Section */
.clean-layout {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.clean-insights h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.insight-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.insight-stat:hover {
    background: var(--hover-bg);
    transform: translateY(-1px);
}

.insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.insight-info {
    flex: 1;
}

.insight-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.insight-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

/* Simple Progress Section */
.simple-progress-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.simple-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
}

.progress-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.progress-item:hover {
    background: var(--hover-bg);
    transform: translateY(-1px);
}

.progress-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Streak Widgets - Simplified */
.streak-widgets-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.streak-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.streak-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.streak-widget:hover {
    background: var(--hover-bg);
    transform: translateY(-1px);
}

.streak-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.streak-content {
    flex: 1;
}

.streak-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.streak-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.streak-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Section Header */
.section-header {
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Enhanced Summary Widget */
.summary-widget .widget-content {
    line-height: 1.6;
}

.summary-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .simple-progress-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .streak-widgets {
        grid-template-columns: 1fr;
    }
    
    .widget {
        padding: 20px;
    }
    
    .clean-layout {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .simple-progress-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .insight-stat {
        padding: 12px;
    }
    
    .progress-item {
        padding: 12px;
    }
    
    .streak-widget {
        padding: 12px;
    }
}

/* Clean Animation */
.clean-layout {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Enhancements */
.dark-mode .widget {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark-mode .clean-layout {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .insight-stat:hover,
.dark-mode .progress-item:hover,
.dark-mode .streak-widget:hover {
    background: var(--active-bg);
}

/* Remove any data entry related styles */
.quick-actions-panel,
.quick-action-btn,
.insight-action,
.goals-list,
.daily-goals-section {
    display: none !important;
}

/* Ensure clean, minimal appearance */
* {
    box-sizing: border-box;
}

.dashboard-grid .widget {
    position: relative;
    overflow: hidden;
}

.dashboard-grid .widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    opacity: 0.8;
}
