.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--secondary-background-color); /* Changed to dark mode secondary background */
    border-bottom: 1px solid var(--border-color); /* Changed to dark mode border color */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo a {
    text-decoration: none;
    color: var(--text-color); /* Changed to dark mode text color */
    font-weight: bold;
    font-size: 24px;
}

.auth-links a {
    margin-left: 15px;
    text-decoration: none;
    color: var(--link-color); /* Changed to dark mode link color */
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Notification styles */
.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between cards */
}

.notification-item {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px; /* Rounded corners for card look */
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    background-color: var(--secondary-bg-color); /* Card background */
    position: relative;
    overflow: hidden; /* Ensure content stays within rounded corners */
}

.notification-item:hover {
    background-color: #2a2a2a; /* Slightly lighter on hover */
    transform: translateY(-1px); /* Subtle lift effect */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.notification-item.unread {
    background-color: rgba(var(--primary-color-rgb), 0.15); /* Highlight unread */
    border-left: 4px solid var(--primary-color);
}

.notification-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.notification-icon-area {
    flex-shrink: 0;
    padding-top: 5px; /* Align icon with title */
}

.notification-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.notification-icon-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--background-color); /* Contrast with card bg */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-color-secondary);
    border: 1px solid var(--border-color);
}

.notification-text-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevent flex item from overflowing */
    padding-right: 30px; /* Space for delete button */
}

.notification-title {
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Truncate long titles */
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-color-secondary);
    margin-bottom: 8px;
}

.notification-body {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
    word-wrap: break-word; /* Ensure long words break */
}

.delete-notification-btn {
    background: none;
    border: none;
    color: var(--text-color-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10; /* Ensure it's above other content */
}

.delete-notification-btn:hover {
    opacity: 1;
    color: #ff3b30; /* Red color on hover */
    background-color: rgba(255, 59, 48, 0.1); /* Subtle background on hover */
    border-radius: 50%;
}
