.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: 140px;
  height: 70px;
  margin-right: 4px;
  display: flex;
  position: relative;
  left: 15px;
}


.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-family-info {
  display: flex; 
  align-items: center; 
  text-align: center; 
  height: 85px; 
  min-width: 350px; 
  max-width: 400px;
  margin-left: 75px; 
  background-color: #fff; 
  border: 1px solid #D9D9D9; 
  font-family: "Roboto", sans-serif;
  overflow: hidden;
}

.fab-family-img {
  width: 85px;
  height: 100%;
  object-fit: cover;
  border: 1px solid #eee;
}

.fab-family-name {
  font-size: 32px;
  font-style: bold;
  font-weight: 600;
  margin-left: 10px;
  font-family: "Playfair Display", sans-serif;
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.default-family-icon-header {
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", sans-serif;
  font-size: 32px;
  font-weight: bold;
  background:#fff;
  border: 1px solid #D9D9D9;
  flex-shrink: 0;
}

.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 8px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .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: 120px;
    height: 60px;
    left: 0px;
    margin-right: 8px;
  }
  .fab-language-wrapper {
    gap: 0px;
    padding: 3px 0px 3px 3px;
  }
  
  .fab-header-family-info {
    min-width: auto;
    max-width: 200px;
    margin-left: 0;
    height: 60px;
    font-size: 14px;
  }
  
  .fab-family-name {
    font-size: 18px;
    margin-left: 8px;
  }
  
  .default-family-icon-header {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .fab-family-img {
    width: 60px;
    height: 60px;
  }
}

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

.fab-language-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 5px;
  padding: 5px 0px 5px 5px;
  cursor: pointer;
  padding-left: 0px;
}

.fab-theme-toggle svg{
  width: 22px;
  height: 22px;

}


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

#set_lang_select {
  border: none;
  background: none;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #222;
  width: 40px;
  cursor: pointer;
}

.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;
  }
  
  .fab-main-header {
    padding: 8px 4px;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
  }
  
  .fab-header-logo {
    flex-shrink: 0;
    margin-bottom: 0;
  }
  
  .fab-header-family-info {
    flex: 1;
    min-width: 0;
    max-width: none;
    width: auto;
    margin-left: 8px;
    margin-bottom: 0;
    overflow: hidden;
  }
  
  .fab-header-controls {
    flex-shrink: 0;
    width: auto;
    justify-content: flex-end;
    margin-right: 0;
  }
  
  .fab-logo-img {
    width: 80px;
    height: 40px;
    left: 0;
    margin-right: 0;
  }
  
  .fab-family-name {
    font-size: 16px;
  }
  
  .default-family-icon-header {
    width: 50px;
    height: 100%;
    font-size: 20px;
  }
  
  .fab-family-img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .fab-main-header {
    padding: 6px 2px;
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }
  
  .fab-logo-img {
    width: 60px;
    height: 30px;
  }
  
  .fab-header-family-info {
    height: 40px;
  }
  
  .fab-family-name {
    font-size: 14px;
  }
  
  .default-family-icon-header {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .fab-family-img {
    width: 40px;
    height: 40px;
  }
  
  .fab-header-controls {
    gap: 2px;
  }
  
  .fab-settings-btn, .fab-theme-toggle, .fab-notification-bell, .fab-language-btn {
    padding: 4px;
    width: 30px;
    height: 30px;
  }
}

.profile-dropdown-divider {
  border-top: 1px solid #eee;
  margin: 8px 0 0 0;
}

.profile-dropdown-item {
  display:flex;
  align-items:center;
  padding:12px 20px;
  text-decoration:none;
  color:#222;
  font-size:16px;
  gap:20px;
  cursor:pointer;
}

.fab-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding-left: 20px;
}

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

.dark-theme .fab-logo-text {
  color: #e0e0e0;
}

.dark-theme .fab-header-family-info {
  background-color: #2a2a2a;
  border: 1px solid #D9D9D9;
  color: #e0e0e0;
}

.dark-theme .fab-family-name {
  color: #e0e0e0;
}

.dark-theme .default-family-icon-header {
  background: #2a2a2a;
  border: 1px solid #D9D9D9;
}

.dark-theme .fab-theme-toggle,
.dark-theme .fab-notification-bell,
.dark-theme .fab-settings-btn {
  color: #e0e0e0;
}

.dark-theme .fab-theme-toggle:hover,
.dark-theme .fab-notification-bell:hover,
.dark-theme .fab-settings-btn:hover {
  background-color: #333 !important;
  color: #fff !important;
}

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

.dark-theme .fab-language-btn:hover,
.dark-theme .fab-language-wrapper:hover {
  border-color: #555 !important;
}

.dark-theme #set_lang_select {
  color: #868686 !important;
  background: transparent !important;
}

.dark-theme .fab-language-wrapper .fab-globe-icon {
  color: #a5a5a5 !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;
}

.dark-theme .profile-dropdown-item {
  background-color: #434343;
  color: #fff;
  color: var(--text-body, #E0E0E0) !important;
}

.dark-theme .profile-dropdown-item svg {
  stroke: white !important;
}

.dark-theme .profile-dropdown-divider {
  border-top: 1px solid var(--border-line, #757575) !important;
}

.dark-theme .profile-dropdown {
  background: var(--bg-card, #434343) !important;
  border: 1px solid var(--border-line, #757575) !important;
  border-radius: 5px !important;
}

.dark-theme .fab-language-wrapper {
  border: none !important;
}

.dark-theme .fab-language-selector-wrapper {
  border: 1px solid #fff !important;
}

.theme-dropdown-wrapper {
  position: relative;
}

.theme-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
  padding: 8px 0;
}

.theme-dropdown {
  display: none;
  position: absolute;
  top: 30%;
  right: 230px;
  width: 150px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  z-index: 1000;
  margin-top: 4px;
}

.theme-option {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}

.theme-option:last-child {
  border-bottom: none;
}

.theme-option:hover {
  background-color: #f5f5f5 !important;
}

.theme-option svg {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.profile-dropdown {
  display: none;
  position: absolute;
  right: 20px;
  z-index: 100;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}
.dark-theme .theme-dropdown {
  background: #434343;
  border: 1px solid var(--border-line, #757575) !important;
}

.dark-theme .theme-option {
  color: #fff;
  border-bottom: 1px solid #444;
}

.dark-theme .theme-option:hover {
  background-color: #3c3c3c !important;
}

.dark-theme .theme-option svg {
  stroke: #fff;
}