.has-notification-count {
	position: relative;
	display: inline-block;
}
.notification-count {
	position: absolute;
	top: -8px;
	left: -8px;
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.5); 
	border: 1px solid #CACACA;
	white-space: nowrap;
    border-radius: 50%;
    background-color: #FFFFFF;
    min-width: 1em;
    display: none;
    color: black;
    text-align: center;
    padding: 2px;
    font-size: .6em;
    font-weight: bold;
	color: #000000;
}
.notification-count-has-value {
	display: inline-block;
}
.notification-count-gt-zero {
	background-color: #3b7db1;
	color: #FFFFFF;
}

#notification-dialog {
    position: absolute;
    box-sizing: border-box;
    left: 0px;
    top: 0px;
    background-color: rgba(0,0,0,.6);
    width: 0px;
    height: 0px;
    z-index: 2147483647;
    padding: 30px;
}
#notification-dialog small.notification-stats {
    font-size: .6em;
}
#notification-dialog .notification-container {
    width: calc(100%);
    height: calc(100%);
    background-color: #FFFFFF;
    border-radius: 10px;
    filter: drop-shadow(15px 15px 10px black);
    overflow: hidden;
    position: relative;
    height: 100%;
}
#notification-dialog .notification-container .notification-container-closer {
    position: sticky;
    top: 20px;
    float: right;
    margin: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
#notification-dialog .notification-container .notification-container-contents {
    padding: 20px;
    display: flex; 
    height: 100%;
    flex-direction: column;
}
#notification-dialog .notification-list .notification {
    border-bottom: 1px solid #e8e8e8;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
#notification-dialog .notification-list .notification.reading {
    background-color: #e8e8e8;
}
#notification-dialog .notification.unread .subject {
    font-weight: bold;
}
#notification-dialog .notification .headline {
    white-space: nowrap;        /* Prevents text from wrapping to the next line */
    overflow: hidden;           /* Hides the overflowing text */
    text-overflow: ellipsis;    /* Adds an ellipsis ("...") to the end of the truncated text */
    width: 100%;                /* Optional: Define a specific width or inherit from the parent */
    display: block;             /* Ensures the element behaves as a block-level element */
    padding-bottom: 10px;
    font-size:.9em;
}

#notification-dialog .notification-viewer {
    display: grid;
    flex-grow: 1;
    grid-template-columns: 30% 70%;
    width: 100%;
    border: 1px solid #CACACA;
    border-radius: 3px;
    overflow-y: hidden;
}
#notification-dialog .notification-viewer.hidden {
    display: none;
}
#notification-dialog .notification-viewer .notification-preview .notification-controls {
    height: 4em;
    border-bottom: 1px solid #CACACA;
    background-color: #F1F1F1;
    display: flex; /* Flexbox for layout */
    align-items: center; /* Align items vertically */
    justify-content: flex-end; /* Distribute items evenly */
    padding: 8px 16px; /* Add spacing inside the toolbar */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
    gap: 16px;
}
#notification-dialog .notification-viewer .notification-preview .notification-controls button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
#notification-dialog .notification-viewer .notification-preview .notification-controls button[disabled=disabled] {
    background-color: #CACACA;
}

#notification-dialog .notification-viewer .notification-preview .notification-controls button:hover {
  background-color: #0056b3;
}

#notification-dialog .notification-viewer .notification-preview .notification-controls button[disabled=disabled]:hover {
    background-color: #CACACA;
}

#notification-dialog .notification-viewer .notification-preview {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#notification-dialog .notification-viewer .notification-preview .notification-contents {
    padding: 20px;
    overflow-y: auto;
}
#notification-dialog .notification-viewer .notification-list {
    border-right: 1px solid #CACACA;
    overflow-y: scroll;
    flex-grow: 1;
}
#notification-dialog .notification-viewer .notification-list .notification {
    cursor: pointer;
    padding: 5px;
}
#notification-dialog .notification-viewer .notification-list .notification:hover {
    background-color: #F1F1F1;
}
