/* 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%;
    }
}

/* Inline actions on selection-confirmation notifications */
.notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
}
.notif-btn {
    flex: 1 1 auto;
    min-width: 100px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.notif-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.notif-btn-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}
.notif-btn-confirm:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.notif-btn-decline {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.notif-btn-decline:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}
.notif-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}
.notif-badge.confirmed {
    background: #dcfce7;
    color: #065f46;
}
.notif-badge.withdrawn {
    background: #fee2e2;
    color: #991b1b;
}
