/* Resetando padrões para garantir que fique igual em todos os navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Aplicando uma fonte moderna para todo o site */
  body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Estilo do cabeçalho */
  .header {
    background-color: #2E7D32; /* Verde mais escuro */
    color: white;
    padding: 20px;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  /* Container principal */
  .container {
    width: 90%;
    max-width: 1000px;
    margin-top: 30px;
  }
  
  /* Seções */
  .input-section, .dashboard {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
  }
  
  .input-section:hover, .dashboard:hover {
    transform: translateY(-3px);
  }
  
  /* Títulos das seções */
  h2 {
    margin-bottom: 15px;
    color: #2E7D32; /* Verde escuro nos títulos também */
  }
  
  /* Inputs */
  .input-group {
    margin-bottom: 15px;
  }
  
  .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  .input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
  
  /* Botões */
  .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .button-group button {
    flex: 1 1 45%;
    background-color: #2E7D32; /* Verde escuro */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .button-group button:hover {
    background-color: #256029; /* Verde ainda mais escuro no hover */
    transform: scale(1.05);
  }
  
  /* Cards do dashboard */
  .card {
    background: #ffffff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .card:hover {
    transform: scale(1.02);
  }

  /* Modal */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    z-index: 1000;
  }

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  min-width: 300px;
  animation: slideIn 0.3s ease;
}

.modal-content h3 {
  margin-bottom: 10px;
  color: #2E7D32;
}

.modal-content input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.modal-content button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content .cancelar {
  background-color: #ccc;
  color: #333;
}

#confirmarDebito {
  background-color: #2E7D32;
  color: white;
}

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

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hidden {
  display: none;
}

:root {
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --text-color: #333;
  --green: #2e7d32;
  --btn-hover: #27642a;
}

body.dark-mode {
  --bg-color: #1c1c1c;
  --card-bg: #2e2e2e;
  --text-color: #e0e0e0;
  --green: #66bb6a;
  --btn-hover: #4caf50;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.input-section, .dashboard, .modal-content {
  background-color: var(--card-bg);
  color: var(--text-color);
}

button {
  background-color: var(--green);
}

button:hover {
  background-color: var(--btn-hover);
}

.theme-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2d7034;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}

.theme-btn:hover {
  background-color: #1f5225;
  transform: scale(1.05);
}

.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-buttons .theme-btn {
  position: static;
}

body.dark-mode .card {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #333;
}