/* ================== Notification Styles ================== */
.notification-wrapper {
    position: relative;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Bell Button */
.notification-bell {
    position: relative;
    background: #E5E7EB;
    padding: 8px;
    border-radius: 40%;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.notification-bell:hover {
    background: #D63031;
}
.notification-bell i {
    font-size: 18px;
    color: #1c1c1e;
}

/* Badge */
.notification-badge,
.notification-badge-mobile {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%);
    background: #ff3b30;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    padding: 2px 6px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown - HIDDEN BY DEFAULT */
.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 10px;
    width: 320px;
    max-height: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 9999;
    flex-direction: column;
}

/* Show dropdown when active */
.notification-dropdown.show {
    display: flex !important;
}

/* List Container */
.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
    padding: 8px 0;
    background: #fff;
}

/* Scrollbar styling */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Empty state / placeholder text */
.notification-list p {
    padding: 12px 16px;
    color: #000;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Individual Notification Item */
.notification-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #000;
    text-align: left;
    line-height: 1.5;
    border-bottom: 1px solid #f2f2f7;
    cursor: pointer;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item .notif-text {
    margin: 0;
    color: #000;
}

.notification-item small {
    color: #777;
    font-size: 12px;
}

/* Footer (always shown at bottom) */
.notification-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #e5e5ea;
    background: #f9f9f9;
    flex-shrink: 0;
}

.notification-footer a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #007aff;
    transition: color 0.2s ease;
}

.notification-footer a:hover {
    color: #0051d5;
}

/* Mobile notification wrapper */
.notification-wrapper-mobile {
    position: relative;
    display: inline-block;
}

/* Mobile notification dropdown */
#mobileNotificationDropdown {
    display: none;
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 320px;
    max-height: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 9999;
    flex-direction: column;
}

#mobileNotificationDropdown.show {
    display: flex !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .notification-dropdown,
    #mobileNotificationDropdown {
        width: calc(100% - 16px);
        max-width: 300px;
    }
    
    .notification-badge,
    .notification-badge-mobile {
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
    }
}

@media (max-width: 360px) {
    .notification-dropdown,
    #mobileNotificationDropdown {
        width: calc(100% - 12px);
        max-width: 280px;
    }
    
    .notification-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .notification-footer {
        padding: 10px;
    }
}