/* GetFax v10 — style.css */

/* ── Card top accent border ─────────────────────────────────────────── */
.card-top {
    border-top: 2px solid #6366f1;
    background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, transparent 60%);
}

/* ── Pill tabs (VIN/Plate and Main/Backup on dashboard) ─────────────── */
.pill-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.4;
    min-height: 32px;
}
.pill-tab:hover:not(.active) { color: #e5e7eb; background: rgba(255,255,255,0.06); }
.pill-tab.active { background: #6366f1; color: #fff; font-weight: 600; }

/* ── Admin nav tab buttons ──────────────────────────────────────────── */
.tab-btn {
    display: inline-block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    transition: color 0.15s;
    text-decoration: none;
}
.tab-btn:hover { color: #d1d5db; }
.tab-btn.active { color: #6366f1; border-bottom-color: #6366f1; font-weight: 600; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.gf-btn-primary {
    background-color: #6366f1;
    color: #fff;
    font-weight: 700;
}
.gf-btn-primary:hover:not(:disabled) { background-color: #5254cc; }
.gf-btn-primary:active:not(:disabled) { transform: scale(0.98); }
.gf-btn-primary:disabled {
    background-color: rgba(255,255,255,0.06);
    color: #4b5563;
    cursor: not-allowed;
}

.gf-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #9ca3af;
}
.gf-btn-ghost:hover { background: rgba(255,255,255,0.05); color: #f9fafb; }

/* ── Pagination ─────────────────────────────────────────────────────── */
.gf-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.15s;
}
.gf-page-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.gf-page-btn.active { background: #6366f1; color: #fff; border-color: #6366f1; }

/* ── Spinner ────────────────────────────────────────────────────────── */
.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(99,102,241,0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Fade-in ────────────────────────────────────────────────────────── */
@keyframes fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fadein { animation: fadein 0.2s ease forwards; }

/* ── Tailwind gap-fillers ───────────────────────────────────────────── */
.hover\:bg-white\/3:hover { background-color: rgba(255,255,255,0.03); }
.bg-white\/8 { background-color: rgba(255,255,255,0.08); }
.border-white\/8 { border-color: rgba(255,255,255,0.08); }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.border-white\/6 { border-color: rgba(255,255,255,0.06); }

/* ── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.4); }

/* ── Mobile safe area ───────────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body { padding-bottom: env(safe-area-inset-bottom); }
}
