.fab-settings-icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  cursor: pointer;
  color: var(--text-color, #333);
  transition: color 0.3s ease, transform 0.3s ease;
  display: block;
}

.fab-notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fab-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #063256;
  color: white;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  padding: 2px;
  border: 1px solid white;
}

/* Header styles moved from dashboard.css */
.fab-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 18px;
  max-width: 100%;
  zoom: 1; /* Prevent unwanted magnification */
  transform: none; /* Prevent transforms */
}

.fab-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fab-logo-img {
  width: 180px;
  height: 100px;
  margin-right: 4px;
}


.fab-logo-text {
  font-family: Playfair Display;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fab-header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 32px;
}

.fab-theme-toggle,
.fab-notification-bell,
.fab-language-btn,
.fab-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
  color: #333;
}

/* Override for notification-bell with more specific settings */
.fab-notification-bell {
  padding: 9px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
}

.fab-notification-bell:hover {
  transform: none;
  color: inherit;
  background: none;
}

.fab-notification-bell svg {
  pointer-events: none;
}

.fab-theme-toggle svg,
.fab-notification-bell svg,
.fab-settings-icon {
  width: 24px;
  height: 24px;
}

.fab-language-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 500;
}

.fab-globe-icon {
  width: 20px;
  height: 20px;
  margin-right: 3px;
}

.fab-theme-toggle:hover,
.fab-notification-bell:hover,
.fab-language-btn:hover,
.fab-settings-btn:hover {
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  .fab-logo-text {
    display: none;
  }
  .fab-main-header {
    padding: 12px 4px;
  }
  .fab-header-controls {
    gap: 4px;
    margin-right: 4px;
    flex-wrap: wrap;
  }
  .fab-settings-btn, .fab-theme-toggle, .fab-notification-bell, .fab-language-btn {
    padding: 6px;
    width: 35px;
    height: 35px;
  }
  .fab-logo-img{
    width: 130px;
    height: 80px;
  }
  .fab-language-wrapper {
    gap: 0px;
    padding: 3px 0px 3px 3px;
  }
}

.fab-language-selector {
  position: relative;
  justify-content: flex-start;
}

.fab-language-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #666;
  border-radius: 5px;
  padding: 5px 0px 5px 5px;
  background-color: #f5f5f5;
  cursor: pointer;
}

.fab-language-wrapper:hover {
  background-color: #f0f0f0;
}

.fab-language-wrapper .fab-globe-icon {
  width: 20px;
  height: 20px;
  margin-right: 0px;
  color: #666;
}

#set_lang_select {
  border: none;
  background: none;
  font-weight: bold;
  color: #000;
  font-family: "Playfair Display", serif;
  width: 40px;
}

.fab-language-selector .select-wrapper {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* Notification Modal styles */
.fab-notification-modal {
  display: none;
  position: absolute;
  top: 80px;
  right: 220px;
  background: white;
  border-radius: 16px;
  width: 391px;
  height: 285px;
  z-index: 1000;
  font-family: "Roboto", sans-serif;
  overflow: hidden;
}

.fab-notification-modal.show {
  display: block;
}

.fab-notification-content {
  padding: 20px;
  max-height: 285px;
  overflow-y: auto;
  background: white;
  height: 100%;
  box-sizing: border-box;
}

.fab-notification-content::-webkit-scrollbar {
  width: 8px;
}

.fab-notification-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.fab-notification-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 8px;
}

.fab-notification-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.fab-notification-content h3 {
  margin: 0;
  padding: 0 0 15px 0;
  font-size: 18px;
  font-weight: 700;
  margin: -15px -20px 15px -20px;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.fab-notification-section {
  margin-top: 15px;
}

.fab-notification-section h4 {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.fab-notification-item {
  padding: 10px;
  transition: background-color 0.2s;
}

.fab-notification-item.fab-unread {
  background-color: #f0f7ff;
}

.fab-notification-item p {
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.fab-notification-item:last-child {
  border-bottom: none;
}

.fab-notification-time {
  font-size: 12px;
  color: #666;
  display: block;
  margin-top: 4px;
}

.fab-notification-empty {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* Notification count badge */
.fab-notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4d4f;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  min-width: 18px;
  text-align: center;
}

.fab-login-btn {
  display: inline-block;
  padding: 8px 16px;
  color: #000;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.fab-login-btn:hover {
  text-decoration: none;
  color: #3c3c3c;
}

.fab-login-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.fab-login-icon {
  width: 22px;
  height: 25px;
  color: var(--text-color, #333);
}

.fab-logo-clickable {
  cursor: pointer;
}

@media (max-width: 600px) {
  .fab-notification-modal {
    top: 100px !important;
    right: 40px !important;
    left: 40px !important;
    width: 80vw !important;
    max-width: 90vw !important;
    border-radius: 16px 16px 16px 16px !important;
    height: 40vh !important;
    z-index: 1000;
  }
  .fab-notification-content {
    max-height: 40vh !important;
    overflow-y: auto;
  }
  .fab-notification-section h4 {
    margin-bottom: 5px;
  }
  .fab-notification-item p {
    font-size: 12px;
  }
  .fab-notification-content h3 {
    font-size: 20px;
  }
  .fab-notification-time {
    font-size: 10px;
  }
}

/* DARK THEME HEADER STYLES */
.dark-theme .fab-main-header {
  background: #323232;
}


.dark-theme .fab-language-btn,
.dark-theme .fab-language-wrapper {
  background: #353535 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}


.dark-theme .fab-logo-img {
  width: 140px;
  height: 70px;
  margin-right: 4px;
  padding-top: 18px;
  padding-left: 18px;
}

.fab-theme-toggle:hover,
.fab-notification-bell:hover,
.fab-language-btn:hover,
.fab-settings-btn:hover {
  background-color: transparent !important;
}

.dark-theme #set_lang_select {
  color: #fff !important;
}

.dark-theme .fab-language-wrapper .fab-globe-icon {
  color: #fff !important;
}

.dark-theme .fab-notification-content {
  background-color: #434343;
}

.dark-theme .fab-notification-content h3 {
  color: #E0E0E0;
  border-bottom: 1px solid #B3B3B3;
}

.dark-theme .fab-notification-section h4 {
  color: #E0E0E0;
}

.dark-theme .fab-notification-item p {
  color: #B3B3B3;
}