/* Bitnank Notification Bell Styles - Dark Theme with Glass Morphism */

:root {
    --notif-primary: #6366f1;
    --notif-primary-light: #818cf8;
    --notif-success: #10b981;
    --notif-error: #ef4444;
    --notif-bg-primary: #0f172a;
    --notif-bg-secondary: #1e293b;
    --notif-surface-glass: rgba(255, 255, 255, 0.05);
    --notif-surface-glass-hover: rgba(255, 255, 255, 0.08);
    --notif-text-primary: #f8fafc;
    --notif-text-secondary: #cbd5e1;
    --notif-text-muted: #94a3b8;
    --notif-border: rgba(255, 255, 255, 0.1);
}

.notification-bell-wrapper {
    position: relative;
    display: inline-block;
}

.notification-bell-button {
    position: relative;
    background: rgba(99, 102, 241, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid var(--notif-border);
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell-button:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.notification-bell-button svg,
.notification-bell-button i {
    font-size: 20px;
    color: var(--notif-text-primary);
    transition: all 0.3s;
}

.notification-bell-button:hover svg,
.notification-bell-button:hover i {
    color: var(--notif-primary-light);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--notif-error), #dc2626);
    color: white;
    border-radius: 12px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    border: 2px solid var(--notif-bg-primary);
    letter-spacing: 0.3px;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    max-width: calc(100vw - 32px);
    background: var(--notif-surface-glass);
    backdrop-filter: blur(40px);
    border: 1px solid var(--notif-border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    max-height: 600px;
    overflow: hidden;
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: var(--notif-surface-glass);
    border-left: 1px solid var(--notif-border);
    border-top: 1px solid var(--notif-border);
    transform: rotate(45deg);
    backdrop-filter: blur(40px);
}

.notification-dropdown.show {
    display: block;
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--notif-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.notification-header h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--notif-text-primary);
    letter-spacing: -0.3px;
}

.mark-all-read-btn {
    background: transparent;
    border: none;
    color: var(--notif-primary-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.mark-all-read-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--notif-primary);
}

.notification-list {
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.notification-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--notif-border);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: transparent;
}

.notification-item:hover {
    background: var(--notif-surface-glass-hover);
    transform: translateX(4px);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--notif-primary);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--notif-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1.3);
    }
}

.notification-item.unread .notification-content {
    padding-left: 16px;
}

.notification-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--notif-text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

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

.notification-time {
    font-size: 11px;
    color: var(--notif-text-muted);
    font-weight: 500;
}

.notification-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--notif-border);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.notification-footer a {
    color: var(--notif-primary-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.notification-footer a:hover {
    color: var(--notif-primary);
    transform: translateX(4px);
}

.notification-empty {
    padding: 60px 24px;
    text-align: center;
}

.notification-empty i {
    font-size: 56px;
    color: var(--notif-text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    color: var(--notif-text-muted);
    font-size: 14px;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-15deg); }
    20%, 40%, 60%, 80% { transform: rotate(15deg); }
}

.bell-animate {
    animation: bellShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    transition: all 0.3s;
}

.notification-overlay.show {
    display: block;
    animation: overlayFadeIn 0.3s;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.notification-badge-mobile {
    display: inline-block;
    background: linear-gradient(135deg, var(--notif-error), #dc2626);
    color: white;
    border-radius: 12px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid var(--notif-bg-primary);
}

/* Mobile notification styles */
.mobile-notification-item {
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: var(--notif-surface-glass);
    border: 1px solid var(--notif-border);
    margin-bottom: 8px;
}

.mobile-notification-item:hover {
    background: var(--notif-surface-glass-hover);
    transform: translateX(4px);
}

.mobile-notification-item.unread {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--notif-primary);
}

.mobile-notification-item .notification-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--notif-text-primary);
    margin-bottom: 4px;
}

.mobile-notification-item .notification-message {
    font-size: 13px;
    color: var(--notif-text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}

.mobile-notification-item .notification-time {
    font-size: 11px;
    color: var(--notif-text-muted);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .notification-dropdown {
        width: calc(100vw - 24px);
        right: 12px;
    }
    
    .notification-header {
        padding: 16px 20px;
    }
    
    .notification-header h6 {
        font-size: 16px;
    }
    
    .notification-item {
        padding: 14px 20px;
    }
}

/* Glass effect enhancement */
.notification-dropdown,
.notification-bell-button {
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
}

/* Smooth transitions for all interactive elements */
.notification-bell-button,
.notification-item,
.mark-all-read-btn,
.notification-footer a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}