PriviMetrics
Version 1.0.9 • 43 files • 278.98 KB
Files
.last_check
admin.php
assets/.htaccess
assets/dashboard-chart.php
assets/dashboard-logic.php
assets/dashboard-modals.php
assets/dashboard-tables.php
assets/dashboard-template.php
assets/trends-template.php
chosen-limits.php
dashboard.php
data/.htaccess
extensions-load.php
extensions.php
extensions.xml
extensions/.htaccess
extensions/extensions_off.txt
functions.php
getCountryFrom/db-ip.php
getCountryFrom/geo-lite.php
getCountryFrom/ip-api-com.php
getCountryFrom/ip-info.php
getCountryFrom/ip-stack.php
getCountryFrom/ip2location-io.php
getCountryFrom/privacy-friendly.php
index.html
install.php
limits-options.php
new_version.php
privimetrics-div.js
privimetrics.php
public.php
scripts.js
settings-config.php
settings.php
signup.php
storage.php
styles-mobile.css
styles.css
trends.css
trends.php
updater/index.php
version.txt
styles.css
@font-face {
font-family: 'Sora';
src: url('fonts/sora.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Museo Moderno';
src: url('fonts/MuseoModerno.ttf?v-1-0-0') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'DM Mono';
src: url('fonts/DM-Mono.ttf?v-1-0-0') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Space Grotesk';
src: url('fonts/SpaceGrotesk-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Playwrite';
src: url('fonts/PlaywritePL-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Atkinson Hyperlegible Mono';
src: url('fonts/AtkinsonHyperlegibleMono.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
:root[data-theme="dark"] {
--bg-primary: #0a0a0a;
--bg-secondary: #151515;
--bg-tertiary: #1a1a1a;
--border-color: #252525;
--text-primary: #e5e5e5;
--text-secondary: #a0a0a0;
--text-tertiary: #737373;
--accent: #f1484e;
--accent-hover: #d53b40ff;
--success: #22c55e;
--danger: #ef4444;
--ui-font: 'Sora', sans-serif;
}
:root[data-theme="light"] {
--bg-primary: #ffffff;
--bg-secondary: #f9fafb;
--bg-tertiary: #f3f4f6;
--border-color: #e5e7eb;
--text-primary: #111827;
--text-secondary: #6b7280;
--text-tertiary: #9ca3af;
--accent: #f1484e;
--accent-hover: #d53b40ff;
--success: #22c55e;
--danger: #ef4444;
--ui-font: 'Sora', sans-serif;
}
:root[data-font="space"] {
--ui-font: 'Space Grotesk', sans-serif;
}
:root[data-font="moderno"] {
--ui-font: 'Museo Moderno', sans-serif;
}
:root[data-font="dm-mono"] {
--ui-font: 'DM Mono', sans-serif;
}
:root[data-font="space"] {
--ui-font: 'Space Grotesk', sans-serif;
}
:root[data-font="playwrite"] {
--ui-font: 'Playwrite', sans-serif;
}
:root[data-font="hyperlegible"] {
--ui-font: 'Atkinson Hyperlegible Mono', sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
* {
font-family: var(--ui-font), sans-serif !important;
}
body {
font-family: -apple-system, BlinkMacSystemFont, var(--ui-font), Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
transition: background 0.3s ease;
}
.update-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
color: var(--text-primary);
display: flex;
justify-content: center;
backdrop-filter: blur(8px);
align-items: center;
display: none;
z-index: 9999;
animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.update-modal-content {
background: var(--bg-primary);
color: var(--text-primary);
padding: 24px;
border-radius: 16px;
width: 90%;
max-width: 500px;
position: relative;
border: 1px solid var(--border-color);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
animation: slideUp 0.3s ease;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.update-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 18px;
}
.update-modal-header .close {
cursor: pointer;
font-size: 20px;
transition: all 0.2s ease;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
}
.update-modal-header .close:hover {
background: var(--bg-tertiary);
transform: scale(1.1);
}
.update-modal-body {
margin-top: 16px;
}
.update-modal-footer {
margin-top: 20px;
text-align: right;
}
a.update-modal-text {
color: var(--accent);
transition: opacity 0.2s ease;
}
a.update-modal-text:hover {
opacity: 0.8;
}
.header {
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
padding: 16px 24px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
backdrop-filter: blur(10px);
transition: all 0.3s ease;
}
.logo {
display: flex;
align-items: center;
gap: 12px;
transition: transform 0.3s ease;
}
.logo:hover {
transform: translateX(4px);
}
.logo-icon {
width: 36px;
height: 36px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 16px;
color: white;
transition: transform 0.3s ease;
}
.logo:hover .logo-icon {
transform: rotate(-5deg) scale(1.05);
}
.logo-text {
font-family: 'Museo Moderno' !important;
font-size: 18px;
font-weight: 600;
}
.header-actions {
display: flex;
align-items: center;
gap: 12px;
}
.btn {
padding: 8px 16px;
border-radius: 10px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border: none;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
position: relative;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.btn:hover::before {
width: 300px;
height: 300px;
}
.btn-primary {
background: var(--accent);
color: white;
box-shadow: 0 4px 12px rgba(241, 72, 78, 0.2);
}
.btn-primary:hover {
background: var(--accent-hover);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(241, 72, 78, 0.3);
}
.btn-primary:active {
transform: translateY(0);
}
.btn-secondary {
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1px solid var(--border-color);
}
.btn-secondary:hover {
background: var(--bg-secondary);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.btn-danger {
background: var(--danger);
color: white;
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}
.btn-sm {
padding: 6px 12px;
font-size: 13px;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 24px;
}
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 24px;
flex-wrap: wrap;
}
.toolbar-left {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
select {
padding: 8px 12px;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 10px;
color: var(--text-primary);
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
}
select:hover {
border-color: var(--accent);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(241, 72, 78, 0.1);
}
.tabs {
display: flex;
gap: 4px;
border-bottom: 1px solid var(--border-color);
margin-bottom: 24px;
}
.tab {
padding: 12px 20px;
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
font-size: 14px;
font-weight: 500;
border-bottom: 2px solid transparent;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}
.tab::after {
content: '';
position: absolute;
bottom: -2px;
left: 50%;
width: 0;
height: 2px;
background: var(--accent);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
transform: translateX(-50%);
}
.tab:hover {
color: var(--text-primary);
background: var(--bg-tertiary);
border-radius: 8px 8px 0 0;
}
.tab.active {
color: var(--accent);
}
.tab.active::after {
width: 100%;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 24px;
}
.stat-card {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 24px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.stat-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, var(--accent), transparent);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
}
.stat-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
border-color: var(--accent);
}
.stat-card:hover::before {
transform: scaleX(1);
}
.stat-label {
font-size: 14px;
color: var(--text-secondary);
margin-bottom: 8px;
transition: color 0.3s ease;
}
.stat-card:hover .stat-label {
color: var(--text-primary);
}
.stat-value {
font-size: 32px;
font-weight: 700;
transition: transform 0.3s ease;
}
.stat-card:hover .stat-value {
transform: scale(1.05);
}
.chart-card {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 24px;
margin-bottom: 24px;
transition: all 0.3s ease;
}
.chart-card:hover {
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.chart-header {
font-size: 16px;
font-weight: 600;
margin-bottom: 20px;
}
.chart {
height: 200px;
display: flex;
align-items: flex-end;
gap: 4px;
padding: 20px 0;
}
.bar {
flex: 1;
background: var(--bar-color, var(--accent));
border-radius: 6px 6px 0 0;
min-height: 2px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
transform-origin: bottom;
}
.bar:hover {
background: var(--bar-color, var(--accent-hover));
transform: scaleY(1.05);
box-shadow: 0 -4px 12px rgba(241, 72, 78, 0.3);
}
.table-card {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 24px;
margin-bottom: 24px;
transition: all 0.3s ease;
overflow: hidden;
}
table {
width: 100%;
border-collapse: collapse;
}
th {
text-align: left;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
color: var(--text-secondary);
padding: 12px;
border-bottom: 1px solid var(--border-color);
transition: color 0.3s ease;
}
td {
padding: 12px;
border-bottom: 1px solid var(--border-color);
font-size: 14px;
transition: all 0.3s ease;
}
tr {
transition: all 0.3s ease;
}
tr:hover {
background: var(--bg-tertiary);
}
tr:hover td {
transform: translateX(4px);
}
tr:last-child td {
border-bottom: none;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
z-index: 1000;
align-items: center;
justify-content: center;
padding: 20px;
animation: fadeIn 0.2s ease;
}
.modal.active {
display: flex;
}
.modal-content {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 32px;
max-width: 500px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
animation: slideUp 0.3s ease;
}
.modal-header {
font-size: 20px;
font-weight: 600;
margin-bottom: 24px;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
font-size: 14px;
font-weight: 500;
transition: color 0.3s ease;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 10px 12px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 10px;
color: var(--text-primary);
font-size: 14px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
input[type="text"]:hover,
input[type="password"]:hover {
border-color: var(--accent);
}
input[type="text"]:focus,
input[type="password"]:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(241, 72, 78, 0.1);
transform: translateY(-2px);
}
.tracking-code {
padding: 16px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 10px;
font-family: "Courier New", monospace;
font-size: 12px;
overflow-x: auto;
color: var(--text-secondary);
white-space: pre-wrap;
word-break: break-all;
transition: all 0.3s ease;
}
.tracking-code:hover {
border-color: var(--accent);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.no-data {
text-align: center;
padding: 60px 20px;
color: var(--text-secondary);
}
.badge {
display: inline-block;
padding: 4px 8px;
border-radius: 8px;
font-size: 12px;
font-weight: 500;
transition: all 0.3s ease;
}
.badge-success {
background: rgba(34, 197, 94, 0.1);
color: var(--success);
}
.badge-success:hover {
background: rgba(34, 197, 94, 0.2);
transform: scale(1.05);
}
.badge-danger {
background: rgba(239, 68, 68, 0.1);
color: var(--danger);
}
.badge-danger:hover {
background: rgba(239, 68, 68, 0.2);
transform: scale(1.05);
}
.success-message {
padding: 16px;
background: rgba(34, 197, 94, 0.1);
border: 1px solid var(--success);
border-radius: 12px;
color: var(--success);
margin-bottom: 24px;
animation: slideDown 0.3s ease;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.header {
flex-direction: column;
align-items: flex-start;
}
.toolbar {
flex-direction: column;
align-items: stretch;
}
.stats-grid {
grid-template-columns: 1fr;
}
}