/* Notification Icon in Header */
.header .notification-icon {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .notification-icon i {
    font-size: 20px;
    color: white;
}

#notificationBadge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    display: none;
}

#notificationBadge.has-notifications {
    display: block;
}

/* Notification Icon in Header */
.header .notification-icon {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .notification-icon i {
    font-size: 20px;
    color: white;
}

#notificationBadge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    display: none;
}

#notificationBadge.has-notifications {
    display: block;
}

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

#notificationBadge.badge-pulse {
    animation: badgePulse 0.5s ease-in-out 2;
}

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

.notification-panel.open {
    right: 0;
}

.notification-header {
    padding: 20px;
    background: #111037;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.notification-filter {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    transition: 0.3s;
}

.toggle-switch input {
    display: none;
}

.toggle-switch input:checked + .toggle-slider {
    background: #111037;
}

.toggle-slider:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider:after {
    left: 22px;
}

.toggle-label {
    font-size: 14px;
    color: #333;
}

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

/* Notification Items in Panel */
.notification-list .notification-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-list .notification-item:hover {
    background: #f8f9fa;
}

.notification-list .notification-item.unread {
    background: #e7f3ff;
}

.notification-list .notification-item.unread:hover {
    background: #d0e7ff;
}

.notification-list .notification-item .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111037;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.notification-list .notification-item .notification-icon i {
    color: white;
    font-size: 18px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

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

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

.unread-indicator {
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 15px;
}

.no-notifications {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-notifications i {
    font-size: 48px;
    margin-bottom: 10px;
}

.no-notifications p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .notification-panel {
        width: 100%;
        right: -100%;
    }
}
