/* Compact Card-Style Notifications System */
/* Modern dropdown design with square/card appearance */

.notifications-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    max-height: 550px;
    background: linear-gradient(135deg, rgba(30, 32, 34, 0.98) 0%, rgba(24, 26, 28, 0.98) 100%);
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: 16px;
    z-index: 1000;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(76, 175, 80, 0.1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(24px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.notifications-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    animation: dropIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes dropIn {
    0% {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.notifications-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.notifications-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Compact Header */
.notifications-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.08) 0%, transparent 100%);
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.notifications-header h2 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.01em;
}

.notifications-header h2 i {
    color: #4CAF50;
    font-size: 1rem;
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(76, 175, 80, 0.5));
}

.notifications-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-reload-notifications {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-reload-notifications:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-reload-notifications:active {
    transform: scale(0.95) rotate(180deg);
}

.btn-reload-notifications.loading i {
    animation: spin 0.8s linear infinite;
}

.btn-mark-all-read {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.btn-mark-all-read:hover {
    background: rgba(76, 175, 80, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.25);
}

.btn-close-notifications {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-close-notifications:hover {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* Compact Notifications List */
.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    scroll-behavior: smooth;
    max-height: calc(550px - 80px);
}

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

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

.notifications-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Simple Notification Sections */
.notification-section {
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}



.notification-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1rem 0.75rem;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-section-header i {
    font-size: 1rem;
}

.notification-section[data-section="like"] .notification-section-header i {
    color: #ff4757;
}

.notification-section[data-section="comment"] .notification-section-header i {
    color: #3742fa;
}

.notification-section[data-section="mention"] .notification-section-header i {
    color: #ffa502;
}

.notification-section[data-section="follow"] .notification-section-header i {
    color: #2ed573;
}

.notification-section[data-section="poll_vote"] .notification-section-header i {
    color: #9b59b6;
}

.notification-section[data-section="poll_ended"] .notification-section-header i {
    color: #e67e22;
}

.notification-section-header span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
}

.section-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 22px;
    text-align: center;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
    gap: 0.875rem;
    background: transparent;
    min-height: 80px;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notification-item.unread {
    background: rgba(255, 255, 255, 0.02);
}

.notification-item.unread:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

/* Read notifications - dimmed */
.notification-item:not(.unread) {
    opacity: 0.5;
}

.notification-item:not(.unread):hover {
    opacity: 0.7;
}

/* Simple Avatar */
.notification-avatar {
    position: relative;
    flex-shrink: 0;
}

.notification-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--secondary-bg);
    object-fit: cover;
}

.avatar-fallback {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.notification-type-icon {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary-bg);
}

.notification-type-icon i {
    font-size: 0.65rem;
    color: white;
}

/* Simple Content Layout */
.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 1.5rem;
    overflow: visible;
}

.notification-text {
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-username {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    display: inline;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.15rem;
}

.notification-time i {
    font-size: 0.7rem;
}

/* Simple Unread Indicator */
.unread-indicator {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Notification Bell Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 10px;
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: bounce 0.5s ease;
    border: 2px solid var(--primary-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .notification-badge {
        top: -3px;
        right: -3px;
        font-size: 0.7rem;
        min-width: 18px;
        height: 18px;
        padding: 0.15rem 0.4rem;
    }
}

/* Modern Animations */
@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
        filter: blur(4px);
    }

    to {
        transform: translateX(0);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
        max-height: 200px;
        padding: 1.25rem 1.5rem;
        margin-bottom: 0;
    }

    to {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
        filter: blur(2px);
        max-height: 0;
        padding: 0 1.5rem;
        margin-bottom: 0;
    }
}

.notification-item.removing {
    animation: slideOutRight 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    40% {
        transform: translateY(-50%) scale(1.15);
    }

    60% {
        transform: translateY(-50%) scale(1.08);
    }
}

/* Compact Empty State */
.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin: 0.75rem;
}

.notifications-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
    color: var(--text-secondary);
}

.notifications-empty h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.notifications-empty p {
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.8;
    max-width: 240px;
}

/* Compact Mobile Design - LESS SQUEEZED WITH SIDE GAPS */
@media (max-width: 768px) {
    .notifications-container {
        position: fixed;
        top: 70px;
        right: 1rem !important;
        left: 1rem !important;
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        max-height: 70vh;
    }

    .notifications-container.active {
        transform: translateY(0) scale(1);
    }

    .notifications-header {
        padding: 1.25rem 1rem;
    }

    .notifications-header h2 {
        font-size: 1.15rem;
    }
    
    .notifications-header h2 i {
        font-size: 1.05rem;
    }

    .notifications-actions {
        gap: 0.75rem;
    }

    .btn-reload-notifications {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 0.95rem;
    }

    .btn-mark-all-read {
        padding: 0.75rem 1rem;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        font-size: 0.85rem;
    }

    .btn-mark-all-read span {
        display: inline;
    }
    
    .btn-close-notifications span {
        display: none;
    }

    .notifications-list {
        padding: 0.75rem;
        max-height: calc(70vh - 120px);
    }

    .notification-section {
        margin-bottom: 1rem;
    }

    .notification-section-header {
        padding: 0.875rem 1rem;
    }

    .notification-section-header i {
        padding: 6px;
        font-size: 0.95rem;
    }

    .notification-section-header span {
        font-size: 0.9rem;
    }

    .notification-item {
        padding: 1rem;
        gap: 0.875rem;
        min-height: 72px;
    }

    .notification-avatar img {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    
    .avatar-fallback {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 1.05rem;
    }

    .notification-type-icon {
        width: 18px;
        height: 18px;
        border-radius: 6px;
    }

    .notification-type-icon i {
        font-size: 0.65rem;
    }

    .notification-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .notification-username {
        font-size: 0.9rem;
    }

    .notification-message {
        font-size: 0.85rem;
    }

    .notification-time {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

    .notifications-empty {
        padding: 2.5rem 1.5rem;
        margin: 0.75rem;
    }

    .notifications-empty i {
        font-size: 2.5rem;
    }

    .notifications-empty h3 {
        font-size: 1.05rem;
    }

    .notifications-empty p {
        font-size: 0.85rem;
    }
    
    .btn-close-notifications {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 0.95rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .notifications-container {
        right: 0.75rem !important;
        left: 0.75rem !important;
        width: calc(100vw - 1.5rem) !important;
        max-width: calc(100vw - 1.5rem) !important;
    }
    
    .notifications-header {
        padding: 1rem 0.875rem;
    }

    .notifications-header h2 {
        font-size: 1.1rem;
    }

    .notification-item {
        padding: 0.875rem;
        min-height: 68px;
    }

    .notification-avatar {
        margin-right: 0.75rem;
    }

    .notification-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .avatar-fallback {
        width: 40px;
        height: 40px;
    }

    .notification-type-icon {
        width: 16px;
        height: 16px;
    }

    .notification-type-icon i {
        font-size: 0.6rem;
    }

    .notification-text {
        font-size: 0.875rem;
    }

    .notification-username {
        font-size: 0.875rem;
    }

    .notification-message {
        font-size: 0.825rem;
    }

    .notification-time {
        font-size: 0.725rem;
    }

    .notification-section-header {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }

    .notifications-empty {
        padding: 2rem 1rem;
    }

    .notifications-empty i {
        font-size: 2.25rem;
    }

    .notifications-empty h3 {
        font-size: 1rem;
    }

    .notifications-empty p {
        font-size: 0.825rem;
    }
    
    .btn-mark-all-read {
        padding: 0.65rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .notifications-container {
        height: 100vh;
    }

    .notification-item {
        min-height: 52px;
        padding: 0.5rem 1rem;
    }

    .notification-avatar img {
        width: 32px;
        height: 32px;
    }

    .notifications-empty {
        padding: 1.5rem 1rem;
    }

    .notifications-empty i {
        font-size: 2rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .notification-item {
        min-height: 60px;
        padding: 0.75rem 1rem;
    }

    .btn-mark-all-read,
    .btn-close-notifications {
        min-height: 44px;
        min-width: 44px;
    }

    .notification-item:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: none;
    }

    .notification-item:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }
}

/* Mobile toast notifications */
@media (max-width: 768px) {
    .notification-toast {
        left: 10px !important;
        right: 10px !important;
        top: 10px !important;
        max-width: calc(100vw - 20px) !important;
        font-size: 0.85rem !important;
        padding: 0.75rem !important;
    }

    .notification-toast .toast-content {
        gap: 0.5rem;
    }

    .notification-toast .toast-content i {
        font-size: 1rem;
    }

    .success-toast {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        max-width: calc(100vw - 20px) !important;
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body.notifications-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* Safe area adjustments for mobile devices with notches */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .notifications-container {
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
        }

        .notifications-header {
            padding-top: calc(1rem + env(safe-area-inset-top));
        }
    }
}

/* Loading State */
.notifications-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Loading State */
.notifications-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Section Toggle Button */
.section-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.section-toggle:hover {
    color: var(--text-primary);
}

.section-toggle i {
    font-size: 0.75rem;
}

.notification-section-header {
    cursor: pointer;
    user-select: none;
}

/* Section Content */
.section-content {
    display: block;
    transition: all 0.3s ease;
}

.notification-section[data-collapsed="true"] .section-content {
    display: none;
}

/* Hidden Notifications */
.hidden-notification {
    display: none !important;
}

/* Show More Button */
.show-more-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.show-more-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}


/* Empty Section State */
.section-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: italic;
}

/* Modern Premium Notification Badge */
.notification-badge {
    position: absolute;
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 
        0 0 0 3px rgba(24, 26, 28, 1),
        0 4px 12px rgba(255, 71, 87, 0.5),
        0 0 20px rgba(255, 71, 87, 0.3);
    animation: badgePulse 2.5s ease-in-out infinite;
    z-index: 100;
    letter-spacing: 0.5px;
    line-height: 22px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.notification-badge:hover {
    transform: scale(1.15);
    box-shadow: 
        0 0 0 3px rgba(24, 26, 28, 1),
        0 6px 16px rgba(255, 71, 87, 0.6),
        0 0 28px rgba(255, 71, 87, 0.4);
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 0 3px rgba(24, 26, 28, 1),
            0 4px 12px rgba(255, 71, 87, 0.5),
            0 0 20px rgba(255, 71, 87, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 
            0 0 0 3px rgba(24, 26, 28, 1),
            0 6px 16px rgba(255, 71, 87, 0.7),
            0 0 32px rgba(255, 71, 87, 0.5);
    }
}

/* Badge on sidebar menu item */
.sidebar-menu .menu-item {
    position: relative;
}

.sidebar-menu .menu-item a {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-menu .menu-item .notification-badge {
    position: static;
    margin-left: auto;
    margin-right: 8px;
    transform: none;
    min-width: 24px;
    height: 24px;
    font-size: 11px;
    line-height: 24px;
    border-radius: 12px;
}

.sidebar-menu .menu-item a:hover .notification-badge {
    transform: scale(1.12);
}

/* Badge on mobile notification button */
.mobile-notifications-btn {
    position: relative;
}

.mobile-notifications-btn .notification-badge {
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    font-size: 9px;
    line-height: 20px;
    border-radius: 10px;
    padding: 0 5px;
    box-shadow: 
        0 0 0 2.5px rgba(24, 26, 28, 1),
        0 3px 10px rgba(255, 71, 87, 0.5),
        0 0 16px rgba(255, 71, 87, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-badge {
        min-width: 20px;
        height: 20px;
        font-size: 9px;
        line-height: 20px;
        border-radius: 10px;
        padding: 0 5px;
        box-shadow: 
            0 0 0 2.5px rgba(24, 26, 28, 1),
            0 3px 10px rgba(255, 71, 87, 0.5),
            0 0 16px rgba(255, 71, 87, 0.3);
    }
}


/* Coming Soon Section - Modern Design */
.notifications-coming-soon {
    padding: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.02));
    margin-top: auto;
}

.coming-soon-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.coming-soon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #4CAF50, #45a049);
    opacity: 0.6;
}

.coming-soon-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(76, 175, 80, 0.25);
    transform: translateY(-1px);
}

.coming-soon-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.coming-soon-icon i {
    font-size: 1.1rem;
    color: #4CAF50;
}

.coming-soon-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coming-soon-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.01em;
}

.coming-soon-badge {
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.15));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .notifications-coming-soon {
        padding: 0.75rem;
    }
    
    .coming-soon-item {
        padding: 0.75rem 0.875rem;
    }
}
