/* Navbar base styles */
.navbar {
  background-color: #ffffff;
  padding: 0 20px;
}

.navbar a {
  cursor: pointer;
  color: #333333 !important;
}

/* Navbar right alignment and centering */
.navbar-right {
  height: 70px;
  display: flex;
  align-items: center;
}

.navbar-right > li {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-right > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 15px !important;
}

/* Default icon sizing and alignment */
.default-icon {
  width: 24px;
  height: 24px;
}

/* Dropdown menu styles */
.header .dropdown-toggle,
.header .dropdown-toggle:hover,
.header .dropdown-toggle:focus,
.header .open .dropdown-toggle,
.header .open .dropdown-toggle:hover,
.header .open .dropdown-toggle:focus {
  background-color: transparent !important;
}

.header .open .dropdown-menu {
  padding: 0;
  top: 65px;
}

.header .selected,
.header .open .dropdown-menu a:hover {
  font-weight: bolder;
  color: #333333 !important;
  background: #f8f9fa !important;
}

/* Username styles */
.username-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 90px;
  display: inline-block;
  text-align: right;
}

.username-tip {
  float: left;
  margin-right: 10px;
}

/* Left navbar section with hamburger and brand */
.navbar-nav.navbar-left {
  display: flex;
  align-items: center;
  height: 70px;
}

/* Hamburger menu styles */
.navbar-toggle-btn {
  display: flex;
  align-items: center;
  height: 70px;
  width: 50px;
  padding: 0;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger-icon {
  fill: currentColor;
}

.navbar-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Logo and brand styles */
.navbar-brand {
  display: flex;
  align-items: center;
  height: 70px;
  padding: 0 15px;
  margin-left: 0;
}

.navbar-logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.logo-text {
  color: #00D8FF;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

/* Header base styles */
.header {
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  border-bottom: 1px solid #e7e7e7;
}

.header a {
  color: #333333 !important;
}

/* Icons in navbar */
.glyphicon-question-sign,
.glyphicon-envelope,
.glyphicon-bell {
  font-size: 1.4em;
}

/* Profile Dropdown Menu Styles */
.profile-dropdown {
  width: 300px;
}

.profile-header {
  padding: 20px;
  display: flex;
  align-items: center;
  background: #0a1b46;
  border-radius: 4px 4px 0 0;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #cfd8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.profile-avatar span {
  color: #0a1b46;
  font-size: 18px;
  font-weight: 500;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 16px;
  font-weight: 500;
  color: white;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 14px;
  color: #cfd8dc;
  opacity: 0.9;
}

.profile-menu-items {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.menu-item {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s;
  height: 100px;
}

.menu-item:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}

.menu-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  color: #333;
}

.menu-item span {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  text-align: center;
}

.menu-item-logout {
  grid-column: 1 / -1;
  background: #71e746ff;
  font-weight: bold;
  margin-top: 5px;
}

.menu-item-logout .menu-icon,
.menu-item-logout span {
  color: white !important;
}
.menu-item-logout:hover {
  color: black !important;
}

/* Help Dropdown Menu Styles */
.help-dropdown {
  width: 380px;
  padding: 16px;
}

.help-menu-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.help-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  background: #f8f9fa;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.help-card:hover {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #f0f4ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #2563eb;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.card-content {
  text-align: center;
  flex: 1;
  width: 100%;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 12px;
  color: #666;
}

.card-arrow {
  width: 20px;
  height: 20px;
  color: #2563eb;
  position: absolute;
  right: 8px;
  top: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.help-card:hover .card-arrow {
  opacity: 1;
}
