/* Font import opcional */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(to right, #e0ecff, #f0f4ff);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
}

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

.login-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  text-align: center;
}

.login-card h2 {
  color: #267ce2;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.login-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.input-group {
  margin-bottom: 1.2rem;
  position: relative;
}

input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #267ce2;
  box-shadow: 0 0 0 2px rgba(38, 124, 226, 0.2);
}
select{
    padding: 5px;
    border: 1px solid #ccc;
}
button {
  width: 100%;
  padding: 0.75rem;
  background: #267ce2;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #e0ecff;
}

/* Layout exclusivo do dashboard */
.container-dashboard {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Título da dashboard */
.container-dashboard .title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #267ce2;
}

/* Grid de cards */
.container-dashboard .dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Estilo dos cards */
.container-dashboard .card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Wrapper para os gráficos */
.container-dashboard .chart-wrapper {
  width: 100%;
  height: 300px;
}

/* Card que ocupa a grid inteira */
.container-dashboard .full-width {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .container-dashboard .full-width {
    grid-column: span 2;
  }
}

/* Header */
.navbar {
  background-color: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center; /* centraliza verticalmente */
}

.nav-item {
  color: #267ce2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.25rem 0.5rem; /* um padding leve para alinhar com o botão */
  display: flex;
  align-items: center;
  height: 40px; /* padronize altura para todos */
  cursor: pointer;
  background: none;
  border: none;
}

.nav-item:hover {
  color: #1e63c5;
}

/* Dropdown container */
.nav-dropdown {
  position: relative;
}

/* Botão do dropdown */
.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: #267ce2;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  height: 40px;
}

/* Menu do dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 100;
}
/* Itens do dropdown */
.dropdown-item {
  padding: 0.75rem 1rem;
  color: #267ce2;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.dropdown-item:hover {
  background-color: #f0f4ff;
}

/* Mostrar o menu ao passar o mouse */
.nav-dropdown {
  position: relative;
  display: inline-block; /* para evitar problemas no hover */
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-top: 1rem;
}

.input-field {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.input-field:focus {
  border-color: #007bff;
  outline: none;
}

.btn.btn-primary {
  padding: 0.75rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn.btn-primary:hover {
  background-color: #0056b3;
}

.mensagem-feedback {
  font-weight: bold;
  margin-top: 0.5rem;
  border-radius: 5px;
  padding: 0.5rem;
}

.mensagem-feedback.green {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.mensagem-feedback.red {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.empresa-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.empresa-cards div {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  background-color: #fafafa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
}

.forgot-password {
  text-align: right;
  margin-top: 8px;
}

.forgot-password a {
  color: #007bff;
  font-size: 0.9rem;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.login-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.login-links a {
  color: #007bff;
  text-decoration: none;
  margin: 0 0.25rem;
}

.login-links a:hover {
  text-decoration: underline;
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
