/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ---- Minimal, classless blog styles ---- */

/* 1) Root + color system (auto dark mode) */
:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #555555;
    --link: #773df4;
    --link-visited: #6d28d9;
    --border: #e5e7eb;
    --code-bg: #f6f8fa;
    --kbd-bg: #f0f0f0;
    --selection: #e4d4ff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1115;
        --text: #e6e6e6;
        --muted: #a9b0ba;
        --link: #8b5cf6;
        --link-visited: #a78bfa;
        --border: #252a33;
        --code-bg: #171a21;
        --kbd-bg: #1d2129;
        --selection: #304b72;
    }
}

/* 2) Simple reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
}
img,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}
input,
button,
textarea,
select {
    font: inherit;
}

/* 3) Typography + layout */
html {
    -webkit-text-size-adjust: 100%;
}
body {
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial,
        "Apple Color Emoji",
        "Segoe UI Emoji";
    background: linear-gradient(135deg, #fdfcff 0%, #ffffff 100%);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    min-height: 100vh;
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0f1115 0%, #111419 100%);
    }
}

main,
article,
section,
header,
footer {
    width: min(68ch, 92vw);
    margin-inline: auto;
}

main {
    padding: 3rem 0;
    background: transparent;
}
header,
footer {
    /*padding: 1.5rem 0;*/
    color: var(--muted);
}

/* 4) Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.01em;
}
h1 {
    font-size: clamp(1.9rem, 2.4vw + 1.2rem, 2.4rem);
    margin-top: 0;
}
h2 {
    font-size: clamp(1.5rem, 1.6vw + 1rem, 1.9rem);
}
h3 {
    font-size: 1.25rem;
}
h4,
h5,
h6 {
    font-size: 1.05rem;
}

/* 5) Text rhythm */
p,
ul,
ol,
pre,
table,
blockquote,
figure {
    margin: 1rem 0;
}
ul,
ol {
    padding-left: 1.25em;
}
li + li {
    margin-top: 0.25rem;
}
small,
time {
    color: var(--muted);
}

/* 6) Links */
a {
    color: var(--link);
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
}
a:visited {
    color: var(--link-visited);
}
a:hover {
    text-decoration-thickness: 2px;
}
a:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

/* 7) Quotes */
blockquote {
    padding-left: 1rem;
    border-left: 3px solid var(--border);
    color: var(--muted);
    margin-left: 0;
}

/* 8) Code */
code,
kbd,
samp {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
        monospace;
    font-size: 0.95em;
}
code {
    background: var(--code-bg);
    padding: 0.15em 0.35em;
    border-radius: 4px;
}
pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    overflow: auto;
}
pre code {
    background: transparent;
    padding: 0;
    font-size: 0.95em;
}
kbd {
    background: var(--kbd-bg);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    padding: 0 0.4em;
    border-radius: 4px;
}

/* 9) Tables */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
th,
td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border);
}
thead th {
    background: color-mix(in oklab, var(--border), var(--bg) 60%);
}
tbody tr:hover {
    background: color-mix(in oklab, var(--border), var(--bg) 80%);
}

/* 10) Images + figures */
figure {
    margin: 1.5rem 0;
}
figcaption {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.4rem;
}

/* 11) Horizontal rule */
hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 2.5rem 0;
}

/* 12) Forms (kept minimal) */
label {
    display: block;
    margin: 0.5rem 0 0.25rem;
}
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
}
button,
input[type="submit"] {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}
button:hover,
input[type="submit"]:hover {
    border-color: color-mix(in oklab, var(--link), var(--border));
}

/* 13) Nav + footer (optional, semantic) */
nav {
    margin: 1rem 0 2rem;
}
nav a {
    margin-right: 0.75rem;
}

/* 14) Selection color */
::selection {
    background: var(--selection);
}

/* 15) Print */
@media print {
    main {
        padding: 0;
    }
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        color: var(--muted);
    }
}

/* 16) App-specific clean blog-style layout */
main.app-main {
    width: min(68ch, 92vw);
    margin-inline: auto;
    padding: 2rem 0 4rem;
}

/* Admin layout - fluid width */
main.app-main-admin {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 2rem 1.5rem 4rem;
}

/* Copy essential styles for admin pages */
main.app-main-admin .card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

main.app-main-admin .text-muted {
    color: var(--muted);
    font-size: 0.9rem;
}

main.app-main-admin .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

main.app-main .full-width {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: max(0px, calc(50vw - 50%));
    padding-right: max(0px, calc(50vw - 50%));
}

/* Clean form styling */
main.app-main .form-container {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

main.app-main .form-group {
    margin: 1.5rem 0;
}

main.app-main .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

main.app-main .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

main.app-main .form-input:focus {
    outline: none;
    border-color: var(--link);
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.1);
}

/* Base button styles - shared by primary and secondary */
.btn,
main.app-main .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 120px;
}

/* Primary button - stands out with gradient and shadow */
.btn-primary,
main.app-main .btn {
    background: linear-gradient(
        135deg,
        var(--link) 0%,
        color-mix(in oklab, var(--link), #9333ea 20%) 100%
    );
    color: white;
    border-color: var(--link);
    font-weight: 600;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover,
main.app-main .btn:hover {
    background: linear-gradient(
        135deg,
        color-mix(in oklab, var(--link), black 10%) 0%,
        color-mix(in oklab, var(--link), black 5%) 100%
    );
    border-color: color-mix(in oklab, var(--link), black 10%);
    color: white;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Secondary button - modern and subtle */
.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: color-mix(in oklab, var(--link), var(--bg) 95%);
    color: var(--link);
    border-color: color-mix(in oklab, var(--link), var(--border) 70%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-secondary:focus {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

main.app-main .card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

main.app-main .chart-container {
    margin-bottom: 2rem;
    border: none;
    box-shadow: none;
    padding: 1rem;
}

main.app-main .chart-container h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
}

main.app-main .simple-chart {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Custom Bar Chart Styles */
.custom-chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 16px 0;
}

.custom-chart {
    position: relative;
    padding: 20px 4px 20px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
}

.chart-labels {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.chart-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: var(--chart-height, 160px);
}

.chart-bar-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 24px;
    flex: 1;
}

.bar {
    width: 100%;
    background: var(--link);
    border-radius: 2px 2px 0 0;
    transition: all 0.2s ease;
    min-height: 2px;
}

.bar:hover {
    background: color-mix(in oklab, var(--link), black 10%);
    transform: scaleY(1.05);
}

.bar-skeleton {
    background: #d1d5db !important;
    opacity: 0.6;
}

.bar-skeleton:hover {
    background: #d1d5db !important;
    transform: none !important;
    opacity: 0.8;
}

/* Make skeleton chart values (0) lighter gray in light mode */
.chart-bar-column:has(.bar-skeleton) .chart-value {
    color: #9ca3af;
    opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
    .bar-skeleton {
        background: #1e293b !important;
        opacity: 0.4;
    }

    .bar-skeleton:hover {
        background: #1e293b !important;
        opacity: 0.6;
    }

    /* Make skeleton chart values (--) darker in dark mode */
    .chart-bar-column:has(.bar-skeleton) .chart-value {
        color: #374151;
        opacity: 0.6;
    }
}

.chart-value {
    position: absolute;
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.chart-label {
    margin-top: 6px;
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    font-weight: 400;
}

/* Scrollbar styling */
.custom-chart::-webkit-scrollbar {
    height: 4px;
}

.custom-chart::-webkit-scrollbar-track {
    background: transparent;
}

.custom-chart::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.custom-chart::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* Average line - full width within bars container */
.average-line-full-width {
    position: absolute;
    /*left: 300px;*/
    /*right: -252px;*/
    border-top: 1px solid #10b981;
    border-bottom: solid 2px green;
    opacity: 0.75;
    z-index: 10;
    pointer-events: none;
    width: 950px;
}

.average-label {
    position: absolute;
    right: 8px;
    top: -12px;
    background: #10b981;
    border-bottom: solid 2px green;
    color: white;
    font-size: 8px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

main.app-main .alert-success {
    background: color-mix(in oklab, green, var(--bg) 85%);
    border: 1px solid color-mix(in oklab, green, var(--border) 50%);
    color: color-mix(in oklab, green, var(--text) 20%);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

main.app-main .alert-error {
    background: color-mix(in oklab, red, var(--bg) 85%);
    border: 1px solid color-mix(in oklab, red, var(--border) 50%);
    color: color-mix(in oklab, red, var(--text) 20%);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

main.app-main .code-block {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    margin: 1.5rem 0;
}

main.app-main .copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

main.app-main .text-muted {
    color: var(--muted);
    font-size: 0.9rem;
}

main.app-main .flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

main.app-main .space-y {
    > * + * {
        margin-top: 1rem;
    }
}

/* Site header responsive layout */
.site-header-responsive {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.site-title-section h1 {
    margin: 0 0 0.25rem 0;
}

.site-url {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.edit-icon-btn {
    flex-shrink: 0;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--muted);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edit-icon-btn:hover {
    color: var(--link);
    background: color-mix(in oklab, var(--link), var(--bg) 90%);
    text-decoration: none;
}

/* Sites Grid Layout */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .sites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .sites-grid {
        grid-template-columns: 1fr;
    }
}

.site-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-card:hover {
    border-color: var(--link);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.site-header {
    margin-bottom: 1rem;
}

.site-host {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-item.today .stat-number {
    color: var(--link);
    font-weight: 700;
}

.stat-item.lifetime .stat-number {
    color: var(--muted);
    font-weight: 600;
}

.stat-number {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 500;
}

.site-card-placeholder {
    background: color-mix(in oklab, var(--border), var(--bg) 50%);
    border: 1px solid var(--border);
    border-radius: 8px;
    opacity: 0.3;
}

/* KPI Grid for Show Page */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kpi-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--link);
    margin-bottom: 0.5rem;
}

.kpi-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 500;
}

main.app-main .grid-cards {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

/* Demo Chart Section */
.demo-chart-section {
    text-align: center;
    padding: 3rem 0 2rem;
    background: color-mix(in oklab, var(--link), var(--bg) 96%);
}

.demo-chart-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 1rem;
}

.demo-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 180px;
    padding: 16px 4px 20px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
}

.demo-chart .chart-bar {
    flex: 1;
    min-width: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 12px;
}

.demo-chart .bar {
    width: 100%;
    background: var(--link);
    border-radius: 2px 2px 0 0;
    transition: all 0.2s ease;
    min-height: 2px;
}

.demo-chart .chart-value {
    font-size: 9px;
    color: var(--muted);
    font-weight: 500;
    min-height: 10px;
}

.demo-chart .chart-label {
    margin-top: 4px;
    font-size: 9px;
    color: var(--muted);
    text-align: center;
    font-weight: 400;
}

.demo-chart-title {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0;
}

/* Splash Page Styles */
.hero-section {
    text-align: center;
    padding: 0rem 0 6rem;
    background: linear-gradient(
        135deg,
        var(--bg) 0%,
        color-mix(in oklab, var(--link), var(--bg) 95%) 100%
    );
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    min-width: 200px;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--muted);
}

.features-section,
.comparison-section,
.cta-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--link);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.6;
}

.comparison-section {
    background: color-mix(in oklab, var(--border), var(--bg) 80%);
}

.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    align-items: center;
}

.comparison-header {
    background: var(--code-bg);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.comparison-row {
    border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-brand {
    color: var(--link);
    font-weight: 600;
}

.comparison-competitor {
    color: var(--muted);
    text-align: center;
}

.comparison-feature {
    font-weight: 500;
    color: var(--text);
}

.comparison-check,
.comparison-cross,
.comparison-partial {
    text-align: center;
    font-size: 1.2rem;
}

.cta-section {
    text-align: center;
    background: var(--link);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    background: white;
    color: var(--link);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    min-width: 200px;
}

.cta-btn:hover {
    background: color-mix(in oklab, white, var(--link) 10%);
    color: var(--link);
}

/* Chart Zero State */
.chart-zero-state {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.zero-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.chart-zero-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.chart-zero-state p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.setup-tips {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.setup-tip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: color-mix(in oklab, var(--link), var(--bg) 95%);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    max-width: 200px;
}

.tip-number {
    background: var(--link);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.tip-text {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .setup-tips {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .setup-tip {
        max-width: 300px;
    }
}

main.app-main .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

main.app-main .empty-state svg {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

main.app-main .visit-count {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    color: var(--link);
    margin: 0;
}

main.app-main .visit-label {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

main.app-main .visits-total {
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
}

main.app-main .site-info {
    flex: 1;
    margin: 0 1rem;
}

main.app-main .site-info h3 {
    margin: 0 0 0.25rem 0;
}

main.app-main .site-info p {
    margin: 0.25rem 0;
}

/* Header and Navigation */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header-container {
    width: min(68ch, 92vw);
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 101;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Logo dark mode support */
.brand-link img {
    filter: none;
    transition: filter 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    .brand-link img {
        filter: invert(1) hue-rotate(180deg);
    }
}

.brand {
    display: flex;
    align-items: baseline;
}

.brand-link {
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.brand-link:hover {
    color: var(--link);
    text-decoration: none;
}

.brand-name {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.375rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.nav-link:hover {
    color: var(--text);
    background: color-mix(in oklab, var(--border), transparent 50%);
    text-decoration: none;
}

.nav-link--active {
    color: var(--text);
    background: var(--code-bg);
}

.nav-link--primary {
    background: var(--link);
    color: white;
    font-weight: 600;
}

.nav-link--primary:hover {
    background: color-mix(in oklab, var(--link), black 10%);
    color: white;
}

.nav-link--add {
    color: var(--link);
    font-weight: 600;
}

.nav-link--add:hover {
    color: color-mix(in oklab, var(--link), black 10%);
    background: color-mix(in oklab, var(--link), var(--bg) 90%);
}

.admin-nav {
    background: color-mix(in oklab, #9333ea, var(--bg) 95%);
    border-bottom: 1px solid color-mix(in oklab, #9333ea, var(--border) 80%);
    padding: 0.5rem 0;
}

.admin-nav-container {
    width: min(68ch, 92vw);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Make admin nav fluid when on admin pages */
body:has(main.app-main-admin) .admin-nav-container {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0 1.5rem;
}

.admin-menu {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.admin-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1;
    margin-right: 0.25rem;
}

.nav-link--admin {
    color: #9333ea;
    background: color-mix(in oklab, #9333ea, var(--bg) 90%);
    border: 1px solid color-mix(in oklab, #9333ea, var(--border) 70%);
    font-size: 0.75rem;
    padding: 0.25rem 0.4rem;
    line-height: 1;
}

.nav-link--admin:hover {
    color: #7c3aed;
    background: color-mix(in oklab, #9333ea, var(--bg) 85%);
    border-color: color-mix(in oklab, #9333ea, var(--border) 50%);
}

.nav-link--admin.nav-link--active {
    color: white;
    background: #9333ea;
    border-color: #9333ea;
}

.user-menu {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border);
}

.user-greeting {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1;
}

/* Flash messages */
.flash-notice,
.flash-alert {
    margin: 0px 0px 30px;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.flash-notice {
    background: color-mix(in oklab, green, var(--bg) 85%);
    border: 1px solid color-mix(in oklab, green, var(--border) 50%);
    color: color-mix(in oklab, green, var(--text) 20%);
}

.flash-alert {
    background: color-mix(in oklab, red, var(--bg) 85%);
    border: 1px solid color-mix(in oklab, red, var(--border) 50%);
    color: color-mix(in oklab, red, var(--text) 20%);
}

.flash-notice p,
.flash-alert p {
    margin: 0;
}

/* Adjust main content spacing */
main.app-main {
    /*padding: 1.5rem 0 4rem;*/
}

/* Responsive design for mobile */
@media (max-width: 48rem) {
    /* Header adjustments */
    .header-container {
        padding: 0.375rem 1rem;
        align-items: center;
    }

    /* Show hamburger menu in top right corner */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    /* Position logo in top left corner */
    .brand {
        position: absolute;
        top: 1rem;
        left: 1rem;
        z-index: 100;
    }

    /* Hide main navigation by default on mobile */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
    }

    /* Show navigation when active */
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        text-align: left;
        width: 100%;
        border-radius: 8px;
        display: block;
    }

    .admin-nav-container {
        width: 100%;
        padding: 0 1rem;
    }

    .admin-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .admin-menu .admin-label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .admin-menu .nav-link--admin {
        /*text-align: left;*/
        /*display: inline-block;*/
    }

    .user-menu {
        flex-direction: column;
        padding-left: 0;
        border-left: none;
        gap: 0.5rem;
        width: 100%;
        border-top: 1px solid var(--border);
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }

    .user-greeting {
        font-size: 0.85rem;
        color: var(--muted);
        padding: 0.5rem 1rem;
    }

    /* Logo adjustments */
    .brand-link img {
        width: 150px !important;
        position: relative !important;
    }

    /* Main content adjustments */
    main.app-main {
        padding: 4rem 0 2rem;
    }

    /* Chart responsiveness */
    .chart-container h3 {
        font-size: 1rem;
        text-align: center;
    }

    .custom-chart {
        padding: 15px 2px 15px;
    }

    .chart-value {
        font-size: 9px;
    }

    .chart-label {
        font-size: 9px;
    }

    .average-label {
        font-size: 7px;
        padding: 1px 4px;
    }

    /* KPI grid responsive */
    .kpi-number {
        font-size: 2rem;
    }

    .kpi-label {
        font-size: 0.8rem;
    }

    /* Button adjustments */
    .btn,
    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
    }

    /* Site header responsive - stack on mobile */
    .site-header-responsive {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .edit-icon-btn {
        align-self: flex-start;
    }

    /* Form adjustments */
    .form-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .form-input {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Tablet responsive styles */
@media (max-width: 64rem) and (min-width: 48.01rem) {
    .sites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-link img {
        width: 175px !important;
    }
}

/* Small mobile screens */
@media (max-width: 32rem) {
    .main-nav {
        gap: 0.125rem;
    }

    .nav-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .user-menu {
        gap: 0.125rem;
    }

    /* Very small screen adjustments */
    .brand-link img {
        width: 120px !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .chart-value {
        font-size: 8px;
    }

    .chart-label {
        font-size: 8px;
    }

    .site-host {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .kpi-number {
        font-size: 1.75rem;
    }

    /* Stack header on very small screens */
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .user-menu {
        border-left: none;
        padding-left: 0;
        justify-content: center;
    }
}

/* Landscape phone adjustments */
@media (max-width: 48rem) and (orientation: landscape) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Pricing Section Styles */
.pricing {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.pricing-header p {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 0;
}

.pricing-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.plan {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.plan:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.plan-pro {
    border-color: var(--link);
    background: color-mix(in oklab, var(--link), var(--bg) 97%);
    position: relative;
}

.plan-pro::before {
    content: "UPGRADE PLAN";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--link);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem 0;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--link);
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--link);
    font-weight: bold;
}

.plan-button {
    display: inline-block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid;
    cursor: pointer;
    background: color-mix(in oklab, var(--border), var(--bg) 60%);
    color: var(--muted);
    border-color: var(--border);
}

.plan-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.plan-button.primary {
    background: linear-gradient(
        135deg,
        var(--link) 0%,
        color-mix(in oklab, var(--link), #9333ea 20%) 100%
    );
    color: white;
    border-color: var(--link);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.plan-button.primary:hover {
    background: linear-gradient(
        135deg,
        color-mix(in oklab, var(--link), black 10%) 0%,
        color-mix(in oklab, var(--link), black 5%) 100%
    );
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.pricing-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin: 2rem 0 0 0;
}

@media (max-width: 768px) {
    .pricing {
        padding: 1rem;
    }

    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .plan {
        padding: 1.5rem;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }

    .plan-price {
        font-size: 2rem;
    }

    .plan h2 {
        font-size: 1.25rem;
    }

    .plan-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Analytics Summary */
.analytics-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.analytics-summary h2 {
    text-align: center;
    margin: 0 0 2rem 0;
    color: var(--text);
    font-size: 1.5rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.analytics-section h4 {
    margin: 0 0 1rem 0;
    color: var(--link);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analytics-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analytics-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: color-mix(in oklab, var(--border), var(--bg) 90%);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.analytics-item:hover {
    background: color-mix(in oklab, var(--link), var(--bg) 95%);
}

.analytics-name {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.analytics-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.today-stat {
    font-weight: 700;
    color: var(--link);
    font-size: 0.9rem;
}

.today-stat::after {
    content: " today";
    font-weight: 400;
    color: var(--muted);
    font-size: 0.75rem;
}

.total-stat {
    font-weight: 500;
    color: var(--muted);
    font-size: 0.8rem;
}

.total-stat::after {
    content: " total";
    font-weight: 400;
    color: var(--muted);
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .analytics-summary {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .analytics-item {
        padding: 0.6rem;
    }
    
    .analytics-name {
        font-size: 0.85rem;
    }
    
    .today-stat, .total-stat {
        font-size: 0.8rem;
    }
}

/* Badge Configuration Styles */
.badge-preview {
    margin-top: 2rem;
    padding: 1.5rem;
    background: color-mix(in oklab, var(--border), var(--bg) 90%);
    border-radius: 8px;
}

.badge-preview h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text);
}

.preview-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    height: 300px;
}

.preview-website {
    position: relative;
    height: 100%;
    padding: 2rem;
    background: white;
    color: #333;
}

.preview-content h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.preview-content p {
    color: #666;
    line-height: 1.5;
}

.badge-demo {
    position: absolute;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
}

/* Badge Positions */
.badge-demo.position-br {
    bottom: 20px;
    right: 20px;
}

.badge-demo.position-bl {
    bottom: 20px;
    left: 20px;
}

.badge-demo.position-tr {
    top: 20px;
    right: 20px;
}

.badge-demo.position-tl {
    top: 20px;
    left: 20px;
}

/* Badge Base Styles */
.badge-demo {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Badge Colors */
.badge-demo.color-dark {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.badge-demo.color-dark:hover {
    background: rgba(0, 0, 0, 0.9);
}

.badge-demo.color-light {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.badge-demo.color-light:hover {
    background: white;
}

.badge-demo.color-blue {
    background: #3b82f6;
    color: white;
}

.badge-demo.color-blue:hover {
    background: #2563eb;
}

.badge-demo.color-green {
    background: #10b981;
    color: white;
}

.badge-demo.color-green:hover {
    background: #059669;
}

.badge-demo.color-purple {
    background: #8b5cf6;
    color: white;
}

.badge-demo.color-purple:hover {
    background: #7c3aed;
}

.badge-text {
    white-space: nowrap;
}

/* Visits Table Styles */
.visits-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.visits-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    font-size: 0.7rem;
    table-layout: fixed;
}

.visits-table th,
.visits-table td {
    padding: 0.4rem 0.3rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visits-table th {
    background: color-mix(in oklab, var(--border), var(--bg) 60%);
    font-weight: 600;
    color: var(--text);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.visits-table tbody tr:hover {
    background: color-mix(in oklab, var(--border), var(--bg) 80%);
}

.visits-table tbody tr:last-child td {
    border-bottom: none;
}

.visits-table .site-host {
    font-weight: 600;
    color: var(--link);
    width: 12%;
    font-size: 0.65rem;
}

.visit-path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.65rem;
    color: var(--text);
    width: 18%;
}

.visit-referrer {
    color: var(--muted);
    font-size: 0.65rem;
    width: 15%;
}

.visit-os {
    color: var(--text);
    font-weight: 500;
    width: 10%;
    font-size: 0.65rem;
}

.visit-browser {
    color: var(--text);
    width: 12%;
    font-size: 0.65rem;
}

.visit-device {
    color: var(--text);
    font-weight: 500;
    width: 8%;
    font-size: 0.65rem;
}

.visit-ip .ip-address {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.6rem;
    color: var(--muted);
    background: color-mix(in oklab, var(--border), var(--bg) 90%);
    padding: 0.1rem 0.25rem;
    border-radius: 3px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.visit-ip {
    width: 12%;
}

.visit-timestamp {
    color: var(--muted);
    font-size: 0.6rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    width: 13%;
}

.visit-timestamp time {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .visits-table-container {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .visits-table {
        font-size: 0.75rem;
    }
    
    .visits-table th,
    .visits-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .visits-table th {
        font-size: 0.7rem;
    }
    
    .visits-table .site-host {
        min-width: 80px;
        font-size: 0.6rem;
    }
    
    .visit-path {
        min-width: 100px;
        max-width: 120px;
        font-size: 0.7rem;
    }
    
    .visit-referrer {
        min-width: 80px;
        max-width: 100px;
        font-size: 0.7rem;
    }
    
    .visit-os {
        min-width: 60px;
        font-size: 0.75rem;
    }
    
    .visit-browser {
        min-width: 70px;
        max-width: 80px;
        font-size: 0.75rem;
    }
    
    .visit-device {
        min-width: 50px;
        font-size: 0.75rem;
    }
    
    .visit-ip .ip-address {
        font-size: 0.7rem;
        padding: 0.1rem 0.25rem;
        min-width: 80px;
    }
    
    .visit-timestamp {
        font-size: 0.7rem;
        min-width: 60px;
    }
}
