/* public/css/components/header.css */

@font-face {
  font-family: 'bangers';
  src: url('../../fonts/Bangers-Regular.ttf') format('truetype');
}

.main-header {
  /* background-color: #f8f9fa; */
  border-bottom: 2px solid #333;
  /* border-top: 2px solid #333; */
  padding: 0;
}

.main-header h1 {
  color: #333;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
  width: 100%;
  text-align: center;
  flex-wrap: wrap;
}

.header-title {
  flex: 1;
  text-align: center;
  min-width: 0;
  font-size: 42px;
  font-family: 'bangers';
  line-height: 1.1;
  align-items: center;
}

.header-title h1 {
  margin: 0;
  padding: 0px 0;
  font-family: 'bangers';
  font-size: 24px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  line-height: 1.1;
}

.header-user-column {
  display: flex;
  flex-direction: column;
	align-items: flex-start;
}

.welcome-text {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  display: flex; 
  flex-direction: row; 
  align-items: center; 
  justify-content: space-between;
}

.level-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}

.level-select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  background-color: white;
  cursor: pointer;
}

.update-btn {
  padding: 6px 12px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.update-btn:hover {
  background-color: #45a049;
}

.user-actions {
  display: flex;
  gap: 10px;
  flex-direction: row;
  align-items: left;
}
.logout-link {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logout-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.help-link {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.help-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.livredor-link {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.livredor-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 0;
    align-items: center; /* ou flex-start selon ton besoin */
    margin-top: 10px;
  }

  .header-title {
    font-size: 30px;
    width: 100%;
    margin: 0 !important;
  }

  .header-user-column {
    width: 100%;
    align-items: center;
    margin: 0;
  }

  .level-selector {
    flex-wrap: wrap;
    justify-content: center;
  }
}
