/* Notification Center Styling */

/* Bell icon and badge */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--bs-body-color);
    text-decoration: none;
}

.notification-bell:hover {
    color: var(--bs-primary);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 2px 5px;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1.2;
    color: #fff;
    background-color: #dc3545;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
}

/* Dropdown styling */
.notification-dropdown {
    min-width: 350px;
    max-width: 400px;
    max-height: 500px;
    padding: 0;
}

.notification-dropdown .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--bs-border-color);
    background-color: var(--bs-light);
}

.notification-dropdown .dropdown-header .mark-read-link {
    font-size: 0.85rem;
    font-weight: normal;
    cursor: pointer;
    color: var(--bs-link-color);
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
}

.notification-dropdown .dropdown-header .mark-read-link:hover {
    text-decoration: underline;
    color: var(--bs-link-hover-color);
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: block;
    color: var(--bs-body-color);
}

.notification-item:hover {
    background-color: var(--bs-light);
    color: var(--bs-body-color);
}

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

.notification-item.unread {
    background-color: rgba(13, 110, 253, 0.05);
    font-weight: 600;
}

.notification-item.unread:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.notification-item .notification-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.notification-item .notification-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notification-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item .notification-message {
    font-size: 0.85rem;
    color: var(--bs-secondary);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-item.unread .notification-message {
    color: var(--bs-body-color);
}

.notification-item .notification-time {
    font-size: 0.75rem;
    color: var(--bs-secondary);
}

.notification-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--bs-secondary);
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.notification-footer {
    padding: 0.5rem 1rem;
    text-align: center;
    border-top: 1px solid var(--bs-border-color);
    background-color: var(--bs-light);
}

.notification-footer a {
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

/* Category icon colors */
.notification-icon.text-todo {
    color: #0d6efd;
}

.notification-icon.text-dashboard {
    color: #ffc107;
}

.notification-icon.text-export-import {
    color: #0dcaf0;
}

.notification-icon.text-system {
    color: #6c757d;
}

/* Priority colors */
.notification-item.priority-urgent {
    border-left: 3px solid #dc3545;
}

.notification-item.priority-high {
    border-left: 3px solid #ffc107;
}

.notification-item.priority-medium {
    border-left: 3px solid #0d6efd;
}

.notification-item.priority-low {
    border-left: 3px solid #6c757d;
}

/* Dark Mode Styles */
[data-bs-theme="dark"] .notification-dropdown .dropdown-header {
    background-color: #2c3034;
    border-bottom-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .notification-footer {
    background-color: #2c3034;
    border-top-color: #495057;
}

[data-bs-theme="dark"] .notification-item:hover {
    background-color: #2c3034;
}

[data-bs-theme="dark"] .notification-item.unread {
    background-color: rgba(13, 110, 253, 0.15);
}

[data-bs-theme="dark"] .notification-item.unread:hover {
    background-color: rgba(13, 110, 253, 0.25);
}
