/* ====================== TOTAL FUEGO - ESTILOS GERAIS ====================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');

:root {
  --fire: #E8440A;
  --fire-dark: #C93A09;
  --fire-soft: #FEF2F2;
  --navy: #1A2332;
  --ink: #111827;
  --muted: #64748B;
  --line: #E2E8F0;
  --gray: #F8FAFC;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', system-ui, sans-serif;
  background-color: var(--gray);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

a, button, input, select, textarea {
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(232, 68, 10, 0.22);
  outline-offset: 2px;
}

.page-title {
  color: #1F2937;
  line-height: 1.05;
}

.page-subtitle {
  color: var(--muted);
}

/* Cards */
.card,
.soft-card,
.form-panel,
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 24px -20px rgb(15 23 42 / 0.55);
}

.stat-card {
  background: linear-gradient(180deg, #fff 0%, #fff 72%, #FAFAFA 100%);
}

/* Tabelas */
.table-container {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background: var(--navy);
  color: white;
}

thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tbody tr {
  transition: background-color 0.18s ease;
}

tbody tr:hover {
  background-color: var(--fire-soft);
}

tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #EEF2F7;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Botoes */
.btn-primary {
  background-color: var(--fire);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 20px -16px rgba(232, 68, 10, 0.9);
}

.btn-primary:hover {
  background-color: var(--fire-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: white;
  color: #475569;
  border: 1px solid var(--line);
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background-color: #F8FAFC;
  color: var(--navy);
}

.btn-success {
  background-color: #10B981;
  color: white;
}

.action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Inputs e Selects */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background-color: #fff;
  color: var(--ink);
}

.input:focus {
  border-color: var(--fire);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 68, 10, 0.15);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 42px;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--fire) !important;
  box-shadow: 0 0 0 3px rgba(232, 68, 10, 0.12);
  outline: none;
}

label {
  color: #374151;
}

/* Status Badges */
.status-borrador {
  background-color: #FEF3C7;
  color: #92400E;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
}

.status-completado {
  background-color: #DBEAFE;
  color: #1E40AF;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
}

.status-finalizado {
  background-color: #D1FAE5;
  color: #065F46;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
}

/* Sidebar */
.sidebar-link,
.nav-link {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.sidebar-link:hover {
  background-color: #F8FAFC;
  color: var(--navy);
}

.active,
.sidebar-link.active {
  background-color: #FEE2E2;
  color: #DC2626;
  font-weight: 600;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #64748B;
  border-radius: 10px;
  margin-bottom: 4px;
}

/* Step Indicators */
.step-active {
  border-color: var(--fire);
  color: var(--fire);
  font-weight: 700;
}

/* Responsivo */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .p-8 {
    padding: 1rem !important;
  }

  table {
    font-size: 13px;
  }

  thead th,
  tbody td {
    padding: 10px 8px;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white;
  }

  .card,
  .soft-card,
  .form-panel,
  .stat-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
