Auto-sync enabled

PriviMetrics

Version 1.0.9 • 43 files • 278.98 KB
trends.css
/* ===============================================================================
   PriviMetrics - Trends Styles (Fixed)
   =============================================================================== */

/* Trends Header */
.trends-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 800px;
}

.week-navigation button {
    flex-shrink: 0;
}

.week-navigation select {
    flex: 1;
    min-width: 200px;
}

/* Week Info */
.week-info {
    text-align: center;
    margin-bottom: 24px;
}

.week-info h2 {
    margin: 0 0 4px 0;
    font-size: 1.5em;
    color: var(--text-primary);
}

.week-info .date-range {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Comparison Selector */
.comparison-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
}

.comparison-selector span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.comparison-selector button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.comparison-selector button:hover {
    background: var(--bg-primary);
    transform: translateY(-1px);
}

.comparison-selector button.active {
    background: var(--accent);
    color: var(--text-secondary) !important;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(241, 72, 78, 0.2);
}

/* Trend Indicators */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 8px;
}

.trend-up {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.trend-neutral {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

/* Daily Chart */
.daily-chart {
    margin: 24px 0;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.daily-chart h3 {
    margin: 0 0 24px 0;
    font-size: 1.2em;
    color: var(--text-primary);
}

.daily-bars {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 200px;
    margin-top: 16px;
}

.day-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    position: relative;
}

.bar {
    width: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 4px;
}

.bar:hover {
    opacity: 0.8;
    transform: scaleY(1.02);
}

.bar-value {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75em;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.day-label {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 500;
    padding-top: 4px;
}

/* Comparison Table */
.comparison-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.no-data h3 {
    margin: 0 0 12px 0;
    font-size: 1.5em;
    color: var(--text-primary);
}

.no-data p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .trends-header {
        padding: 12px;
    }
    
    .week-navigation {
        flex-direction: column;
        gap: 8px;
    }
    
    .week-navigation button,
    .week-navigation select {
        width: 100%;
    }
    
    .comparison-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .comparison-selector button {
        width: 100%;
    }
    
    .comparison-table {
        grid-template-columns: 1fr;
    }
    
    .daily-bars {
        height: 150px;
        gap: 4px;
    }
    
    .bar-value {
        font-size: 0.7em;
        top: -20px;
    }
    
    .day-label {
        font-size: 0.75em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .week-info h2 {
        font-size: 1.2em;
    }
    
    .week-info .date-range {
        font-size: 0.85em;
    }
    
    .daily-chart {
        padding: 16px;
    }
    
    .daily-chart h3 {
        font-size: 1.1em;
    }
}