.notification-bell-container {
    position: relative;
}

.notification-bell-container .notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0 4px;
    line-height: 16px;
}

.notification-panel {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    width: 400px;
    max-height: 600px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: none;
    flex-direction: column;
    transform: none !important;
}

[data-bs-theme="dark"] .notification-panel,
html.theme-cosmos-dark .notification-panel {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.notification-panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-bs-theme="dark"] .notification-panel-header,
html.theme-cosmos-dark .notification-panel-header {
    border-bottom-color: #334155;
}

.notification-panel-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.notification-panel-actions {
    display: flex;
    gap: 8px;
}

.notification-panel-actions .btn-link {
    padding: 0;
    font-size: 12px;
    text-decoration: none;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

[data-bs-theme="dark"] .notification-item,
html.theme-cosmos-dark .notification-item {
    border-bottom-color: #334155;
}

.notification-item:hover {
    background: #f9fafb;
}

[data-bs-theme="dark"] .notification-item:hover,
html.theme-cosmos-dark .notification-item:hover {
    background: #334155;
}

.notification-item.unread {
    background: #eff6ff;
    font-weight: 500;
}

[data-bs-theme="dark"] .notification-item.unread,
html.theme-cosmos-dark .notification-item.unread {
    background: #1e3a5f;
}

.notification-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.notification-type {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.notification-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.notification-time {
    font-size: 11px;
    color: #6b7280;
}

[data-bs-theme="dark"] .notification-time,
html.theme-cosmos-dark .notification-time {
    color: #94a3b8;
}

.notification-message {
    font-size: 13px;
    color: #4b5563;
    margin-top: 4px;
}

[data-bs-theme="dark"] .notification-message,
html.theme-cosmos-dark .notification-message {
    color: #cbd5e1;
}

.notification-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
}

.notification-link:hover {
    text-decoration: underline;
}

.notification-empty,
.notification-loading {
    padding: 40px;
    text-align: center;
    color: #6b7280;
}

[data-bs-theme="dark"] .notification-empty,
[data-bs-theme="dark"] .notification-loading,
html.theme-cosmos-dark .notification-empty,
html.theme-cosmos-dark .notification-loading {
    color: #94a3b8;
}

.notification-panel-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

[data-bs-theme="dark"] .notification-panel-footer,
html.theme-cosmos-dark .notification-panel-footer {
    border-top-color: #334155;
}

.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px;
    min-width: 300px;
    max-width: 400px;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

[data-bs-theme="dark"] .notification-toast,
html.theme-cosmos-dark .notification-toast {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.notification-toast-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #0f172a;
}

.notification-toast-content p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

[data-bs-theme="dark"] .notification-toast-content strong,
html.theme-cosmos-dark .notification-toast-content strong {
    color: #f8fafc;
}

[data-bs-theme="dark"] .notification-toast-content p,
html.theme-cosmos-dark .notification-toast-content p {
    color: #94a3b8;
}

#toast-container > .toast,
.toast,
.s-Toast {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

#toast-container > .toast .toast-message,
.toast .toast-message,
.s-Toast .toast-message {
    color: inherit;
}

[data-bs-theme="dark"] #toast-container > .toast,
[data-bs-theme="dark"] .toast,
[data-bs-theme="dark"] .s-Toast,
html.theme-cosmos-dark #toast-container > .toast,
html.theme-cosmos-dark .toast,
html.theme-cosmos-dark .s-Toast {
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}

