/* 
 * Dashboard Page Styles
 * FitTeen Australia Theme
 */

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Stats Container */
.stats-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stats-container h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.stats-container p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.stat-source {
    font-size: 0.7rem;
    opacity: 0.7;
    font-style: italic;
}

/* Sidebar */
.fact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fact-of-day {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.fact-of-day h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.fact-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.fact-content strong {
    font-weight: 700;
}

.fact-content small {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
    margin-top: 0.5rem;
}

.quick-actions {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quick-actions h3,
.quick-actions h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.action-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-orange), #ffb74d);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    text-decoration: none;
}

.action-btn:hover {
    background: linear-gradient(135deg, #f57c00, #ffb74d);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* Personal Health Goals */
.goals-section {
    margin-top: 3rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.goals-section h3 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.goal-card {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-2px);
}

.goal-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.goal-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.goal-content p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.goal-progress span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-medium);
    white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .fact-sidebar {
        order: -1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .goal-progress {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .goal-progress span {
        text-align: center;
    }
}