/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start; /* Align content to the top of the notification */
    padding: 8px 12px; /* Compact padding */
    margin: 8px 10px; /* Gap around notifications */
    background-color: #0b1325; /* Dark card */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 6px 18px rgba(2, 8, 23, 0.45); /* Deeper navy shadow */
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    cursor: pointer;
    position: relative; /* Enable positioning for the time */
}

.notification-item:hover {
    background-color: #163a70 !important;
    transform: scale(1.02);
}


/* Notification Image */
.notification-image {
    width: 40px; /* Smaller image size */
    height: 40px; /* Match smaller size */
    border-radius: 8px; /* Rounded corners for image */
    margin-right: 10px; /* Space between image and content */
    object-fit: cover; /* Ensure proper scaling */
}

/* Notification Content */
.notification-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* Stack title and description vertically */
    justify-content: flex-start; /* Align content to the top */
    text-align: left; /* Align text to the left */
}

/* Title */
.notification-title {
    font-size: 14px;
    font-weight: bold;
    color: #e6f0ff; /* Light text */
    margin-bottom: 4px; /* Space below title */
}

/* Description */
.notification-description {
    font-size: 12px;
    color: #9fb3c8; /* Muted steel-blue */
    margin-bottom: 4px; /* Space below description */
    word-wrap: break-word; /* Ensure long words break to fit */
}

/* Date (Time) */
.notification-date {
    font-size: 10px; /* Smaller font for the date */
    color: #6e86a6; /* Dim timestamp */
    position: absolute; /* Position the time */
    top: 8px; /* Position the time at the top */
    right: 12px; /* Position the time at the right */
}

/* Notification Box */
.notifications-popup {
    padding: 10px; /* Add padding inside the popup box */
    max-width: 300px; /* Limit the width of the popup */
    background-color: #0b1428; /* Dark panel */
    border-radius: 8px; /* Rounded corners for the popup box */
    box-shadow: 0 4px 8px rgba(3, 12, 28, 0.5); /* Themed shadow */
    overflow-y: auto; /* Scrollable if content overflows */
}

/* Winning Notification Styles */
.win-notification {
    background-color: #0b1c2a; /* Dark greenish panel */
    border-left: 5px solid #16a34a; /* Success green accent */
}

.win-content {
    padding: 5px;
    display: flex;
    flex-direction: column;
}

.win-title {
    color: #b9f6c1; /* Bright success text */
    font-weight: bold;
    margin-bottom: 5px;
}

.win-message {
    font-size: 12px;
    color: #cfe1ff; /* Lighter body text on dark */
    margin-bottom: 5px;
}

.notification-delete {
    background: none;
    border: none;
    color: #ef4444; /* Theme danger */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    display: inline-block;
}

.notification-delete:hover {
    color: #dc2626; /* Stronger danger on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-item {
        padding: 6px 8px; /* Reduce padding for smaller screens */
        margin: 6px 8px; /* Adjust gap on smaller screens */
    }

    .notification-image {
        width: 30px;
        height: 30px; /* Adjust size for smaller screens */
    }

    .notification-title {
        font-size: 12px; /* Adjust font size */
    }

    .notification-description {
        font-size: 10px; /* Adjust font size */
    }

    .notification-date {
        font-size: 8px; /* Adjust font size */
    }
}
/* Popup footer + list: switch red to dark blue (color-only overrides) */
#notifications-popup .popup-footer{

  border-top: 1px solid #163a70;
  color: #cfe1ff;
}

#notifications-popup .popup-footer .view-all,
#notifications-popup .popup-footer .remove-all{
  color: #1e3a8a !important;           /* dark blue instead of red */
  cursor: pointer;
  font-weight: 700;
}


#notifications-popup .popup-footer .view-all:hover,
#notifications-popup .popup-footer .remove-all:hover{
  color: #2563eb !important;           /* lighter blue on hover */
}



