/* --- Analytics --- */

/* Bar chart */
.analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 180px;
    padding: 0 4px;
}
.analytics-bar-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.analytics-bar {
    width: 100%;
    max-width: 24px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    position: relative;
    min-height: 2px;
    transition: height 0.3s ease;
}
.analytics-bar-clicks {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #059669;
    border-radius: 0 0 0 0;
    min-height: 1px;
}
.analytics-bar-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
}
.analytics-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.analytics-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Analytics grid */
.analytics-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .analytics-chart {
        gap: 2px;
        height: 120px;
    }
    .analytics-bar-label {
        display: none;
    }
    .analytics-grid-2 {
        grid-template-columns: 1fr;
    }
}
