/* Notification Bell */
.notification-bell {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1050;
}

.bell-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-color);
}

.bell-btn:hover { background: var(--hover-bg); }

.bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Dropdown */
.notif-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
}

.notif-dropdown-header a {
    font-size: 12px;
    color: #b91c1c;
    text-decoration: none;
}

.notif-dropdown-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-dropdown-item {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    cursor: pointer;
}

.notif-dropdown-item:hover { background: var(--hover-bg); }

.notif-dropdown-item .notif-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.notif-dropdown-item .notif-msg {
    color: var(--muted-text);
    font-size: 12px;
}

.notif-empty {
    padding: 20px;
    text-align: center;
    color: var(--muted-text);
    font-size: 13px;
}

/* Notification List Page */
.notifications-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.notifications-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.btn-mark-all {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    cursor: pointer;
    font-size: 13px;
}

.btn-mark-all:hover { background: var(--hover-bg); }

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.notification-item.unread {
    border-left: 3px solid #b91c1c;
    background: #fef2f2;
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.notif-meeting_reminder { background: #dbeafe; color: #1d4ed8; }
.notif-task_due { background: #fef3c7; color: #92400e; }
.notif-task_overdue { background: #fee2e2; color: #991b1b; }
.notif-task_update { background: #ede9fe; color: #5b21b6; }
.notif-general { background: #e5e7eb; color: #374151; }

.notif-content {
    flex: 1;
}

.notif-content .notif-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.notif-content .notif-message {
    font-size: 13px;
    color: var(--muted-text);
}

.notif-content .notif-time {
    font-size: 11px;
    color: var(--muted-text);
    margin-top: 4px;
}

.notif-read-btn {
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    cursor: pointer;
    font-size: 11px;
    white-space: nowrap;
}

.notif-read-btn:hover { background: var(--hover-bg); }
