/* ==========================================================================
   Tier-1 Notification Bell Component Styles
   Location: css/notification-bell.css
   Pure Poppins Typography & Circular SVG Loader Animation
   ========================================================================== */

.tc-notif-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.tc-notif-btn {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.tc-notif-btn svg {
    width: 24px !important;
    height: 24px !important;
    color: inherit !important;
    flex-shrink: 0 !important;
}

.tc-notif-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #6f69ff !important;
}

body.home .mcb-header-wrapper.scrolled .tc-notif-btn:hover,
body:not(.home) .tc-notif-btn:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #6f69ff !important;
}

/* Badge Counter */
.tc-notif-counter {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 2px solid #0f172a !important;
    background-color: #6f69ff !important;
    box-shadow: 0 4px 10px rgba(111, 105, 255, 0.4) !important;
    animation: tcCounterPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    user-select: none !important;
    z-index: 5 !important;
}

@keyframes tcCounterPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Bell Shake Keyframe */
@keyframes tc-bell-shake {
    0% { transform: rotate(0); }
    15% { transform: rotate(25deg); }
    30% { transform: rotate(-25deg); }
    45% { transform: rotate(15deg); }
    60% { transform: rotate(-15deg); }
    75% { transform: rotate(5deg); }
    85% { transform: rotate(-5deg); }
    100% { transform: rotate(0); }
}

.tc-bell-shaking svg {
    animation: tc-bell-shake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
    transform-origin: top center !important;
    color: #6f69ff !important;
}

/* Dropdown Menu Panel */
.tc-notif-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: -10px !important;
    background-color: transparent !important;
    width: 360px !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1000000 !important;
}

.tc-notif-dropdown-menu.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Caret Arrow */
.tc-notif-dropdown-menu::before {
    content: '' !important;
    position: absolute !important;
    top: -6px !important;
    right: 22px !important;
    width: 14px !important;
    height: 14px !important;
    background-color: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-left: 1px solid #e2e8f0 !important;
    transform: rotate(45deg) !important;
    z-index: 2 !important;
}

.tc-notif-dropdown-inner {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
}

/* ==========================================================================
   HEADER & POPPINS TYPOGRAPHY FOR "MARK ALL AS READ"
   ========================================================================== */
.tc-notif-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-sizing: border-box !important;
}

.tc-notif-header h4 {
    margin: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
}

/* 🚀 PURE POPPINS TYPOGRAPHY ON "MARK ALL AS READ" */
.tc-notif-mark-read {
    background: none !important;
    border: none !important;
    color: #6f69ff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    padding: 0 !important;
    outline: none !important;
    transition: color 0.2s ease !important;
}

.tc-notif-mark-read:hover {
    color: #5445ff !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   🚀 TOP-CLASS CIRCULAR SVG SPINNER LOADER
   ========================================================================== */
.tc-notif-loader-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 200px !important;
    background-color: #ffffff !important;
}

.tc-notif-loader-svg {
    width: 36px !important;
    height: 36px !important;
    animation: notif-spin 1s linear infinite !important;
    color: #6f69ff !important;
}

.tc-notif-loader-svg circle {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 4 !important;
    stroke-linecap: round !important;
    stroke-dasharray: 2, 200 !important;
    stroke-dashoffset: 0 !important;
    animation: notif-dash 1.5s ease-in-out infinite !important;
}

@keyframes notif-spin {
    100% { transform: rotate(360deg); }
}

@keyframes notif-dash {
    0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 200; stroke-dashoffset: -35px; }
    100% { stroke-dashoffset: -125px; }
}

/* Scroll Area & Custom Scrollbar */
.tc-notif-scroll-area {
    max-height: 350px !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

.tc-notif-scroll-area::-webkit-scrollbar {
    width: 5px !important;
}
.tc-notif-scroll-area::-webkit-scrollbar-track {
    background: transparent !important;
}
.tc-notif-scroll-area::-webkit-scrollbar-thumb {
    background-color: #e2e8f0 !important;
    border-radius: 10px !important;
}

.tc-notif-list {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.tc-notif-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.tc-notif-item:last-child {
    border-bottom: none !important;
}

.tc-notif-item:hover {
    background-color: #f8fafc !important;
}

.tc-notif-item.unread {
    background-color: #f8f6ff !important;
}

.tc-notif-item.unread:hover {
    background-color: #f1eeff !important;
}

/* Colored Icon Badges */
.tc-notif-icon-box {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.tc-notif-icon-box svg {
    width: 20px !important;
    height: 20px !important;
}

.tc-notif-icon-box.welcome { background: #6f69ff !important; color: #ffffff !important; }
.tc-notif-icon-box.arrival { background: #e6fcf5 !important; color: #0ca678 !important; }
.tc-notif-icon-box.order   { background: #e0f2fe !important; color: #0284c7 !important; }
.tc-notif-icon-box.account { background: #fff5f5 !important; color: #e03131 !important; }
.tc-notif-icon-box.plan    { background: #fff9db !important; color: #f08c00 !important; }

/* Content Typography (Pure Poppins) */
.tc-notif-content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    text-align: left !important;
}

.tc-notif-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

.tc-notif-item:hover .tc-notif-title {
    color: #6f69ff !important;
}

.tc-notif-text {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    color: #475569 !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

.tc-notif-time {
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    margin-top: 2px !important;
}

.tc-notif-unread-dot {
    width: 8px !important;
    height: 8px !important;
    background-color: #6f69ff !important;
    border-radius: 50% !important;
    margin-top: 6px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 0 3px rgba(111, 105, 255, 0.2) !important;
}

.tc-notif-empty {
    padding: 40px 20px !important;
    text-align: center !important;
    color: #94a3b8 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

@media (max-width: 480px) {
    .tc-notif-dropdown-menu {
        position: fixed !important;
        top: 80px !important;
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
    }
    .tc-notif-dropdown-menu::before {
        display: none !important;
    }
}