/**
 * Componente de Cabeçalho - Informações da Unidade
 * Sistema de Login por Unidades
 */

.unidade-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.unidade-info-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.unidade-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.unidade-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.unidade-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.unidade-nome {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

.unidade-sigla {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-right: 8px;
}

.unidade-email {
  opacity: 0.85;
  font-size: 13px;
}

.unidade-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-supervisor {
  background: #fbbf24;
  color: #78350f;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-logout:active {
  transform: translateY(0);
}

/* Estilo para header de visitante (não logado) */
.unidade-header-guest {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

.btn-login-header {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.btn-login-header:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .unidade-header {
    padding: 12px 16px;
  }
  
  .unidade-info-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .unidade-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .unidade-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .unidade-nome {
    font-size: 15px;
  }
  
  .unidade-email {
    font-size: 12px;
  }
}
