/* Tema geral */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
    flex: 1 0 auto;
  }

.navbar {
  background-color: #2c3e50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand,
.nav-link {
  color: #ecf0f1 !important;
  font-weight: 500;
}

.nav-link:hover {
  color: #3498db !important;
}

/* Botões */
.btn-primary {
  background-color: #3498db;
  border-color: #3498db;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-success {
  background-color: #2ecc71;
  border-color: #2ecc71;
}

.btn-success:hover {
  background-color: #27ae60;
  border-color: #27ae60;
}

.btn-warning {
  background-color: #f1c40f;
  border-color: #f1c40f;
  color: #fff;
}

.btn-warning:hover {
  background-color: #d4ac0d;
  border-color: #d4ac0d;
}

.btn-info {
  background-color: #1abc9c;
  border-color: #1abc9c;
}

.btn-info:hover {
  background-color: #16a085;
  border-color: #16a085;
}

.btn-danger {
  background-color: #e74c3c;
  border-color: #e74c3c;
}

.btn-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
}

.btn-secondary {
  background-color: #7f8c8d;
  border-color: #7f8c8d;
}

.btn-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.875rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

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

.card-no-hover {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Tabelas */
.table {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table thead {
  background-color: #3498db;
  color: #fff;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Formulários */
.form-control {
  border-radius: 5px;
  border: 1px solid #ced4da;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.input-group .btn-outline-secondary {
  border-color: #ced4da;
  transition: background-color 0.3s ease;
}

.input-group .btn-outline-secondary:hover {
  background-color: #f8f9fa;
}

/* Footer */
footer {
    flex-shrink: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
  }

/* Mensagens de erro */
.error-message {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 5px;
  display: none;
}


/* Loading */
.loading-overlay {
  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;
  z-index: 9999;
}

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

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

.hidden {
  display: none;
}