/* ── PetZone Brand Variables ──────────────────────────── */
:root {
    --pz-primary: #00AFF0;
    --pz-primary-dark: #0090C8;
    --pz-tutor: #00AFF0;
    --pz-clinica: #8B5CF6;
    --pz-petshop: #E8A045;
    --pz-admin: #6B7280;
    --pz-success: #10B981;
    --pz-danger: #EF4444;
    --pz-warning: #F59E0B;
    --pz-sidebar-width: 260px;
    --pz-topbar-height: 60px;
}

html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body { min-height: 100vh; }

/* ── Focus States ──────────────────────────────────────── */
.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--pz-primary);
}

/* ── Brand Buttons ─────────────────────────────────────── */
.btn-pz-primary {
    background-color: var(--pz-primary);
    border-color: var(--pz-primary);
    color: #fff;
}
.btn-pz-primary:hover {
    background-color: var(--pz-primary-dark);
    border-color: var(--pz-primary-dark);
    color: #fff;
}
.btn-outline-pz-primary {
    border-color: var(--pz-primary);
    color: var(--pz-primary);
}
.btn-outline-pz-primary:hover {
    background-color: var(--pz-primary);
    color: #fff;
}

/* ── Badge Colors ──────────────────────────────────────── */
.badge-purple { background-color: var(--pz-clinica); color: #fff; }
.badge-tutor { background-color: var(--pz-tutor); color: #fff; }
.badge-petshop { background-color: var(--pz-petshop); color: #fff; }

/* ── Dashboard Layout ──────────────────────────────────── */
.pz-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--pz-sidebar-width);
    height: 100vh;
    background: #1E293B;
    color: #CBD5E1;
    z-index: 1040;
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.pz-sidebar .nav-link {
    color: #94A3B8;
    padding: 0.65rem 1.25rem;
    border-radius: 0.5rem;
    margin: 0.15rem 0.75rem;
    transition: all 0.15s;
}
.pz-sidebar .nav-link:hover,
.pz-sidebar .nav-link.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.pz-sidebar .nav-link.active {
    background: var(--pz-primary);
    color: #fff;
}
.pz-sidebar .sidebar-brand {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pz-sidebar .sidebar-brand img {
    height: 32px;
}
.pz-sidebar .sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.pz-topbar {
    position: fixed;
    top: 0;
    left: var(--pz-sidebar-width);
    right: 0;
    height: var(--pz-topbar-height);
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.pz-content {
    margin-left: var(--pz-sidebar-width);
    margin-top: var(--pz-topbar-height);
    padding: 1.5rem;
    min-height: calc(100vh - var(--pz-topbar-height));
    background: #F8FAFC;
}

@media (max-width: 991.98px) {
    .pz-sidebar { transform: translateX(-100%); }
    .pz-sidebar.show { transform: translateX(0); }
    .pz-topbar { left: 0; }
    .pz-content { margin-left: 0; }
}

/* ── Stat Cards ────────────────────────────────────────── */
.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.15s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ── Status Badges ─────────────────────────────────────── */
.badge-status-pendente { background-color: #FEF3C7; color: #92400E; }
.badge-status-confirmado { background-color: #DBEAFE; color: #1E40AF; }
.badge-status-emandamento { background-color: #FED7AA; color: #C2410C; }
.badge-status-concluido { background-color: #D1FAE5; color: #065F46; }
.badge-status-cancelado { background-color: #FEE2E2; color: #991B1B; }
.badge-status-naocompareceu { background-color: #F3F4F6; color: #374151; }

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state .empty-icon {
    font-size: 4rem;
    color: #CBD5E1;
    margin-bottom: 1.5rem;
}
.empty-state h4 { color: #334155; }
.empty-state p { color: #64748B; max-width: 500px; margin: 0 auto; }

/* ── Landing Page ──────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #fff;
    padding: 6rem 0;
}
.hero-section h1 { font-weight: 800; }
.hero-section .lead { color: #94A3B8; font-size: 1.25rem; }

.section-padding { padding: 5rem 0; }

.pricing-card {
    border: 2px solid #E2E8F0;
    border-radius: 1rem;
    transition: all 0.2s;
}
.pricing-card:hover,
.pricing-card.featured {
    border-color: var(--pz-primary);
    box-shadow: 0 10px 40px rgba(0,175,240,0.12);
}
.pricing-card.featured { position: relative; }
.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pz-primary);
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── Species Emoji Helpers ─────────────────────────────── */
.species-icon { font-size: 2rem; }

/* ── Auth Pages ────────────────────────────────────────── */
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── Table Responsive Tweaks ───────────────────────────── */
.table > :not(caption) > * > * { vertical-align: middle; }

/* ── Sidebar Overlay (mobile) ──────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1035;
}
.sidebar-overlay.show { display: block; }

/* ── QR Code Card ──────────────────────────────────────── */
.qr-card {
    background: linear-gradient(135deg, var(--pz-primary) 0%, var(--pz-primary-dark) 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

/* ── Public Pet Page ───────────────────────────────────── */
.pet-hero {
    background: linear-gradient(135deg, var(--pz-primary) 0%, var(--pz-primary-dark) 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}
