:root {
  --primary-color: #0c3c26;
  --secondary-color: #198754;
}

/* Layout Geral */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* Cores e Temas */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0a2e1e;
  border-color: #0a2e1e;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Cards */
.card {
  border-radius: 10px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.card-header {
  border-bottom: 0;
}

/* Timeline */
.timeline-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #dee2e6;
}

.timeline-progress {
  position: relative;
  padding: 20px 0 0;
}

.progress {
  height: 4px;
  background-color: #e9ecef;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  margin-top: -14px;
}

.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-step-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto;
  border: 2px solid #fff;
}

.timeline-step.active .timeline-step-marker {
  background-color: #0c3c26;
  color: white;
}

.timeline-step-text {
  font-size: 0.8rem;
  margin-top: 5px;
  color: #6c757d;
}

.timeline-step.active .timeline-step-text {
  color: #0c3c26;
  font-weight: bold;
}

/* Formulários */
.form-control:focus,
.form-select:focus {
  border-color: rgba(12, 60, 38, 0.4);
  box-shadow: 0 0 0 0.25rem rgba(12, 60, 38, 0.25);
}

.input-group-text {
  background-color: #f8f9fa;
}

/* Opções de Manutenção */
.maintenance-options {
  padding: 0.5rem;
}

.maintenance-details {
  padding-left: 2rem;
}

/* Admin Button */
.admin-button {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 1000;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1060;
}

.custom-toast {
  min-width: 250px;
  background-color: white;
  color: #333;
  border-left: 4px solid #0c3c26;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animações */
.step-content {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Formulários Validação */
.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: #dc3545;
  background-image: none;
  padding-right: 0.75rem;
}

.invalid-feedback {
  display: block;
  font-size: 0.8rem;
}

/* Responsividade */
@media (max-width: 767.98px) {
  .timeline-step-marker {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  .card-header h2 {
    font-size: 1rem;
  }

  /* Tabelas responsivas como cards */
  .table-responsive-card table {
    border: 0;
  }

  .table-responsive-card table thead {
    display: none;
  }

  .table-responsive-card table tr {
    margin-bottom: 1rem;
    display: block;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .table-responsive-card table td {
    display: block;
    text-align: right;
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
  }

  .table-responsive-card table td:last-child {
    border-bottom: 0;
  }

  .table-responsive-card table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
  }
}

/* Admin Dashboard */
.admin-stat-card {
  transition: transform 0.3s ease;
}

.admin-stat-card:hover {
  transform: translateY(-5px);
}

.admin-menu-card {
  transition: all 0.3s ease;
}

.admin-menu-card:hover {
  background-color: #f8f9fa;
  transform: scale(1.02);
}

.admin-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Adicionar ao final do arquivo para estilizar os cards de manutenção em mobile */

/* Cards de Manutenção para Mobile */
.card-manutencao {
  transition: transform 0.2s ease;
  border-left: 4px solid var(--primary-color);
}

.card-manutencao:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card-manutencao .card-header {
  padding: 0.75rem 1rem;
  background-color: rgba(12, 60, 38, 0.05);
}

.card-manutencao .card-body {
  padding: 1rem;
}

/* Estilo para o campo de filtro */
#filtroManutencoes {
  max-width: 200px;
  transition: max-width 0.3s ease;
}

#filtroManutencoes:focus {
  max-width: 250px;
}

@media (max-width: 767.98px) {
  #filtroManutencoes {
    max-width: 100%;
  }
}

/* Animação para os resultados filtrados */
.linha-manutencao,
.card-manutencao {
  transition: opacity 0.3s ease;
}
