// Shared chart styles for consistency across all chart components @mixin accent-surface($radius: 20px) { background: linear-gradient( 135deg, color-mix(in srgb, var(--stats-badge-accent) 20%, transparent), color-mix(in srgb, var(--stats-badge-accent) 10%, transparent) ); border: 1px solid color-mix(in srgb, var(--stats-badge-accent) 30%, transparent); border-radius: $radius; } @mixin accent-text($accent-weight: 62%) { color: color-mix(in srgb, var(--stats-badge-accent) $accent-weight, var(--color-text)); } @mixin accent-badge { @include accent-surface; @include accent-text; padding: 0.35rem 0.875rem; font-size: 0.7438rem; font-weight: 500; } @mixin neutral-surface($radius: 8px) { background: color-mix(in srgb, var(--color-text) 5%, transparent); border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); border-radius: $radius; } .chart-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.875rem; flex-wrap: wrap; gap: 0.875rem; .chart-title { flex: 1; min-width: 200px; h3 { color: var(--color-text); font-size: 1.0938rem; font-weight: 500; margin: 0 0 0.4375rem; display: flex; align-items: center; gap: 0.4375rem; } .chart-description { color: var(--color-text-secondary); font-size: 0.7875rem; margin: 0; line-height: 1.4; } } .stats-badge { @include neutral-surface; display: flex; flex-direction: column; align-items: center; padding: 0.4375rem 0.875rem; .badge-value { font-size: 1.3125rem; font-weight: 600; color: var(--color-text); } .badge-label { font-size: var(--app-text-xs); color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; } } } .no-data-message { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.75rem; text-align: center; color: var(--color-text-secondary); i { font-size: 1.75rem; margin-bottom: 0.6563rem; opacity: 0.5; } p { font-size: 0.7875rem; margin: 0 0 0.4375rem; color: var(--color-text); } small { font-size: 0.7438rem; opacity: 0.7; } } @media (width <= 768px) { .chart-header { .chart-title { h3 { font-size: 0.9625rem; } .chart-description { font-size: 0.7438rem; } } } } @media (width <= 480px) { .chart-header { .chart-title { h3 { font-size: var(--app-text-base); } .chart-description { font-size: 0.7rem; } } .stats-badge { .badge-value { font-size: 1.0938rem; } } } }