html, body {
  height: 100%;
  margin: 0;
  background-color: #f8f9fa;
  overflow: auto;
}

.container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  max-width: 430px !important;
  margin-top: 0.3rem !important; /* Reduzido em 80% do valor padrão de mt-4 (1.5rem) */
}

.card {
  border-radius: 10px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

/* Tema 1 (Padrão) */
.theme-1 .card-header,
.card-header {
  background-color: #343a40;
  color: white;
  border-radius: 10px 10px 0 0;
  padding: 10px 15px;
  height: 55px;
  display: flex;
  align-items: center; /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
}

/* Tema 2 (Divertido) */
.theme-2 .card-header {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tema 2 (Corporativo) */
.theme-2 .card-header {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* Remove overflow: hidden to use full space */
}

.timestamp {
  font-size: 0.8rem;
  color: #6c757d;
}

.result-container {
  flex: 1;
  font-size: 0.9rem;
  /* Remove overflow: auto to prevent scrolling */
}

.table {
  margin-bottom: 0;
}

/* Adicionar fundo escuro para toda a primeira linha (cabeçalhos) */
.card-body .table thead tr th:first-child,
.card-body .table tbody tr td:first-child {
  text-align: center;
}

/* Tema 1 (Padrão) */
.theme-1 .card-body .table thead tr th,
.card-body .table thead tr th {
  background-color: #343a40 !important;
  color: white !important;
  text-align: center; /* Adicione esta linha para centralizar o texto */
}

/* Tema 2 (Divertido) */
.theme-2 .card-body .table thead tr th {
  background: #4f46e5 !important;
  color: #f9fafb !important;
  text-shadow: none;
  font-weight: 500;
}

/* Tema 2 (Corporativo) */
.theme-2 .card-body .table thead tr th {
  background-color: #34495e !important;
  color: #ecf0f1 !important;
}

/* Tema 1 (Padrão) */
.theme-1 .success,
.success {
  color: #28a745;
}

.theme-1 .error,
.error {
  color: #dc3545;
}

/* Tema 2 (Divertido) */
.theme-2 .success {
  color: #00e676;
  font-weight: bold;
}

.theme-2 .error {
  color: #ff5252;
  font-weight: bold;
}

/* Tema 2 (Corporativo) */
.theme-2 .success {
  color: #27ae60;
}

.theme-2 .error {
  color: #c0392b;
}

/* Estilos para animação na linha de resultados */
.result-row {
  animation: fadeIn 0.5s;
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.form-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Tema 1 (Padrão) */
.theme-1 .card-footer,
.card-footer {
  padding: 5px;
  background: #343a40;
  color: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Tema 2 (Divertido) */
.theme-2 .card-footer {
  background: linear-gradient(to right, #a18cd1, #fbc2eb);
  color: #333;
  font-weight: bold;
}

/* Tema 2 (Corporativo) */
.theme-2 .card-footer {
  background: #2c3e50;
  color: #ecf0f1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Estilos para os ícones dinâmicos */
.status-wrapper {
  display: flex;
  align-items: center;
}

.icon-animated {
  margin-right: 10px;
  font-size: 18px;
}

/* Cores dos ícones - Tema 1 (Padrão) */
.theme-1 .icon-success,
.icon-success {
  color: #28a745;
}

.theme-1 .icon-error,
.icon-error {
  color: #dc3545;
}

.theme-1 .icon-warning,
.icon-warning {
  color: #ffc107;
}

.theme-1 .icon-danger,
.icon-danger {
  color: #dc3545;
}

/* Cores dos ícones - Tema 2 (Divertido) */
.theme-2 .icon-success {
  color: #00e676;
}

.theme-2 .icon-error {
  color: #ff5252;
}

.theme-2 .icon-warning {
  color: #ffab40;
}

.theme-2 .icon-danger {
  color: #ff1744;
}

/* Animações mais divertidas para o Tema 2 */
.theme-2 .icon-success {
  animation: bounce 1.5s infinite;
}

.theme-2 .icon-error {
  animation: wobble 1.5s infinite;
}

.theme-2 .icon-warning {
  animation: flip 3s infinite linear;
}

.theme-2 .icon-danger {
  animation: pulse 1.2s infinite;
}

/* Definições das novas animações para o Tema 2 */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

@keyframes wobble {
  0%, 100% {transform: translateX(0);}
  15% {transform: translateX(-5px) rotate(-5deg);}
  30% {transform: translateX(4px) rotate(3deg);}
  45% {transform: translateX(-3px) rotate(-3deg);}
  60% {transform: translateX(2px) rotate(2deg);}
  75% {transform: translateX(-1px) rotate(-1deg);}
}

@keyframes flip {
  0% {transform: rotateY(0);}
  100% {transform: rotateY(360deg);}
}

/* Estilo de tabela mais divertido para o Tema 2 */
.theme-2 .table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.theme-2 .table tbody tr:nth-child(odd) {
  background-color: #f0f8ff;
}

.theme-2 .table tbody tr:nth-child(even) {
  background-color: #e6f2ff;
}

.theme-2 .table tbody tr:hover {
  background-color: #d4e9ff;
  transition: background-color 0.3s ease;
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.form-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Tema 1 (Padrão) */
.theme-1 .card-footer,
e q.card-footer {
u  padding: 5px;
  background: #000;
  color: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Tema 2 (Corporativo) */
.theme-2 .card-footer {
  background: #2c3e50;
  color: #ecf0f1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Estilos para os ícones dinâmicos */
.status-wrapper {
  display: flex;
  align-items: center;
}

.icon-animated {
  margin-right: 10px;
  font-size: 18px;
}

/* Cores dos ícones - Tema 1 (Padrão) */
.theme-1 .icon-success,
.icon-success {
  color: #28a745;
}

.theme-1 .icon-error,
.icon-error {
  color: #dc3545;
}

.theme-1 .icon-warning,
.icon-warning {
  color: #ffc107;
}

.theme-1 .icon-danger,
.icon-danger {
  color: #dc3545;
}

/* Cores dos ícones - Tema 2 (Corporativo) */
.theme-2 .icon-success {
  color: #27ae60;
}

.theme-2 .icon-error {
  color: #c0392b;
}

.theme-2 .icon-warning {
  color: #f39c12;
}

.theme-2 .icon-danger {
  color: #e74c3c;
}

/* Animações */
.icon-success {
  animation: pulse 1.5s infinite;
}

.icon-error {
  animation: shake 1.5s infinite;
  animation-delay: 0.5s;
}

.icon-warning {
  animation: spin 3s infinite linear;
}

.icon-danger {
  animation: flash 1.5s infinite;
}

/* Definição das animações */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-2px); }
  40%, 80% { transform: translateX(2px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.card-body .table th:nth-child(2),
.card-body .table td:nth-child(2) {
  width: 205px; /* Aumentado em 10px */
}
.card-body .table th:nth-child(3),
.card-body .table td:nth-child(3) {
  width: 120px; /* Reduzido em 10px */
}

/* Script para definir o tema padrão como 1 se nenhum for especificado */
:root {
  --theme: 1;
}