body {
    background: #f4f6f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .15s;
}
.stat-card:hover {
    transform: translateY(-2px);
}
.stat-card .card-body {
    padding: 1.25rem;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: .85rem;
    color: #6c757d;
    margin-bottom: .25rem;
}
.stat-card .stat-change {
    font-size: .8rem;
    margin-top: .25rem;
}
.stat-change.up { color: #198754; }
.stat-change.down { color: #dc3545; }
.stat-change.same { color: #6c757d; }

.chart-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.chart-container h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.table-container h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}
.table-container .table {
    margin-bottom: 0;
}
.table-container .table th {
    border-top: none;
    font-size: .8rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
}
.table-container .table td {
    vertical-align: middle;
    font-size: .9rem;
}
.table-container .page-path {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.period-selector .btn {
    font-size: .8rem;
    padding: .25rem .75rem;
}

/* Login page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-card {
    width: 100%;
    max-width: 400px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.login-card .card-body {
    padding: 2.5rem;
}

/* Installer */
.install-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.install-card {
    width: 100%;
    max-width: 550px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.install-card .card-body {
    padding: 2.5rem;
}

.navbar-dark .navbar-nav .nav-link.active {
    font-weight: 600;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #adb5bd;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}
