/* ── Visit Counter — popup.css ── */

/* ─── Bouton flottant (FAB) ─── */
.vc-fab {
    position: fixed;
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px 10px 12px;
    background: #1e293b;
    color: #f8fafc;
    border: none;
    border-radius: 50px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    transition: transform .15s, box-shadow .15s, background .15s;
    letter-spacing: .01em;
}
.vc-fab:hover {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.40);
}
.vc-fab:active { transform: translateY(0); }

.vc-fab-icon { font-size: 16px; line-height: 1; }
.vc-fab-count { color: #7dd3fc; }

/* Positions */
.vc-pos-bottom-right { bottom: 24px; right: 24px; }
.vc-pos-bottom-left  { bottom: 24px; left:  24px; }
.vc-pos-top-right    { top:    24px; right: 24px; }
.vc-pos-top-left     { top:    24px; left:  24px; }

/* ─── Overlay ─── */
.vc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: vc-fade-in .18s ease;
}
@keyframes vc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Panneau ─── */
.vc-panel {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.30);
    animation: vc-slide-up .2s ease;
}
@keyframes vc-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Header */
.vc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #1e293b;
    border-radius: 14px 14px 0 0;
    flex-shrink: 0;
}
.vc-panel-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: .01em;
}
.vc-panel-close {
    background: rgba(255,255,255,.12);
    border: none;
    color: #cbd5e1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.vc-panel-close:hover { background: rgba(255,255,255,.22); color: #fff; }

/* KPI strip */
.vc-panel-kpis {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.vc-stat {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    border-right: 1px solid #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.vc-stat:last-child { border-right: none; }
.vc-stat-val {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    letter-spacing: -.5px;
}
.vc-stat-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 600;
}

/* Tableau scrollable */
.vc-table-wrap {
    overflow-y: auto;
    flex: 1;
    padding: 0;
}
.vc-popup-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
}
.vc-popup-table thead {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
}
.vc-popup-table th {
    padding: 9px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}
.vc-popup-table td {
    padding: 8px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
.vc-popup-table tbody tr:hover { background: #f8fafc; }
.vc-popup-table tbody tr:last-child td { border-bottom: none; }

.vc-row-today td { background: #eff6ff !important; }
.vc-row-today:hover td { background: #dbeafe !important; }

.vc-td-num  { color: #94a3b8; width: 32px; }
.vc-td-count { width: 80px; }
.vc-td-bar  { width: 120px; }

.vc-badge {
    display: inline-block;
    background: #3b82f6;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Barre */
.vc-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    min-width: 60px;
}
.vc-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9);
    border-radius: 10px;
    transition: width .3s ease;
    min-width: 4px;
}
