html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  padding-top: 70px; /* Mantém o espaço para a navbar fixa */
}

body > .container-fluid {
  flex: 1 0 auto; /* Faz o conteúdo principal crescer e não encolher */
}

.footer {
  flex-shrink: 0; /* Impede que o rodapé encolha */
  line-height: initial; /* Reseta o line-height para o padrão */
  white-space: normal; /* Permite que o texto do rodapé quebre linha */
}

/* Custom Styles */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
}

.hover-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.navbar-brand {
  font-size: 1.5rem;
}

.profile-image-placeholder {
  width: 120px;
  height: 120px;
  background-color: #f8f9fa;
  border: 4px solid #007bff;
  border-radius: 50%;
  font-size: 3rem;
  color: #6c757d;
}

/* Link Animation */
.link-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.link-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.link-button:hover::before {
  left: 100%;
}

/* Card improvements */
.card {
  border-radius: 15px;
  overflow: hidden;
}

.card-header {
  border-bottom: none;
}

.badge {
  font-size: 0.8rem;
  border-radius: 20px;
}

/* Button improvements */
.btn {
  border-radius: 50px;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 0.8rem 2rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 140, 251, 0.3);
}

/* Alert improvements */
.alert {
  border-radius: 15px;
  border: none;
}

/* Form improvements */
.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Navbar base improvements */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link {
  margin: 0 0.2rem;
  transition: all 0.3s ease;
}

/* Menu Home (gradiente) */
.bg-home-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-home-blue .navbar-brand,
.bg-home-blue .nav-link {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bg-home-blue .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Hamburger menu icon color for dark backgrounds */
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu Dashboard (neutro) */
.bg-dashboard {
    background-color: #ffffff !important;
    border-bottom: 1px solid #dee2e6;
}

.bg-dashboard .nav-link:hover {
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
}

/* Estilos para o menu recolhido (mobile) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .bg-home-blue .navbar-collapse {
        background-color: rgba(118, 75, 162, 0.95); /* Cor do gradiente para o menu recolhido */
    }
}