/* ===== Paleta Azul Marka - MarkaRH ===== */
:root {
  --alt-primary: #01579B;
  --alt-secondary: #0277BD;
  --alt-accent: #03A9F4;

  --alt-text-primary: #37474F;
  --alt-text-secondary: #9E9E9E;
  --alt-text-muted: #9E9E9E;

  --alt-bg-light: #F5F7FA;
  --alt-bg-white: #FFFFFF;

  --alt-success: #43A047;
  --alt-warning: #FBC02D;
  --alt-danger: #E53935;
  --alt-highlight: #8E44AD;
}

/* Layout básico */
body {
  background: var(--alt-bg-light);
  color: var(--alt-text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Open Sans", sans-serif;
}

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--alt-primary);
  color: #E5E7EB;
  padding: 20px;
}

.sidebar h2 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #E0E1DD;
}

.sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #E0E1DD;
  text-decoration: none;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, .06);
}

.sidebar a.active {
  background: rgba(119, 141, 169, .18);
  color: var(--alt-accent);
}

.header {
  background: var(--alt-bg-white);
  border-bottom: 1px solid rgba(13, 27, 42, .08);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .title {
  font-weight: 700;
  color: var(--alt-text-primary);
}

.header .subtitle {
  color: var(--alt-text-secondary);
  font-size: .95rem;
}

.main {
  padding: 24px;
}

/* Cards e KPIs */
.card {
  background: var(--alt-bg-white);
  border: 1px solid rgba(13, 27, 42, .08);
  border-radius: 16px;
  padding: 16px;
}

.kpi {
  color: #fff;
  border-radius: 16px;
  padding: 18px;
}

.kpi-1 {
  background: var(--alt-primary);
}

.kpi-2 {
  background: var(--alt-secondary);
}

.kpi-3 {
  background: var(--alt-success);
}

.kpi-4 {
  background: var(--alt-accent);
}

.kpi-5 {
  background: var(--alt-highlight);
}

.kpi-6 {
  background: var(--alt-warning);
  color: #fff;
}

.kpi .label {
  opacity: .9;
  font-size: .9rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.kpi .value {
  font-size: 1.8rem;
  font-weight: 700;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1557b0;
  border-color: #1557b0;
  color: #ffffff;
}

.btn-secondary {
  background: var(--alt-neutral);
  border-color: var(--alt-neutral);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--alt-secondary);
  border-color: var(--alt-secondary);
}

.btn-outline {
  background: transparent;
  border-color: var(--alt-neutral);
  color: var(--alt-neutral);
}

.btn-outline:hover {
  background: var(--alt-neutral);
  color: #fff;
}

.btn-success {
  background: var(--alt-success);
  border-color: var(--alt-success);
  color: #fff;
}

.btn-success:hover {
  background: #27AE60;
  border-color: #27AE60;
}

.btn-warning {
  background: var(--alt-warning);
  border-color: var(--alt-warning);
  color: #fff;
}

.btn-warning:hover {
  background: #E67E22;
  border-color: #E67E22;
}

.btn-danger {
  background: var(--alt-danger);
  border-color: var(--alt-danger);
  color: #fff;
}

.btn-danger:hover {
  background: #C0392B;
  border-color: #C0392B;
}

/* Tabelas */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--alt-bg-white);
  border: 1px solid rgba(13, 27, 42, .08);
  border-radius: 12px;
  overflow: hidden;
}

.table th {
  text-align: left;
  padding: 12px;
  background: #F2F4F7;
  color: var(--alt-text-secondary);
  font-weight: 600;
}

.table td {
  padding: 12px;
  border-top: 1px solid rgba(13, 27, 42, .06);
  color: var(--alt-text-primary);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(39, 174, 96, .15);
  color: #1e8449;
}

.badge-warning {
  background: rgba(243, 156, 18, .15);
  color: #b06e0c;
}

.badge-danger {
  background: rgba(231, 76, 60, .15);
  color: #a33124;
}

.badge-highlight {
  background: rgba(155, 89, 182, .15);
  color: #6f3a86;
}

.badge-info {
  background: rgba(65, 90, 119, .15);
  color: var(--alt-neutral);
}

.badge-secondary {
  background: rgba(119, 141, 169, .15);
  color: var(--alt-secondary-light);
}

/* Progress Steps - Recadastramento */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.step.active .step-circle {
  background: var(--alt-accent);
  color: white;
  box-shadow: 0 4px 12px rgba(3, 169, 244, 0.3);
}

.step.completed .step-circle {
  background: var(--alt-success);
  color: #fff;
}

.step-label {
  text-align: center;
}

.step-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--alt-text-primary);
  margin-bottom: 4px;
}

.step-description {
  font-size: 0.75rem;
  color: var(--alt-text-muted);
}

.step-connector {
  height: 2px;
  background: #E5E7EB;
  flex: 1;
  margin: 0 -20px;
  margin-top: -30px;
  z-index: -1;
  position: relative;
}

.step-connector.completed {
  background: var(--alt-success);
}

/* Pequenos utilitários */
.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

/* Responsividade */
@media (max-width: 991px) {
  .grid-3,
  .grid-4,
  .grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .grid-3,
  .grid-4,
  .grid-6,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .step-progress {
    flex-direction: column;
    gap: 20px;
  }

  .step-connector {
    display: none;
  }

  .kpi .value {
    font-size: 1.5rem;
  }
}
