/* ==========================================================================
   DAF Notification Widget - Premium v14.0 (Clean + Brand Aligned)
   Changes: Light green badge, Clean icon hover, No header hover effect
   ========================================================================== */

/* ==========================================================================
   1. Master Anchor - Clean Bell Icon (NO HOVER BORDER/BACKGROUND)
   ========================================================================== */

.daf-notify-master-anchor {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    width: 40px !important;
    border-radius: 10px !important;
    background: transparent !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    /* Removed transition for cleaner feel */
}

/* REMOVED: No hover background/border effect on bell icon */
.daf-notify-master-anchor:hover {
    /* Clean: No visual change on hover */
}

.daf-notify-master-anchor:active {
    transform: translateY(0) scale(0.98) !important;
}

.daf-notify-master-anchor:focus {
    outline: 0px solid #8cc63f !important; /* Brand color focus */
    outline-offset: 0px !important;
}

/* Bell Icon - Clean, No Color Change on Hover */
.daf-notify-master-anchor svg {
    width: 20px !important;
    height: 20px !important;
    color: #475569 !important;
    /* Removed transition for clean look */
}

/* REMOVED: No color change on hover */
.daf-notify-master-anchor:hover svg {
    color: #475569 !important; /* Same as default */
}

/* ==========================================================================
   2. Premium Badge - LIGHT GREEN (#8cc63f) + Always Visible
   ========================================================================== */

.daf-notify-badge {
    position: absolute !important;
    top: -3px !important;
    right: -4px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    
    /* LIGHT GREEN - Website Brand Color */
    background: #8cc63f !important;
    color: #ffffff !important;
    
    font-size: 10px !important;
    font-weight: 800 !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
    box-shadow: 
        0 2px 8px rgba(140, 198, 63, 0.4),
        0 0 0 1px rgba(140, 198, 63, 0.2) !important;
    z-index: 10 !important;
    animation: daf-notify-badge-pulse 2s ease-in-out infinite !important;
    letter-spacing: -0.5px !important;
    
    /* Always show - no display:none logic */
    display: flex !important;
}

.daf-notify-badge[data-count="1"] {
    animation: daf-notify-badge-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes daf-notify-badge-pulse {
    0%, 100% {
        box-shadow: 
            0 2px 8px rgba(140, 198, 63, 0.4),
            0 0 0 1px rgba(140, 198, 63, 0.2) !important;
    }
    50% {
        box-shadow: 
            0 2px 12px rgba(140, 198, 63, 0.6),
            0 0 0 3px rgba(140, 198, 63, 0.1) !important;
    }
}

@keyframes daf-notify-badge-pop {
    0% { transform: scale(0) !important; }
    50% { transform: scale(1.2) !important; }
    100% { transform: scale(1) !important; }
}

/* ==========================================================================
   3. Dropdown Container - Enterprise Grade (Clean)
   ========================================================================== */

.daf-ghost-notify-widget {
    all: initial !important;
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    width: 380px !important;
    max-width: calc(100vw - 24px) !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.02),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.08) !important;
    z-index: 999999999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(8px) scale(0.97) !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    pointer-events: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.daf-ghost-notify-widget.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Subtle Gradient Top Border - Brand Aligned */
.daf-ghost-notify-widget::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, 
        rgba(140, 198, 63, 0.8) 0%, 
        rgba(140, 198, 63, 0.6) 50%, 
        rgba(140, 198, 63, 0.8) 100%) !important;
    border-radius: 14px 14px 0 0 !important;
}

/* ==========================================================================
   4. Premium Header - NO HOVER TRANSPARENT EFFECT
   ========================================================================== */

.daf-dropdown-header {
    padding: 16px 18px !important;
    border-bottom: 1px solid rgba(241, 245, 249, 0.9) !important;
    background: #ffffff !important; /* Solid white - NO gradient */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    min-height: 56px !important;
    
    /* REMOVED: No hover effect on header */
}

/* REMOVED: No hover background change */
.daf-dropdown-header:hover {
    background: #ffffff !important;
}

.daf-dropdown-header-titles {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    gap: 2px !important;
    flex: 1 !important;
}

.daf-dropdown-title {
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.3 !important;
}

.daf-notify-header-icon {
    color: #8cc63f !important; /* Brand color */
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
}

.daf-dropdown-subtitle {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.daf-dropdown-header-actions {
    display: flex !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

/* Pill-shaped Action Buttons - Clean Hover */
.daf-notify-action-link {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    color: #3b82f6 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 12px !important;
    border-radius: 99px !important;
    background: transparent !important; /* Clean: No background by default */
    border: 1px solid transparent !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important; /* Only color transition */
}

.daf-notify-action-link:hover {
    color: #2563eb !important;
    /* REMOVED: No background change on hover */
    /* REMOVED: No border change on hover */
    /* REMOVED: No transform on hover */
}

.daf-notify-action-link:active {
    /* REMOVED: No transform on active */
}

.daf-notify-action-clear {
    color: #ef4444 !important;
}

.daf-notify-action-clear:hover {
    color: #dc2626 !important;
    /* Clean: No background/border change */
}

.daf-notify-action-link svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   5. Scrollable Body - Smooth & Polished
   ========================================================================== */

.daf-dropdown-body {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
}

.daf-notify-widget-scroll {
    max-height: 400px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Premium Scrollbar */
.daf-notify-widget-scroll::-webkit-scrollbar {
    width: 6px !important;
}

.daf-notify-widget-scroll::-webkit-scrollbar-track {
    background: transparent !important;
}

.daf-notify-widget-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 99px !important;
    transition: background 0.2s ease !important;
}

.daf-notify-widget-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* ==========================================================================
   6. Skeleton Loader - Premium Shimmer
   ========================================================================== */

.daf-notify-loading-skeleton {
    display: none !important;
    padding: 16px 18px !important;
    gap: 14px !important;
    flex-direction: column !important;
}

.daf-notify-loading-skeleton.active {
    display: flex !important;
}

.daf-skeleton-item {
    height: 68px !important;
    background: linear-gradient(90deg, 
        #f1f5f9 0%, 
        #e2e8f0 50%, 
        #f1f5f9 100%) !important;
    background-size: 200% 100% !important;
    border-radius: 10px !important;
    animation: daf-skeleton-shimmer 1.2s ease-in-out infinite !important;
}

@keyframes daf-skeleton-shimmer {
    0% { background-position: 200% 0 !important; }
    100% { background-position: -200% 0 !important; }
}

/* ==========================================================================
   7. Notification Items - Clean Enterprise Design
   ========================================================================== */

.daf-notify-widget-products {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

.daf-notify-item {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 70px !important;
    gap: 12px !important;
    align-items: start !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8) !important;
    background: #ffffff !important;
    transition: background 0.2s ease !important; /* Only background transition */
    border-left: 3px solid transparent !important;
    position: relative !important;
    animation: daf-notify-item-enter 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
    animation-delay: calc(var(--animation-delay, 0) * 1s) !important;
}

@keyframes daf-notify-item-enter {
    0% {
        opacity: 0 !important;
        transform: translateX(-12px) !important;
    }
    100% {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
}

/* Clean hover: Only subtle background change */
.daf-notify-item:hover {
    background: #fafbfc !important;
    /* REMOVED: No border-left color change on hover */
}

.daf-notify-item:last-child {
    border-bottom: none !important;
}

/* Unread State - Subtle Brand Green Tint */
.daf-notify-item.is-unread {
    background: linear-gradient(90deg, rgba(140, 198, 63, 0.06) 0%, #ffffff 100%) !important;
    border-left: 3px solid #8cc63f !important; /* Brand color */
}

.daf-notify-item.is-unread:hover {
    background: linear-gradient(90deg, rgba(140, 198, 63, 0.1) 0%, #fafbfc 100%) !important;
}

/* Type-based Accent Colors - Brand Aligned */
.daf-notify-item.notify-type-product_update { --notify-accent: #8cc63f !important; }
.daf-notify-item.notify-type-new_product { --notify-accent: #3b82f6 !important; }
.daf-notify-item.notify-type-license_alert { --notify-accent: #ef4444 !important; }
.daf-notify-item.notify-type-support_reply { --notify-accent: #f59e0b !important; }
.daf-notify-item.notify-type-order_status { --notify-accent: #8b5cf6 !important; }

/* ==========================================================================
   8. Icon Wrapper - Clean Circles
   ========================================================================== */

.daf-notify-icon-wrapper {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: background 0.2s ease !important;
}

.daf-notify-item.is-unread .daf-notify-icon-wrapper {
    background: rgba(140, 198, 63, 0.1) !important; /* Brand green */
    border-color: #8cc63f !important;
    color: #8cc63f !important;
}

/* REMOVED: No scale transform on hover for cleaner feel */
.daf-notify-item:hover .daf-notify-icon-wrapper {
    background: #ffffff !important;
}

/* ==========================================================================
   9. Content Typography - Perfect Hierarchy
   ========================================================================== */

.daf-notify-content-link {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    text-decoration: none !important;
    gap: 5px !important;
    min-width: 0 !important;
    padding: 2px 0 !important;
}

.daf-notify-type-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: fit-content !important;
}

.daf-notify-widget-name {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    transition: color 0.2s ease !important;
}

.daf-notify-content-link:hover .daf-notify-widget-name {
    color: #8cc63f !important; /* Brand color on hover */
}

.daf-notify-desc {
    font-size: 12px !important;
    color: #64748b !important;
    width: 100% !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.daf-notify-meta {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    margin-top: 1px !important;
}

/* ==========================================================================
   10. Action Buttons - Minimal & Clean
   ========================================================================== */

.daf-notify-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    opacity: 0 !important;
    transform: translateX(6px) !important;
    transition: opacity 0.18s ease !important; /* Only opacity transition */
}

.daf-notify-item:hover .daf-notify-actions {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.daf-notify-action-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: #ffffff !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background 0.18s ease, color 0.18s ease !important;
    flex-shrink: 0 !important;
}

/* REMOVED: No transform on hover for cleaner feel */
.daf-notify-action-btn:hover {
    /* Only color/background change */
}

.daf-notify-mark-read:hover {
    background: #8cc63f !important; /* Brand green */
    border-color: #8cc63f !important;
    color: #ffffff !important;
}

.daf-notify-delete:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.daf-notify-action-btn:active {
    /* REMOVED: No scale transform */
}

/* ==========================================================================
   11. Unread Dot - Subtle Brand Green
   ========================================================================== */

.daf-notify-dot-box {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.daf-pulse-dot {
    width: 8px !important;
    height: 8px !important;
    background: #8cc63f !important; /* Brand green */
    border-radius: 50% !important;
    display: block !important;
    animation: daf-pulse-animation 2s ease-in-out infinite !important;
    box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.4) !important;
}

@keyframes daf-pulse-animation {
    0% {
        transform: scale(0.95) !important;
        box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.4) !important;
    }
    50% {
        transform: scale(1.1) !important;
        box-shadow: 0 0 0 6px rgba(140, 198, 63, 0) !important;
    }
    100% {
        transform: scale(0.95) !important;
        box-shadow: 0 0 0 0 rgba(140, 198, 63, 0) !important;
    }
}

/* ==========================================================================
   12. Empty State - Clean Premium
   ========================================================================== */

.daf-notify-empty-state {
    padding: 48px 24px 52px !important;
    text-align: center !important;
    color: #64748b !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    box-sizing: border-box !important;
}

.daf-notify-empty-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #8cc63f !important; /* Brand green */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 4px !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.daf-notify-empty-icon svg {
    width: 28px !important;
    height: 28px !important;
    opacity: 0.7 !important;
}

.daf-notify-empty-state strong {
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
}

.daf-notify-empty-state span {
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    max-width: 260px !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   13. Toast Notifications - Brand Aligned
   ========================================================================== */

#daf-notify-toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1000000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
    max-width: 380px !important;
}

.daf-notify-toast {
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 13px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    min-width: 280px !important;
    opacity: 0 !important;
    transform: translateX(100%) scale(0.96) !important;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    pointer-events: auto !important;
    border-left: 3px solid #8cc63f !important; /* Brand green */
}

.daf-notify-toast.daf-notify-toast-visible {
    opacity: 1 !important;
    transform: translateX(0) scale(1) !important;
}

.daf-notify-toast.removed {
    border-left-color: #ef4444 !important;
    background: linear-gradient(90deg, #fef2f2 0%, #ffffff 100%) !important;
}

.daf-notify-toast.success {
    border-left-color: #8cc63f !important; /* Brand green */
    background: linear-gradient(90deg, rgba(140, 198, 63, 0.08) 0%, #ffffff 100%) !important;
}

.daf-notify-toast.info {
    border-left-color: #3b82f6 !important;
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%) !important;
}

.daf-notify-toast-icon {
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
}

.daf-notify-toast-message {
    flex: 1 !important;
    font-weight: 500 !important;
}

.daf-notify-toast-undo {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #3b82f6 !important;
    text-decoration: none !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    background: rgba(59, 130, 246, 0.08) !important;
    transition: background 0.18s ease !important;
    cursor: pointer !important;
    border: none !important;
}

.daf-notify-toast-undo:hover {
    background: rgba(59, 130, 246, 0.15) !important;
}

/* ==========================================================================
   14. Mobile Responsive
   ========================================================================== */

@media (max-width: 480px) {
    .daf-ghost-notify-widget {
        right: -8px !important;
        width: calc(100vw - 24px) !important;
        max-height: 65vh !important;
    }
    
    .daf-notify-widget-scroll {
        max-height: 50vh !important;
    }
    
    .daf-notify-item {
        grid-template-columns: 36px minmax(0, 1fr) 56px !important;
        gap: 10px !important;
        padding: 12px 14px !important;
    }
    
    .daf-notify-icon-wrapper {
        width: 36px !important;
        height: 36px !important;
    }
    
    .daf-notify-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
        flex-direction: row !important;
    }
    
    .daf-notify-action-btn {
        width: 26px !important;
        height: 26px !important;
    }
    
    #daf-notify-toast-container {
        left: 12px !important;
        right: 12px !important;
        top: auto !important;
        bottom: 16px !important;
    }
    
    .daf-notify-toast {
        min-width: auto !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   15. Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .daf-notify-badge,
    .daf-pulse-dot,
    .daf-skeleton-item,
    .daf-notify-item,
    .daf-ghost-notify-widget,
    .daf-notify-toast {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-contrast: high) {
    .daf-notify-item {
        border: 1px solid #000000 !important;
    }
    .daf-notify-badge {
        border: 2px solid #000000 !important;
    }
}

/* Focus States - Brand Color */
.daf-notify-content-link:focus,
.daf-notify-action-btn:focus,
.daf-notify-action-link:focus {
    outline: 2px solid #8cc63f !important; /* Brand green */
    outline-offset: 2px !important;
    border-radius: 6px !important;
}