/* =========================================================
   IGS SERVICE - style.css
   Cores e identidade visual do site
   ========================================================= */

:root {
    --igs-purple-dark: #1c1547;
    --igs-purple: #4b3fa6;
    --igs-purple-light: #5b4fc4;
    --igs-yellow: #f4b740;
    --igs-orange: #ff9a3c;
    --igs-red: #ff6b4a;
    --igs-white: #ffffff;
    --igs-gray: #cbc6ec;

    /* tokens novos - usados no elemento de assinatura (tíquete de OS) e reforço de identidade */
    --igs-ink: #15102f;
    --igs-ink-panel: #201a4d;
    --igs-paper: #faf6ec;
    --igs-paper-ink: #241c45;
    --igs-mint: #33d492;

    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

body {
    background: linear-gradient(180deg, var(--igs-purple) 0%, #362d7d 55%, var(--igs-purple-dark) 100%);
    color: var(--igs-white);
    font-family: var(--font-body);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn-hero, .filter-pill {
    font-family: var(--font-display);
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

a { text-decoration: none; }

.text-white-50 { color: rgba(255,255,255,.6) !important; }

/* ---------- NAVBAR ---------- */
.navbar-igs {
    background: rgba(20, 15, 56, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,201,60,0.15);
}

.navbar-igs .navbar-brand {
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--igs-yellow) !important;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-igs .nav-link {
    color: var(--igs-white) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
}

.navbar-igs .nav-link:hover,
.navbar-igs .nav-link.active {
    color: var(--igs-yellow) !important;
}

.navbar-igs .dropdown-menu {
    background: var(--igs-purple);
    border: 1px solid rgba(255,201,60,0.2);
}
.navbar-igs .dropdown-item { color: var(--igs-white); }
.navbar-igs .dropdown-item:hover { background: var(--igs-purple-light); color: var(--igs-yellow); }

.cart-badge {
    position: absolute;
    top: -6px; right: -10px;
    background: var(--igs-red);
    color: #fff;
    font-size: 0.65rem;
    border-radius: 50%;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- BOTÕES HERO ---------- */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.7rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-hero:hover { transform: translateY(-2px); }

.btn-hero-yellow { background: var(--igs-yellow); color: #1a1a2e; }
.btn-hero-yellow:hover { color: #1a1a2e; box-shadow: 0 6px 20px rgba(255,201,60,.4); }

.btn-hero-white { background: var(--igs-white); color: #1a1a2e; }
.btn-hero-white:hover { color: #1a1a2e; box-shadow: 0 6px 20px rgba(255,255,255,.25); }

.btn-hero-red { background: var(--igs-red); color: #fff; }
.btn-hero-red:hover { color: #fff; box-shadow: 0 6px 20px rgba(238,77,45,.4); }

.btn-hero-outline { background: transparent; color: var(--igs-yellow); border-color: var(--igs-yellow); }
.btn-hero-outline:hover { background: var(--igs-yellow); color: #1a1a2e; }

.btn-hero-orange { background: var(--igs-orange); color: #1a1a2e; }
.btn-hero-orange:hover { color: #1a1a2e; box-shadow: 0 6px 20px rgba(255,159,26,.4); }

.btn-hero-purple { background: var(--igs-purple-light); color: #fff; }
.btn-hero-purple:hover { color: #fff; box-shadow: 0 6px 20px rgba(91,79,196,.5); }

.btn-hero-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-hero-outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- BUSCA ---------- */
.search-igs {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    overflow: hidden;
}
.search-igs input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1.2rem;
    color: #fff;
    outline: none;
}
.search-igs input::placeholder { color: rgba(255,255,255,0.5); }
.search-igs button {
    background: var(--igs-yellow);
    border: none;
    padding: 0 1.4rem;
    color: #1a1a2e;
    font-weight: 700;
}

/* ---------- FILTROS (PILLS) ---------- */
.filter-pill {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    margin: 0.2rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    color: var(--igs-gray);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.filter-pill:hover { color: var(--igs-white); border-color: var(--igs-yellow); }
.filter-pill.active { background: var(--igs-yellow); color: #1a1a2e; }

/* ---------- CARDS ---------- */
.card-igs {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card-igs:hover {
    transform: translateY(-4px);
    border-color: rgba(244,183,64,0.4);
    box-shadow: 0 16px 36px rgba(0,0,0,0.25);
}

/* ---------- FORMULÁRIOS ---------- */
.form-igs label { color: var(--igs-gray); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.form-igs .form-control,
.form-igs .form-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 10px;
    padding: 0.65rem 1rem;
}
.form-igs .form-control:focus,
.form-igs .form-select:focus {
    background: rgba(255,255,255,0.09);
    border-color: var(--igs-yellow);
    box-shadow: 0 0 0 3px rgba(255,201,60,0.15);
    color: #fff;
}
.form-igs .form-control::placeholder { color: rgba(255,255,255,0.35); }

/* ---------- FOOTER ---------- */
.footer-igs {
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,201,60,0.15);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-igs h6 { color: var(--igs-yellow); font-weight: 700; margin-bottom: 1rem; }
.footer-igs a { color: var(--igs-gray); }
.footer-igs a:hover { color: var(--igs-yellow); }
.footer-igs .social-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    margin-right: 0.5rem;
}
.footer-igs .social-icon:hover { background: var(--igs-yellow); color: #1a1a2e; }

/* ---------- WHATSAPP FLUTUANTE ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 58px; height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    z-index: 999;
    animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- RECIBO / IMPRESSÃO ---------- */
.recibo-box {
    background: #fff;
    color: #111;
    border-radius: 12px;
    padding: 2rem;
}
@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; }
    .recibo-box { box-shadow: none !important; }
}

/* ---------- BADGE STATUS OS ---------- */
.status-badge { padding: 0.35rem 0.9rem; border-radius: 50px; font-size: 0.8rem; font-weight: 700; }
.status-Aberta { background: #3d8bfd33; color: #7db1ff; }
.status-Em_Analise { background: #ffc93c33; color: var(--igs-yellow); }
.status-Aguardando_Pecas { background: #ee4d2d33; color: #ff8b73; }
.status-Em_Manutencao { background: #9b59b633; color: #d2a4e6; }
.status-Pronto { background: #2ecc7133; color: #7be8ab; }
.status-Entregue { background: #ffffff22; color: #fff; }
.status-Cancelada { background: #ff000033; color: #ff7b7b; }

@media (max-width: 768px) {
    .btn-hero { padding: 0.65rem 1.2rem; font-size: 0.85rem; }
}

/* =========================================================
   ELEMENTO DE ASSINATURA — "TÍQUETE DE OS"
   Um cartão com furos de perfuração (igual etiqueta de conserto real),
   usado no hero e em qualquer lugar que precise reforçar a identidade da IGS.
   ========================================================= */
.ticket {
    position: relative;
    background: var(--igs-paper);
    color: var(--igs-paper-ink);
    border-radius: 20px;
    padding: 1.75rem 1.85rem;
    box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}
.ticket::before, .ticket::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 26px; height: 26px;
    background: var(--igs-ink);
    border-radius: 50%;
    transform: translateY(-50%);
}
.ticket::before { left: -13px; }
.ticket::after { right: -13px; }

.ticket-tear {
    border-top: 2px dashed rgba(36,28,69,0.25);
    margin: 1rem 0;
}

.ticket-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--igs-purple);
    font-weight: 700;
}

.ticket-num {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--igs-purple-dark);
}

.ticket-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    background: rgba(51,212,146,0.15);
    color: #0d8a56;
}
.ticket-status i { font-size: 0.55rem; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--igs-yellow);
    background: rgba(244,183,64,0.12);
    border: 1px solid rgba(244,183,64,0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--igs-mint); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s ease both; }
.fade-up-1 { animation-delay: .05s; }
.fade-up-2 { animation-delay: .15s; }
.fade-up-3 { animation-delay: .25s; }
.fade-up-4 { animation-delay: .35s; }

/* =========================================================
   PAINEL ADMINISTRATIVO
   ========================================================= */
.admin-body { background: var(--igs-purple-dark); min-height: 100vh; }

.admin-sidebar {
    background: rgba(0,0,0,0.35);
    min-height: 100vh;
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255,201,60,0.12);
}
.admin-sidebar .brand { color: var(--igs-yellow); font-weight: 900; font-size: 1.2rem; margin-bottom: 2rem; display:block; }
.admin-nav-link {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    color: var(--igs-gray);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.admin-nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav-link.active { background: var(--igs-yellow); color: #1a1a2e; }

.admin-content { padding: 2rem; }

.admin-stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.4rem;
}
.admin-stat-card .num { font-size: 2rem; font-weight: 800; color: var(--igs-yellow); }

.table-admin {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
}
.table-admin th { color: var(--igs-yellow); font-size: 0.8rem; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.1); }
.table-admin td { border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; font-size: 0.88rem; }

.badge-sim { background: #2ecc7133; color: #7be8ab; padding: .25rem .6rem; border-radius: 50px; font-size:.75rem; font-weight:700; }
.badge-nao { background: #ff000022; color: #ff8b8b; padding: .25rem .6rem; border-radius: 50px; font-size:.75rem; font-weight:700; }

@media (max-width: 992px) {
    .admin-sidebar { min-height: auto; }
}
