/* Sidebar Notifications Panel */
.sidebar-notifications-panel {
    position: fixed;
    top: 0;
    left: 280px;
    width: 450px;
    height: 100vh;
    background: var(--sidebar-bg);
    display: none;
    flex-direction: column;
    z-index: 998;
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.notifications-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.notifications-panel-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.notifications-panel-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notifications-panel-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.notifications-panel-tabs {
    display: flex;
    gap: 6px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.notifications-panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notifications-panel-list .notification-item {
    padding: 18px;
    gap: 16px;
}

.notifications-panel-list .notification-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.notifications-panel-list .notification-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.notifications-panel-list .notification-message {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.notifications-panel-list .notification-time {
    font-size: 12px;
}

.notifications-panel-list .notification-actions {
    gap: 6px;
}

.notifications-panel-list .notification-action-btn {
    width: 32px;
    height: 32px;
}

/* Notifications Page Styles (for main content - kept for compatibility) */
.notifications-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.notifications-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.notifications-tabs {
    display: flex;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
}

.notification-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-tab:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.notification-tab.active {
    background: var(--primary-color);
    color: white;
}

.notification-tab svg {
    width: 16px;
    height: 16px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.notification-item.unread {
    border-left: 4px solid var(--primary-color);
    background: var(--bg-secondary);
}

.notification-item.read {
    opacity: 0.8;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.notification-icon.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.notification-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.notification-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

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

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-secondary);
}

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

.notification-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-action-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.notification-action-btn.delete:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Dark mode */
[data-theme="dark"] .notification-item.unread {
    background: var(--bg-secondary);
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .notification-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* Unread badge in sidebar */
.nav-badge {
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 20px;
    text-align: center;
}

/* Notification read more button */
.notification-read-more {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-read-more:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .notification-read-more {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .notification-read-more:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive notification panel */
@media (max-width: 1024px) {
    .sidebar-notifications-panel {
        left: 240px;
        width: 400px;
    }
}

@media (max-width: 768px) {
    .sidebar-notifications-panel {
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        z-index: 1001;
        box-shadow: none;
    }
}


