/* Notification Bell & Dropdown */
.notif-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 800;
    border: 2px solid #0f172a;
    z-index: 2;
    pointer-events: none;
}

.notif-dropdown {
    position: fixed;
    top: calc(65px + env(safe-area-inset-top, 0));
    right: 20px;
    width: 320px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
}

.notif-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.btn-mark-all {
    background: transparent;
    border: none;
    color: #60a5fa;
    font-size: 0.8rem;
    cursor: pointer;
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.2s;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
    background: rgba(96, 165, 250, 0.05);
}

.notif-item .notif-type {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 4px;
    display: block;
}

.notif-item .notif-msg {
    font-size: 0.9rem;
    line-height: 1.4;
}

.notif-item .notif-time {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 8px;
    display: block;
}

.notif-empty {
    padding: 30px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

.hidden {
    display: none !important;
}

/* Notification Action Buttons */
.notif-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-notif-accept,
.btn-notif-reject {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-notif-accept {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-notif-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.btn-notif-reject {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-notif-reject:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .notif-dropdown {
        position: fixed !important;
        top: 65px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90vw !important;
        max-width: 360px !important;
        max-height: 70vh !important;
        z-index: 9999 !important;
        right: auto !important;
    }

    .notif-wrapper {
        margin-right: 0;
    }
}