/* Notification Bell & Badge */
.notification-container {
    position: relative;
    margin: 0 15px;
    cursor: pointer;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    color: #00d2ff !important; /* Brighter blue for visibility */
    font-size: 22px;
    transition: transform 0.2s ease, text-shadow 0.3s ease;
}

.notification-container:hover {
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff4d4d;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    display: none; /* Hidden by default */
}

/* Dropdown Menu - Global Fixed Positioning */
.notification-dropdown {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    z-index: 10001; /* Higher than header but below top modals */
    overflow: hidden;
    animation: dropIn 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-size: 16px;
    margin: 0;
    color: #00d2ff;
}

.clear-all-btn {
    font-size: 12px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.clear-all-btn:hover { color: #ff4d4d; }

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    gap: 15px;
    transition: background 0.2s;
    cursor: default;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
    background: rgba(0, 210, 255, 0.05);
}

.noti-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.noti-icon.success { background: rgba(0, 255, 150, 0.1); color: #00ff96; }
.noti-icon.error { background: rgba(255, 77, 77, 0.1); color: #ff4d4d; }

.noti-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.noti-title {
    font-size: 14px;
    font-weight: 600;
    color: #eee;
}

.noti-text {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}

.noti-time {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
}

.notification-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: #666;
}

.no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #555;
    font-size: 14px;
}

/* Custom Scrollbar for Notification List */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 210, 255, 0.6);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: 80px;
        left: 5%;
        right: 5%;
        width: 90%;
        max-height: 75vh;
        border-radius: 24px;
        background: rgba(15, 15, 15, 0.95);
        border: 1px solid rgba(0, 210, 255, 0.2);
    }

    .notification-header h3 {
        font-size: 18px;
    }

    .notification-item {
        padding: 18px 20px;
    }

    .noti-title {
        font-size: 15px;
    }

    .noti-text {
        font-size: 13px;
    }
}
