/* Notification Bell Styles */
#notificationBell {
    position: relative;
    color: var(--text-primary, #333);
    transition: color 0.3s ease;
}

#notificationBell:hover {
    color: var(--primary-color, #007bff);
}

#notificationBell:focus {
    outline: none;
    box-shadow: none;
}

#notificationCount {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 18px;
}

/* Notification Panel Styles */
.notification-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
}

.notification-panel.active {
    transform: translateX(0);
}

.notification-panel-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

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

.notification-panel-header .btn-close {
    background: none !important;
    border: none !important;
    padding: var(--spacing-2, 8px) !important;
    cursor: pointer !important;
    color: var(--text-secondary, #6c757d) !important;
    transition: var(--transition-colors, all 0.2s ease) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-md, 4px) !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
}

.notification-panel-header .btn-close::before {
    content: "✕" !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.notification-panel-header .btn-close:hover {
    color: var(--text-primary, #333) !important;
    background-color: var(--gray-50, #f8f9fa) !important;
    opacity: 1 !important;
}

.notification-panel-header .btn-close:focus {
    color: var(--text-primary, #333) !important;
    background-color: var(--gray-50, #f8f9fa) !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    opacity: 1 !important;
}

.notification-panel-tabs {
    display: flex;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background: #f8f9fa;
}

.tab-btn.active {
    color: var(--primary-color, #007bff);
    border-bottom-color: var(--primary-color, #007bff);
    font-weight: 600;
}

.notification-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.notification-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background: #e9ecef;
    transform: translateX(-2px);
}

.notification-item.new {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Announcement Type - Blue Theme */
.notification-item.announcement {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f8fcfd 0%, #e8f4f8 100%);
}

.notification-item.announcement.new {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border: 1px solid #17a2b8;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.15);
}

/* Changelog Type - Green Theme */
.notification-item.changelog {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fdf9 0%, #e8f5e8 100%);
}

.notification-item.changelog.new {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
    border: 1px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin: 0;
    flex: 1;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.notification-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e9ecef;
    color: #666;
    font-weight: 500;
}

.notification-date {
    font-size: 12px;
    color: #999;
}

.notification-content {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.new-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.notification-panel-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
}

/* Overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-overlay.active {
    display: block;
    opacity: 1;
}

/* Empty State */
.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.notification-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.notification-empty h6 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #666;
}

.notification-empty p {
    font-size: 14px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .notification-panel {
        width: 100%;
    }
}

/* Loading State */
.notification-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Badge Animation */
.badge-pulse {
    animation: badgePulse 1s ease-in-out;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}