/* Common Header Styles */
.header {
  background: white;
  padding: 8px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: #1a4fa0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.brand-icon i {
  width: 20px;
  height: 20px;
}

.brand-logo {
  width: 60px;
  height: 45px;
  cursor: pointer;
}

.header h1 {
  color: #1e293b;
  font-size: 19px;
  cursor: pointer;
  margin: 0;
}

.header-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-nav {
  padding: 8px 16px;
  background: #f1f5f9;
  color: #1e293b;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-nav:hover {
  background: #e2e8f0;
}

.profile-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1a4fa0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
  flex-shrink: 0;
}

.profile-icon:hover {
  background: #1e3a8a;
}

.profile-popover {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.12);
  min-width: 200px;
  z-index: 1000;
  display: none;
}

.profile-popover.show {
  display: block;
}

.profile-popover-header {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.profile-popover-header .user-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.profile-popover-header .user-role {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.profile-popover-footer {
  padding: 8px;
}

.btn-logout-popover {
  width: 100%;
  padding: 10px 16px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-logout-popover:hover {
  background: #b91c1c;
}
