// 🎨 Estilos específicos do componente Fuelcontroll
// ERP SaaS - Sistema PraFrota

.domain-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--background-color, #f8f9fa);
  
  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    app-tab-system {
      flex: 1;
      display: flex;
      flex-direction: column;
    }
  }
}

// 📱 Responsividade para ERP
@media (max-width: 768px) {
  .domain-container {
    padding: 0.5rem;
    
    .main-content {
      height: calc(100vh - 1rem);
    }
  }
}

// 🎯 Classes específicas do domínio
.fuelcontroll-specific {
  // Estilos específicos do fuelcontroll aqui
}

// 🎨 Status Badges para Controle de Combustível
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  
  // 📱 Responsividade
  @media (max-width: 768px) {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
  }
}

// ✅ Status: Aprovado
.status-approved {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #c3e6cb;
  
  &::before {
    content: "✓";
    margin-right: 0.25rem;
    font-weight: bold;
  }
  
  &:hover {
    background: linear-gradient(135deg, #c3e6cb 0%, #b1dfbb 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  }
}

// ❌ Status: Negado/Rejeitado
.status-rejected {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f5c6cb;
  
  &::before {
    content: "✗";
    margin-right: 0.25rem;
    font-weight: bold;
  }
  
  &:hover {
    background: linear-gradient(135deg, #f5c6cb 0%, #f1b0b7 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  }
}

// ❓ Status: Desconhecido/Não informado
.status-unknown {
  background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
  color: #383d41;
  border: 1px solid #d6d8db;
  
  &::before {
    content: "?";
    margin-right: 0.25rem;
    font-weight: bold;
  }
  
  &:hover {
    background: linear-gradient(135deg, #d6d8db 0%, #c8cbcf 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  }
}





// 🌙 Dark Mode Support para Status Badges
@media (prefers-color-scheme: dark) {
  .status-approved {
    background: linear-gradient(135deg, #1e3a2e 0%, #2d5a3d 100%);
    color: #a3d9a5;
    border: 1px solid #2d5a3d;
    
    &:hover {
      background: linear-gradient(135deg, #2d5a3d 0%, #3a6b4a 100%);
    }
  }
  
  .status-rejected {
    background: linear-gradient(135deg, #3a1e1e 0%, #5a2d2d 100%);
    color: #f5a3a3;
    border: 1px solid #5a2d2d;
    
    &:hover {
      background: linear-gradient(135deg, #5a2d2d 0%, #6b3a3a 100%);
    }
  }
  
  .status-unknown {
    background: linear-gradient(135deg, #2d2e30 0%, #3a3b3d 100%);
    color: #a8a9aa;
    border: 1px solid #3a3b3d;
    
    &:hover {
      background: linear-gradient(135deg, #3a3b3d 0%, #4a4b4d 100%);
    }
  }
}

// 🎯 Animation de pulso para status críticos
.status-rejected {
  animation: pulse-error 2s infinite;
}

@keyframes pulse-error {
  0% {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(220, 53, 69, 0.1);
  }
  100% {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
}

// 🏢 ERP Theme compatibility
:host {
  display: block;
  height: 100%;
  
  // CSS Variables para temas
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

// 🎯 Print styles para relatórios ERP
@media print {
  .domain-container {
    background: white !important;
    
    .main-content {
      overflow: visible !important;
    }
    
    .status-badge {
      border: 1px solid #000 !important;
      background: white !important;
      color: black !important;
    }
  }
}