Download app/static/css/dashboard/statistics.css from paisaly/backend: direct link, hf CLI and curl.
- Browser
- Download file 39.6 kB
-
https://huggingface.co/spaces/paisaly/backend/resolve/main/app/static/css/dashboard/statistics.css
- Command line
-
hf download hf://spaces/paisaly/backend/app/static/css/dashboard/statistics.css
-
curl -L -o statistics.css https://huggingface.co/spaces/paisaly/backend/resolve/main/app/static/css/dashboard/statistics.css
39.6 kB
/* Statistics Dashboard Styles - Based on stats-view.css */
/* Page Header */
.page-header {
margin-bottom: 20px;
}
.page-header-content {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.page-header-text {
flex: 1;
}
.page-title {
font-size: 32px;
font-weight: 700;
color: var(--text-primary);
margin: 0 0 8px 0;
}
.page-subtitle {
font-size: 16px;
color: var(--text-secondary);
margin: 0;
}
/* Controls Bar */
.controls-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.controls-left {
display: flex;
align-items: center;
}
.controls-actions {
display: flex;
gap: 15px;
align-items: center;
}
/* Refresh Control */
.refresh-control {
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
padding: 2px;
}
.refresh-btn {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.75);
padding: 6px 8px;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.refresh-btn:hover {
color: rgba(255, 255, 255, 0.95);
background-color: rgba(255, 255, 255, 0.1);
}
/* Empty State Styles */
.chart-empty-state {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px;
border-radius: 12px;
z-index: 10;
}
.chart-empty-state.hidden {
display: none;
}
/* Hide empty state when table view is active */
.chart-container:has(.stats-table:not([style*="display: none"])) .chart-empty-state {
display: none !important;
}
.empty-state-icon {
margin-bottom: 20px;
opacity: 0.4;
animation: float 3s ease-in-out infinite;
}
.empty-state-icon i {
font-size: 64px;
color: var(--text-secondary);
}
@keyframes float {
0%,
100% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
}
.empty-state-title {
font-size: 18px;
font-weight: 600;
color: var(--text-primary);
margin: 0 0 8px 0;
text-align: center;
}
.empty-state-description {
font-size: 14px;
color: var(--text-secondary);
margin: 0 0 20px 0;
text-align: center;
max-width: 300px;
line-height: 1.5;
}
.empty-state-action {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
background: rgba(59, 130, 246, 0.15);
border: 1px solid rgba(59, 130, 246, 0.3);
border-radius: 8px;
color: rgba(59, 130, 246, 1);
font-size: 14px;
font-weight: 500;
text-decoration: none;
transition: all 0.2s ease;
}
.empty-state-action:hover {
background: rgba(59, 130, 246, 0.25);
border-color: rgba(59, 130, 246, 0.5);
transform: translateY(-1px);
}
.empty-state-action i {
font-size: 16px;
}
.export-btn {
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
color: rgba(255, 255, 255, 0.75);
padding: 8px 12px;
font-size: 16px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
min-height: 36px;
}
.export-btn:hover {
color: rgba(255, 255, 255, 0.95);
background-color: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.2);
}
.export-btn.is-active {
background: rgba(124, 58, 237, 0.15);
border-color: rgba(124, 58, 237, 0.4);
color: rgba(255, 255, 255, 0.95);
}
.export-menu {
min-width: 200px;
}
.export-menu .dropdown-item {
padding: 10px 14px;
gap: 12px;
}
.export-menu .dropdown-item i {
font-size: 18px;
flex-shrink: 0;
}
.separator {
width: 1px;
height: 18px;
background: rgba(255, 255, 255, 0.2);
margin: 0 6px;
}
.auto-refresh-dropdown {
position: relative;
display: flex;
align-items: center;
gap: 8px;
}
.auto-refresh-btn {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.75);
padding: 6px 8px;
border-radius: 6px;
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;
font-weight: 500;
}
.auto-refresh-btn:hover {
color: rgba(255, 255, 255, 0.95);
background-color: rgba(255, 255, 255, 0.1);
}
.auto-refresh-dropdown .auto-refresh-menu {
min-width: 80px;
}
/* Filters Dropdown Container */
.filters-dropdown-container {
position: relative;
}
.filters-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
color: rgba(255, 255, 255, 0.85);
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
font-weight: 500;
}
.filters-btn:hover {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.2);
color: rgba(255, 255, 255, 0.95);
}
.filters-btn.is-active {
background: rgba(124, 58, 237, 0.15);
border-color: rgba(124, 58, 237, 0.4);
color: rgba(255, 255, 255, 0.95);
}
.filters-text {
font-weight: 500;
}
.active-filters-count {
background: rgba(124, 58, 237, 0.9);
color: white;
border-radius: 10px;
padding: 2px 6px;
font-size: 11px;
font-weight: 600;
min-width: 18px;
text-align: center;
line-height: 1.2;
}
.filters-chevron {
font-size: 12px;
transition: transform 0.2s ease;
color: rgba(255, 255, 255, 0.6);
}
.filters-btn.is-active .filters-chevron {
transform: rotate(180deg);
color: rgba(255, 255, 255, 0.8);
}
/* Floating Filters Dropdown */
.filters-dropdown {
position: absolute;
top: calc(100% + 10px);
left: 0;
width: 260px;
max-width: 90vw;
background: rgba(15, 20, 35, 0.95);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 12px;
backdrop-filter: blur(16px);
box-shadow: rgba(0, 0, 0, 0.3) 0 20px 40px 0px;
z-index: var(--z-max);
visibility: hidden;
overflow: hidden;
opacity: 0;
transform: translateY(-8px);
transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0s linear 0.15s;
}
.filters-dropdown-container.dropdown.is-open > .filters-dropdown {
visibility: visible;
opacity: 1;
transform: translateY(0);
transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0s linear 0s;
}
@keyframes filtersDropdownSlideIn {
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Filter Types List */
.filter-types-list {
padding: 6px;
}
/* Subtle crossfade transitions between filter views */
.view-enter {
opacity: 0;
}
.view-enter-active {
opacity: 1;
transition: opacity 0.18s ease;
}
.view-exit-active {
opacity: 0;
transition: opacity 0.14s ease;
}
.filter-type-item {
display: flex;
align-items: center;
padding: 12px 10px;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
}
.filter-type-item:hover:not(.clear-all-item) {
background: rgba(255, 255, 255, 0.08);
}
.filter-type-item.clear-all-item {
color: rgba(239, 68, 68, 0.9);
border-top: 1px solid rgba(255, 255, 255, 0.1);
margin-top: 8px;
}
.filter-type-item.clear-all-item:hover {
background: rgba(239, 68, 68, 0.1);
}
.filter-type-content {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
.filter-type-info {
display: flex;
align-items: center;
gap: 12px;
}
.filter-type-info i {
font-size: 16px;
color: rgba(255, 255, 255, 0.7);
width: 20px;
text-align: center;
}
.filter-type-label {
font-size: 14px;
font-weight: 500;
color: rgba(255, 255, 255, 0.9);
}
.filter-type-status {
display: flex;
align-items: center;
gap: 8px;
}
.filter-count {
font-size: 10px;
color: rgba(255, 255, 255, 0.6);
background: rgba(255, 255, 255, 0.08);
padding: 4px 8px;
border-radius: 12px;
min-width: 24px;
text-align: center;
}
.filter-type-status i {
font-size: 14px;
color: rgba(255, 255, 255, 0.5);
}
/* Filter Values View */
.filter-values-view {
padding: 8px;
}
.filter-values-top {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.back-btn {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
background: rgba(255, 255, 255, 0.08);
border: none;
border-radius: 6px;
color: rgba(255, 255, 255, 0.8);
font-size: 16px;
cursor: pointer;
transition: all 0.2s ease;
flex-shrink: 0;
}
.back-btn:hover {
background: rgba(255, 255, 255, 0.12);
color: rgba(255, 255, 255, 0.95);
}
.filter-values-search {
position: relative;
flex: 1;
}
.filter-values-search i {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: rgba(255, 255, 255, 0.5);
font-size: 14px;
}
.values-search-input {
width: 100%;
height: 36px;
padding: 10px 12px 10px 36px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 6px;
color: rgba(255, 255, 255, 0.9);
font-size: 14px;
transition: all 0.2s ease;
}
.values-search-input:focus {
outline: none;
border-color: var(--accent-primary);
background: rgba(255, 255, 255, 0.12);
}
.filter-values-list {
max-height: 300px;
overflow-y: auto;
}
.filter-values-list .option-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 10px;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
margin-bottom: 2px;
}
.filter-values-list .option-item:hover {
background: rgba(255, 255, 255, 0.08);
}
.filter-values-list .empty {
color: white;
padding: 20px;
text-align: center;
}
.filter-group {
display: flex;
flex-direction: column;
gap: 8px;
}
/* Multi-Select Components */
.multi-select-wrapper {
position: relative;
z-index: 1;
}
.multi-select-wrapper:has(.multi-select-dropdown.show) {
z-index: var(--z-modal);
}
/* Fallback for browsers that don't support :has() */
.multi-select-wrapper.active {
z-index: var(--z-modal);
}
.multi-select-trigger {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
color: rgba(255, 255, 255, 0.9);
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
text-align: left;
}
.multi-select-trigger:hover {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.25);
}
.multi-select-trigger.active {
background: rgba(124, 58, 237, 0.15);
border-color: rgba(124, 58, 237, 0.4);
}
.selected-summary {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.multi-select-trigger i {
font-size: 14px;
color: rgba(255, 255, 255, 0.6);
transition: transform 0.2s ease;
}
.multi-select-trigger.active i {
transform: rotate(180deg);
}
/* Dropdown Styling */
.multi-select-dropdown {
position: absolute;
top: calc(100% + 8px);
left: 0;
right: 0;
background: rgba(20, 25, 40, 0.98);
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 12px;
box-shadow: rgba(0, 0, 0, 0.3) 0 20px 40px;
backdrop-filter: blur(20px);
z-index: var(--z-max);
max-height: 320px;
visibility: hidden;
overflow: hidden;
min-width: 280px;
opacity: 0;
transform: translateY(-8px);
transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0s linear 0.15s;
}
.multi-select-dropdown.show {
visibility: visible;
opacity: 1;
transform: translateY(0);
transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0s linear 0s;
}
@keyframes dropdownSlideIn {
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.search-input {
width: 100%;
padding: 10px 12px 10px 36px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
color: rgba(255, 255, 255, 0.95);
font-size: 14px;
transition: all 0.2s ease;
}
.search-input:focus {
outline: none;
border-color: var(--accent-primary);
background: rgba(255, 255, 255, 0.15);
box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}
.search-input::placeholder {
color: rgba(255, 255, 255, 0.5);
}
.select-all-btn,
.clear-all-btn {
padding: 8px 14px;
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: 6px;
color: rgba(255, 255, 255, 0.8);
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.select-all-btn:hover,
.clear-all-btn:hover {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.95);
border-color: rgba(255, 255, 255, 0.4);
transform: translateY(-1px);
}
.select-all-btn:hover {
background: rgba(34, 197, 94, 0.15);
border-color: rgba(34, 197, 94, 0.5);
color: rgb(34, 197, 94);
}
.clear-all-btn:hover {
background: rgba(239, 68, 68, 0.15);
border-color: rgba(239, 68, 68, 0.5);
color: rgb(239, 68, 68);
}
/* Options List */
.options-list {
max-height: 200px;
overflow-y: auto;
padding: 8px;
background: transparent;
}
.option-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
margin-bottom: 3px;
min-height: 44px;
position: relative;
}
.option-item:hover {
background: rgba(255, 255, 255, 0.1);
}
.option-item:last-child {
margin-bottom: 0;
}
.option-item input[type="checkbox"] {
display: none;
}
.checkmark {
width: 16px;
height: 16px;
border: 2px solid rgba(255, 255, 255, 0.4);
border-radius: 4px;
position: relative;
transition: all 0.2s ease;
flex-shrink: 0;
background: rgba(255, 255, 255, 0.05);
}
.option-item:hover .checkmark {
border-color: rgba(255, 255, 255, 0.6);
background: rgba(255, 255, 255, 0.08);
}
.option-item input[type="checkbox"]:checked+.checkmark {
background: var(--accent-primary);
border-color: var(--accent-primary);
box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
transform: scale(1.1);
}
.option-item input[type="checkbox"]:checked~.option-text {
color: rgba(255, 255, 255, 1);
font-weight: 600;
}
.option-item input[type="checkbox"]:checked~.option-count {
background: rgba(124, 58, 237, 0.2);
color: rgba(124, 58, 237, 1);
border: 1px solid rgba(124, 58, 237, 0.3);
}
.option-item input[type="checkbox"]:checked+.checkmark::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 13px;
font-weight: bold;
line-height: 1;
}
.option-text {
flex: 1;
color: rgba(255, 255, 255, 0.95);
font-size: 14px;
font-weight: 500;
line-height: 1.4;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.option-count {
color: rgba(255, 255, 255, 0.6);
font-size: 10px;
font-weight: 600;
background: rgba(255, 255, 255, 0.08);
padding: 4px 8px;
border-radius: 10px;
min-width: 24px;
text-align: center;
}
/* Country-specific styling */
.countries-dropdown .option-item {
position: relative;
}
.clear-all-filters-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.3);
border-radius: 8px;
color: rgb(239, 68, 68);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.clear-all-filters-btn:hover {
background: rgba(239, 68, 68, 0.25);
border-color: rgba(239, 68, 68, 0.5);
}
.clear-all-filters-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.4);
}
/* Scrollbar styling for options list */
.options-list::-webkit-scrollbar {
width: 6px;
}
.options-list::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 3px;
}
.options-list::-webkit-scrollbar-thumb {
background: rgba(124, 58, 237, 0.4);
border-radius: 3px;
}
.options-list::-webkit-scrollbar-thumb:hover {
background: rgba(124, 58, 237, 0.6);
}
/* Loading state */
.options-list.loading,
.options-list .loading {
display: flex;
align-items: center;
justify-content: center;
min-height: 100px;
color: rgba(255, 255, 255, 0.5);
font-size: 14px;
}
/* Empty state */
.options-list.empty,
.options-list .empty {
display: flex;
align-items: center;
justify-content: center;
min-height: 80px;
color: rgba(255, 255, 255, 0.5);
font-style: italic;
font-size: 14px;
}
/* Main Stats Container */
.main-stats-container {
display: flex;
justify-content: space-between;
gap: 20px;
margin-bottom: 20px;
}
.card-parent {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
border: rgba(255, 255, 255, 0.05) 1px solid;
border-radius: 6px;
flex: 1;
}
.clicks-counter-parent {
flex: 3 !important;
}
/* Clicks Counter Section - Takes most of the width */
.clicks-counter-section {
background-color: rgba(255, 255, 255, 0.02);
border-radius: 6px;
backdrop-filter: blur(20px);
padding: 20px 20px 5px 20px;
width: 100%;
height: 100%;
}
/* Summary Stats - Takes remaining width */
.summary-stats {
display: flex;
flex-direction: column;
gap: 15px;
flex: 1;
/* Takes 1/4 of the width */
}
.stat-card {
background-color: rgba(255, 255, 255, 0.02);
border-radius: 6px;
backdrop-filter: blur(20px);
width: 100%;
height: 100%;
padding: 14px 15px;
box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
text-align: center;
}
.stat-value {
font-size: 1.8rem;
font-weight: bold;
color: white;
margin-bottom: 5px;
}
.stat-label {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 5px;
}
.stat-change {
font-size: 0.8rem;
font-weight: bold;
}
.stat-change.positive {
color: #4CAF50;
}
.stat-change.negative {
color: #f44336;
}
.stat-change.neutral {
color: #ff9800;
}
/* Charts Container */
.charts-container {
display: flex;
justify-content: space-between;
gap: 20px;
margin-bottom: 20px;
}
.chart-section {
background-color: rgba(255, 255, 255, 0.02);
border-radius: 6px;
backdrop-filter: blur(20px);
padding: 20px 20px 5px 20px;
width: 100%;
min-height: 400px;
}
/* Chart Container */
.chart-container {
height: 350px;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
}
.chart-container canvas {
max-width: 100% !important;
max-height: 100% !important;
flex: 1;
transition: opacity 0.3s ease, transform 0.3s ease;
}
.chart-container #countryChart {
flex: 1;
height: 100%;
transition: opacity 0.3s ease, transform 0.3s ease;
}
.chart-view-exit {
opacity: 1;
transform: translateY(0);
}
.chart-view-exit-active {
opacity: 0;
transform: translateY(-10px);
transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Chart Section Headers */
.chart-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.chart-header h2 {
margin: 0;
font-size: 1.2rem;
color: white;
}
.chart-actions {
display: flex;
align-items: center;
gap: 8px;
}
.chart-actions>* {
flex-shrink: 0;
}
/* Cascade Select Buttons */
.cascade-select[style*="pointer-events: none"] {
cursor: not-allowed;
}
.cascade-btn {
padding: 8px 12px;
border-radius: 8px;
border: 1px solid var(--accent-primary);
background: rgba(124, 58, 237, 0.3);
color: white;
cursor: pointer;
font-size: 14px;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 5px;
}
.cascade-btn:hover:not(:disabled) {
background: rgba(124, 58, 237, 0.45);
}
.cascade-btn:disabled {
cursor: not-allowed;
opacity: 0.5;
background: rgba(255, 255, 255, 0.1) !important;
border-color: rgba(255, 255, 255, 0.1) !important;
}
.cascade-menu {
min-width: 180px;
}
.cascade-menu .dropdown-item {
padding: 10px 14px;
gap: 10px;
}
.cascade-menu .dropdown-item i {
font-size: 16px;
width: 20px;
}
/* Headings */
.chart-section h2,
.clicks-counter-section h2 {
margin: 0;
margin-left: 5px;
color: white;
font-weight: 400;
font-size: 1em;
}
/* Canvas Heights */
#timeSeriesChart,
#countryChart,
#referrerChart,
#browserChart,
#osChart,
#deviceChart,
#keyChart {
width: 100% !important;
height: 100% !important;
max-width: 100% !important;
max-height: 100% !important;
}
/* Modal Styles */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: var(--z-overlay);
}
.modal-content {
background: rgba(255, 255, 255, 0.1);
padding: 30px;
border-radius: 15px;
box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
border: rgba(255, 255, 255, 0.05) 1px solid;
min-width: 400px;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.modal-header h3 {
color: white;
margin: 0;
}
.modal-close {
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
padding: 5px;
}
.input-group {
flex: 1;
}
.input-group label {
display: block;
color: white;
margin-bottom: 5px;
font-size: 0.9rem;
}
.btn-secondary,
.btn-primary {
padding: 10px 20px;
border-radius: 8px;
border: none;
cursor: pointer;
font-size: 0.9rem;
}
.btn-secondary {
background: rgba(255, 255, 255, 0.15);
color: white;
}
.btn-primary {
background: var(--accent-primary);
color: white;
}
.btn-secondary:hover,
.btn-primary:hover {
opacity: 0.8;
}
/* Responsive Design */
@media screen and (max-width: 1200px) {
.main-stats-container {
flex-direction: column;
}
.clicks-counter-section {
flex: none;
}
.summary-stats {
flex-direction: row;
gap: 15px;
}
.stat-card {
flex: 1;
}
}
@media screen and (max-width: 1000px) {
.charts-container {
flex-direction: column;
}
.chart-section {
min-height: 350px;
}
.controls-bar {
gap: 15px;
align-items: stretch;
}
.controls-left {
justify-content: flex-start;
}
.controls-actions {
justify-content: flex-end;
flex-wrap: wrap;
gap: 10px;
}
}
@media screen and (max-width: 768px) {
.statistics-dashboard {
padding: 0 10px;
}
.summary-stats {
flex-direction: column;
}
.page-header-content {
flex-direction: column;
gap: 20px;
text-align: left;
}
.page-header-text {
text-align: left;
}
.controls-bar {
flex-direction: column;
gap: 12px;
align-items: stretch;
}
.controls-left {
width: 100%;
}
.controls-actions {
justify-content: flex-start;
flex-wrap: wrap;
}
/* Mobile Bottom Sheet for Filters Dropdown */
.filters-dropdown {
position: fixed;
top: auto;
right: 0;
left: 0;
bottom: 0;
width: 100%;
max-width: 100%;
max-height: 85vh;
background: rgba(15, 20, 35, 0.98);
backdrop-filter: blur(20px);
border-radius: 24px 24px 0 0;
border: 1px solid rgba(255, 255, 255, 0.15);
border-bottom: none;
box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
display: block !important;
/* Override desktop display: none */
visibility: hidden;
opacity: 0;
transform: translateY(100%);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
visibility 0s linear 0.3s;
z-index: var(--z-max);
overflow-y: auto;
-webkit-overflow-scrolling: touch;
animation: none !important;
/* Remove desktop animation */
}
.filters-dropdown-container.dropdown.is-open > .filters-dropdown {
visibility: visible;
opacity: 1;
transform: translateY(0);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
visibility 0s linear 0s;
animation: none !important;
/* Remove desktop animation */
}
/* Backdrop overlay */
.filters-dropdown::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 20, 35, 0.95);
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
.filters-dropdown-container.dropdown.is-open > .filters-dropdown::before {
opacity: 1;
pointer-events: auto;
}
/* Handle bar: visible + functional drag/tap-to-close zone. */
.filters-dropdown .sheet-handle {
display: flex;
justify-content: center;
align-items: center;
height: 20px;
width: 100%;
touch-action: none;
cursor: grab;
user-select: none;
position: sticky;
top: 0;
background: rgba(15, 20, 35, 0.98);
z-index: 3;
}
.filters-dropdown .sheet-handle::before {
content: '';
width: 36px;
height: 4px;
border-radius: 2px;
background: rgba(255, 255, 255, 0.3);
transition: background 0.2s ease;
}
.filters-dropdown .sheet-handle:active {
cursor: grabbing;
}
.filters-dropdown .sheet-handle:active::before {
background: rgba(255, 255, 255, 0.5);
}
.filter-types-list,
.filter-values-view {
padding: 4px 20px 20px;
min-height: 300px;
}
/* Mobile Bottom Sheet for Auto-Refresh Dropdown */
.auto-refresh-dropdown .auto-refresh-menu {
position: fixed;
top: auto;
right: 0;
left: 0;
bottom: 0;
width: 100%;
max-width: 100%;
min-width: unset;
border-radius: 24px 24px 0 0;
box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
transform: translateY(100%);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
visibility 0s linear 0.3s;
}
.auto-refresh-dropdown.is-open .auto-refresh-menu {
transform: translateY(0);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
visibility 0s linear 0s;
}
/* Backdrop for auto-refresh */
.auto-refresh-dropdown .auto-refresh-menu::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 20, 35, 0.95);
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
.auto-refresh-dropdown.is-open .auto-refresh-menu::before {
opacity: 1;
pointer-events: auto;
}
/* Functional handle: swipe down or tap to dismiss. */
.auto-refresh-dropdown .auto-refresh-menu .sheet-handle {
display: flex;
justify-content: center;
align-items: center;
height: 20px;
width: 100%;
touch-action: none;
cursor: grab;
user-select: none;
position: sticky;
top: 0;
background: rgba(15, 20, 35, 0.98);
z-index: 3;
}
.auto-refresh-dropdown .auto-refresh-menu .sheet-handle::before {
content: '';
width: 36px;
height: 4px;
border-radius: 2px;
background: rgba(255, 255, 255, 0.3);
transition: background 0.2s ease;
}
.auto-refresh-dropdown .auto-refresh-menu .sheet-handle:active {
cursor: grabbing;
}
.auto-refresh-dropdown .auto-refresh-menu .sheet-handle:active::before {
background: rgba(255, 255, 255, 0.5);
}
.auto-refresh-dropdown .auto-refresh-menu .dropdown-item {
padding: 16px 20px;
font-size: 16px;
}
/* Multi-select dropdowns as bottom sheets */
.multi-select-dropdown {
position: fixed;
top: auto;
right: 0;
left: 0;
bottom: 0;
width: 100%;
max-width: 100%;
max-height: 85vh;
border-radius: 24px 24px 0 0;
box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
display: block;
visibility: hidden;
opacity: 0;
transform: translateY(100%);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
visibility 0s linear 0.3s;
min-width: unset;
}
.multi-select-dropdown.show {
visibility: visible;
opacity: 1;
transform: translateY(0);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
visibility 0s linear 0s;
}
/* Backdrop for multi-select */
.multi-select-dropdown::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
.multi-select-dropdown.show::before {
opacity: 1;
pointer-events: auto;
}
/* Handle bar for multi-select */
.multi-select-dropdown::after {
content: '';
position: absolute;
top: 12px;
left: 50%;
transform: translateX(-50%);
width: 36px;
height: 4px;
background: rgba(255, 255, 255, 0.3);
border-radius: 2px;
z-index: 1;
}
}
@media screen and (max-width: 600px) {
.statistics-dashboard {
padding: 0 5px;
}
.page-title {
font-size: 1.5rem;
}
.page-header-content {
flex-direction: column;
gap: 15px;
text-align: left;
/* Left align instead of default center */
}
.controls-bar {
flex-direction: column;
gap: 12px;
}
.controls-left {
justify-content: start;
}
.controls-actions {
justify-content: start;
gap: 10px;
width: 100%;
}
.modal-content {
min-width: 300px;
margin: 20px;
}
.multi-select-dropdown {
max-height: 240px;
}
}
/* Chart Actions Container */
.chart-actions {
display: flex;
align-items: center;
gap: 8px;
}
.chart-actions>* {
flex-shrink: 0;
}
/* Chart / Table segmented toggle — cascade-btn styling, joined edges */
.view-toggle {
display: inline-flex;
}
.view-toggle-btn {
padding: 8px 12px;
border: 1px solid rgba(255, 255, 255, 0.18);
background: rgba(255, 255, 255, 0.15);
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
position: relative;
}
.view-toggle-btn:first-child {
border-radius: 8px 0 0 8px;
}
.view-toggle-btn:last-child {
border-radius: 0 8px 8px 0;
margin-left: -1px;
}
.view-toggle-btn:hover:not(.active) {
background: rgba(255, 255, 255, 0.25);
color: white;
z-index: 1;
}
.view-toggle-btn.active {
background: rgba(124, 58, 237, 0.3);
border-color: var(--accent-primary);
color: white;
z-index: 2;
}
.view-toggle-btn:focus-visible {
outline: 2px solid var(--accent-primary);
outline-offset: 2px;
z-index: 3;
}
/* new table full width styles (experimental) */
.stats-chart {
padding: 0 20px 20px 20px;
}
.chart-section,
.clicks-counter-section {
padding: 0;
}
.chart-header {
margin-bottom: 0;
padding: 20px 15px 25px;
}
.chart-container {
margin: 0;
padding: 0;
}
/* Statistics Table Styles */
.stats-table {
overflow: hidden;
overflow-y: scroll;
border-radius: 6px;
border-top-left-radius: 0;
border-top-right-radius: 0;
background: rgb(20, 25, 38);
backdrop-filter: blur(12px);
margin: 0;
height: 100%;
display: flex;
flex-direction: column;
transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Table transition classes */
.table-view-enter {
opacity: 0;
transform: translateY(10px);
}
.table-view-enter-active {
opacity: 1;
transform: translateY(0);
transition: opacity 0.3s ease, transform 0.3s ease;
}
.stats-table .table-header {
display: grid;
grid-template-columns: 1fr 140px 140px;
background: rgba(255, 255, 255, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
flex-shrink: 0;
position: sticky;
top: 0;
z-index: 10;
backdrop-filter: blur(12px);
}
.stats-table .header-cell {
padding: 16px 12px;
font-size: 12px;
font-weight: 600;
color: rgba(255, 255, 255, 0.8);
text-transform: uppercase;
letter-spacing: 0.5px;
border-right: 1px solid rgba(255, 255, 255, 0.08);
overflow: hidden;
overflow-y: scroll;
display: flex;
align-items: center;
}
.stats-table .header-cell:last-child {
border-right: none;
}
.stats-table .table-body {
overflow-y: auto;
flex: 1;
min-height: 0;
}
.stats-table .table-row {
display: grid;
grid-template-columns: 1fr 140px 140px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
transition: background 0.2s ease;
}
.stats-table .table-row:hover {
background: rgba(255, 255, 255, 0.05);
}
.stats-table .table-row:last-child {
border-bottom: none;
}
.stats-table .table-cell {
padding: 14px 12px;
display: flex;
align-items: center;
border-right: 1px solid rgba(255, 255, 255, 0.05);
min-height: 52px;
min-width: 0;
overflow: hidden;
color: rgba(255, 255, 255, 0.9);
font-size: 14px;
}
.stats-table .table-cell:last-child {
border-right: none;
justify-content: flex-end;
font-weight: 500;
color: rgba(255, 255, 255, 0.7);
}
.stats-table .table-cell:nth-child(2) {
justify-content: flex-end;
color: rgba(139, 92, 246, 0.9);
font-weight: 500;
}
.stats-table .table-cell:first-child {
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: rgba(255, 255, 255, 0.95);
}
/* Specific column styling for different metrics */
.stats-table .col-key .table-cell:first-child {
color: var(--accent-primary);
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
}
.stats-table .col-date .table-cell:first-child {
color: rgba(139, 92, 246, 0.9);
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
}
/* Scrollbar styling for table body */
.stats-table .table-body::-webkit-scrollbar {
width: 6px;
}
.stats-table .table-body::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 3px;
}
.stats-table .table-body::-webkit-scrollbar-thumb {
background: rgba(139, 92, 246, 0.4);
border-radius: 3px;
}
.stats-table .table-body::-webkit-scrollbar-thumb:hover {
background: rgba(139, 92, 246, 0.6);
}
/* Empty state for tables */
.stats-table .table-empty {
padding: 60px 20px;
text-align: center;
color: rgba(255, 255, 255, 0.5);
font-style: italic;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
min-height: 200px;
}
/* Responsive table styles */
@media (max-width: 768px) {
.stats-table .table-header,
.stats-table .table-row {
grid-template-columns: 1fr 100px 100px;
}
.stats-table .header-cell,
.stats-table .table-cell {
padding: 12px 8px;
font-size: 12px;
}
.chart-container {
height: 300px;
}
}
@media (max-width: 480px) {
.stats-table .table-header,
.stats-table .table-row {
grid-template-columns: 1fr 80px 80px;
}
.stats-table .header-cell,
.stats-table .table-cell {
padding: 10px 8px;
font-size: 11px;
}
}
/* Interactive Chart Styles */
.stats-chart {
transition: opacity 0.2s ease;
}
.stats-chart:hover {
opacity: 0.95;
}
.anychart-credits {
display: none !important;
}
/* Statistics Dashboard Styles - Based on stats-view.css */
/* Page Header */
.page-header {
margin-bottom: 20px;
}
.page-header-content {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.page-header-text {
flex: 1;
}
.page-title {
font-size: 32px;
font-weight: 700;
color: var(--text-primary);
margin: 0 0 8px 0;
}
.page-subtitle {
font-size: 16px;
color: var(--text-secondary);
margin: 0;
}
/* Controls Bar */
.controls-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.controls-left {
display: flex;
align-items: center;
}
.controls-actions {
display: flex;
gap: 15px;
align-items: center;
}
/* Refresh Control */
.refresh-control {
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
padding: 2px;
}
.refresh-btn {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.75);
padding: 6px 8px;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.refresh-btn:hover {
color: rgba(255, 255, 255, 0.95);
background-color: rgba(255, 255, 255, 0.1);
}
/* Empty State Styles */
.chart-empty-state {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px;
border-radius: 12px;
z-index: 10;
}
.chart-empty-state.hidden {
display: none;
}
/* Hide empty state when table view is active */