.notification-bell-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  cursor: pointer;
  width: auto;
  padding: 5px;
  vertical-align: middle;
}

.notification-bell-container .fa-bell {
  background: transparent;
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  color: #f0ad4e; /* Amarelo escuro padrão */
  font-size: 22px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: inline-block;
}

.notification-bell-container .fa-bell:hover {
  color: #ec971f;
  transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%); /* Posiciona o centro do badge no canto */
    background: #dc3545; /* Vermelho Bootstrap */
    color: white;
    border-radius: 10px; /* Pill shape */
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px; /* Alinhamento vertical */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white; /* Borda branca para separar do ícone */
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
    white-space: nowrap;
}

/* Dropdown Styles for Process Page */
.notification-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0; /* Align left since the bell is on the left */
    background: white;
    border: 1px solid #ddd;
    padding: 0;
    z-index: 1000;
    min-width: 320px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 4px;
    text-align: left; /* Ensure text aligns left */
    cursor: default; /* Reset cursor */
}

.notification-dropdown .dropdown-header {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f8f9fa;
    border-radius: 4px 4px 0 0;
}

.notification-dropdown .dropdown-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.notification-dropdown .dropdown-content {
    max-height: 350px;
    overflow-y: auto;
}

.notification-dropdown .notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.notification-dropdown .notification-item:hover {
    background-color: #f9f9f9;
}

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

.notification-dropdown .notification-header {
    margin-bottom: 5px;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.notification-dropdown .notification-header i {
    color: #dc3545; /* Red for deletion/exclusion */
    margin-top: 2px;
}

.notification-dropdown .notification-time {
    font-size: 11px;
    color: #888;
    margin-left: 20px; /* Indent to align with text */
}

.notification-dropdown .dropdown-footer {
    padding: 10px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 4px 4px;
}

.notification-dropdown .dropdown-footer a {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.notification-dropdown .dropdown-footer a:hover {
    text-decoration: underline;
}


/* Header Notification Bell - Exclusive CSS */
.header-notification-bell-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  cursor: pointer;
  width: auto;
  padding: 5px;
  vertical-align: middle;
}

.header-notification-bell-container .fa-bell {
  background: transparent;
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  color: #f0ad4e;
  font-size: 22px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: inline-block;
}

.header-notification-bell-container .fa-bell:hover {
  color: #ec971f;
  transform: scale(1.1);
}

.header-notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    background: #dc3545;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
    white-space: nowrap;
}

/* Header Notification Dropdown */
.header-notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    padding: 0;
    z-index: 1000;
    min-width: 320px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-height: 400px;
    overflow-y: auto;
    border-radius: 4px;
    list-style: none; /* Ensure no bullets */
}

.header-notification-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-notification-dropdown li {
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
}

b, strong {
    font-weight: bolder;
    color: black !important;
}

.header-notification-item-link {
    display: block;
    padding: 12px;
    color: #333 !important;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    transition: background 0.2s;
}

.header-notification-item-link:hover {
    background-color: #f9f9f9;
    color: #333;
    text-decoration: none;
}

/* Inner elements for Header Dropdown */
.header-notification-dropdown .dropdown-header {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f8f9fa;
    border-radius: 4px 4px 0 0;
}

.header-notification-dropdown .dropdown-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.header-notification-dropdown .dropdown-content {
    /* max-height handled by parent in header version, but keeping safe */
}

.header-notification-dropdown .notification-header {
    margin-bottom: 5px;
    font-size: 13px;
    color: #333 !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
} 

.header-notification-dropdown .notification-header i {
    color: #dc3545;
    margin-top: 2px;
}

.header-notification-dropdown .notification-time {
    font-size: 11px;
    color: #888;
    margin-left: 0; /* Different from original? Original had 20px indent */
}

.header-notification-dropdown .dropdown-footer {
    padding: 10px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 4px 4px;
}

.header-notification-dropdown .dropdown-footer a {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.header-notification-dropdown .dropdown-footer a:hover {
    text-decoration: underline;
}

.notification-badge,
.header-notification-badge {
    color: #ffffff !important;
}

.notification-badge-white {
    color: #ffffff !important;
    display: inline-flex !important;
}
