/* ================================================
   Triunfo Bombas de Vácuo — Portal de Garantias
   Cores: Amarelo #C8BC00 | Cinza | Branco
   ================================================ */

:root {
  --yellow:       #C8BC00;
  --yellow-hover: #A89E00;
  --yellow-light: #F5F2CC;
  --dark:         #1a1a1a;
  --gray-dark:    #3d3d3d;
  --gray-mid:     #6c757d;
  --gray-light:   #f2f2f2;
  --border:       #d8d8d8;
  --white:        #ffffff;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
}

/* ------------------------------------------------
   Reset / Base
   ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--gray-light);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.container { flex: 1; }

a { color: var(--gray-dark); }
a:hover { color: var(--yellow-hover); }

/* ------------------------------------------------
   Navbar
   ------------------------------------------------ */
.navbar-triunfo {
  background-color: var(--dark);
  border-bottom: 3px solid var(--yellow);
  padding: 0.5rem 0;
}

.navbar-brand {
  padding: 0.25rem 0;
}

.navbar-triunfo .nav-link {
  color: #ccc !important;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem !important;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.navbar-triunfo .nav-link:hover {
  color: var(--yellow) !important;
  background: rgba(255,255,255,0.06);
}

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

/* ------------------------------------------------
   Botões
   ------------------------------------------------ */
.btn-yellow {
  background-color: var(--yellow);
  color: var(--dark);
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn-yellow:hover, .btn-yellow:focus {
  background-color: var(--yellow-hover);
  color: var(--dark);
}

.btn-dark-outline {
  border: 2px solid var(--dark);
  color: var(--dark);
  background: transparent;
  font-weight: 600;
}
.btn-dark-outline:hover {
  background: var(--dark);
  color: var(--white);
}

/* mapeamentos Bootstrap */
.btn-triunfo {
  background-color: var(--dark);
  color: var(--white);
  border: none;
  font-weight: 600;
}
.btn-triunfo:hover {
  background-color: var(--gray-dark);
  color: var(--white);
}

/* ------------------------------------------------
   Hero (landing)
   ------------------------------------------------ */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, #2d2d2d 60%, #3a3a3a 100%);
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  padding: 4rem 2.5rem;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: var(--yellow);
  opacity: 0.07;
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 160px; height: 160px;
  background: var(--yellow);
  opacity: 0.05;
  border-radius: 50%;
}

/* ------------------------------------------------
   Cards
   ------------------------------------------------ */
.card {
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border) !important;
}

.card-header {
  border-radius: 8px 8px 0 0 !important;
  font-weight: 700;
}

.card-header-dark {
  background-color: var(--dark) !important;
  color: var(--white) !important;
  border-bottom: 3px solid var(--yellow) !important;
}

.card-header-yellow {
  background-color: var(--yellow) !important;
  color: var(--dark) !important;
}

.card-header-gray {
  background-color: #ebebeb !important;
  color: var(--dark) !important;
  border-bottom: 1px solid var(--border) !important;
}

.card-hover {
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ------------------------------------------------
   Step icons (landing)
   ------------------------------------------------ */
.step-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 3px 10px rgba(200,188,0,0.35);
}

/* ------------------------------------------------
   Status badges
   ------------------------------------------------ */
.badge { letter-spacing: 0.03em; font-weight: 700; }

/* ------------------------------------------------
   Garantia ID (dashboard)
   ------------------------------------------------ */
.garantia-id {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--yellow-hover);
  min-width: 64px;
  line-height: 1;
}

/* ------------------------------------------------
   Tabela de peças (admin)
   ------------------------------------------------ */
#tabelaPecas thead th {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--dark);
  color: var(--yellow);
  border-color: #444 !important;
}
#tabelaPecas td { font-size: 0.82rem; vertical-align: middle; }
#tabelaPecas input[type="number"] {
  font-size: 0.82rem;
  padding: 3px 6px;
  border-radius: 4px;
}
#tabelaPecas tfoot td {
  background: var(--dark);
  color: var(--yellow);
  font-weight: 700;
}

/* ------------------------------------------------
   Problema / Texto longo
   ------------------------------------------------ */
.problema-texto {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.75;
  background: #fafafa;
  border-left: 3px solid var(--yellow);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
}

/* ------------------------------------------------
   Form focus
   ------------------------------------------------ */
.form-control:focus, .form-select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 0.2rem rgba(200,188,0,0.25);
}

/* ------------------------------------------------
   Section divider label
   ------------------------------------------------ */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
}

/* ------------------------------------------------
   Pill status (inline badge with icon)
   ------------------------------------------------ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ------------------------------------------------
   Timeline (detalhe da garantia)
   ------------------------------------------------ */
.timeline-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* ------------------------------------------------
   Admin sidebar stats
   ------------------------------------------------ */
.stat-card {
  border-left: 4px solid var(--yellow) !important;
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
.footer-triunfo {
  background: var(--dark);
  border-top: 3px solid var(--yellow);
  color: #999;
  padding: 1rem 0;
  margin-top: auto;
}
.footer-triunfo a { color: var(--yellow); }

/* ------------------------------------------------
   Auth pages
   ------------------------------------------------ */
.auth-card {
  max-width: 420px;
  margin: 2rem auto;
}
.auth-card .card-header-dark {
  text-align: center;
  padding: 1.5rem;
}

/* ------------------------------------------------
   Utilities
   ------------------------------------------------ */
.text-yellow { color: var(--yellow) !important; }
.bg-yellow   { background-color: var(--yellow) !important; }
.text-dark-custom { color: var(--dark) !important; }
.border-yellow { border-color: var(--yellow) !important; }

/* ------------------------------------------------
   Responsivo
   ------------------------------------------------ */
@media (max-width: 576px) {
  .hero-section { padding: 2.5rem 1.5rem; }
  .garantia-id  { font-size: 1.1rem; }
}
