:root {
    --bg-color: #272727;
    --text-color: #ffffff;
    --accent-color: #2C8FFF;
    --card-bg: #1F1F1F;
    --border-color: #2C8FFF;
    --hover-bg: rgba(44, 143, 255, 0.1);
    --text-muted: #becada;
}


.custom-notification {
    position: fixed;
    bottom: 20px;
    left: 0; 
    right: 0;
    margin: 0 auto;
    width: fit-content;
    max-width: 80%;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.custom-notification.success {
    background-color: #2ecc71;
    border-left: 5px solid #27ae60;
}

.custom-notification.error {
    background-color: #e74c3c;
    border-left: 5px solid #c0392b;
}


#notif-dropdown {
    width: 360px !important;       
    height: auto !important;       
    max-height: 500px !important;  
    
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
    animation: fadeInDropdown 0.2s ease;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


.notif-header {
    flex-shrink: 0; 
    padding: 12px 16px;
    border-bottom: 1px solid rgba(44, 143, 255, 0.2);
    font-weight: bold;
    font-size: 14px;
    color: var(--text-color);
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.notif-list-container {
    flex-grow: 1; 
    overflow-y: auto; 
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--card-bg);
}


.notif-list-container::-webkit-scrollbar {
    width: 6px;
}
.notif-list-container::-webkit-scrollbar-track {
    background: var(--card-bg);
}
.notif-list-container::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 3px;
}


.notif-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: default;
    position: relative;
    align-items: flex-start;
}


.notif-item a {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.notif-item:hover {
    background-color: var(--hover-bg);
}

.notif-item.clickable {
    cursor: pointer;
}


.notif-icon-box {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    margin-right: 12px;
}


.notif-icon-box.type-user-avatar {
    background: transparent !important;
    border-radius: 6px; 
    padding: 0;
}


.notif-icon-box.type-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px !important; 
}


.notif-icon-box.type-gift { color: #a066ff; background: rgba(160, 102, 255, 0.1); border: 1px solid rgba(160, 102, 255, 0.2); }
.notif-icon-box.type-broadcast { color: #ff4848; background: rgba(255, 72, 72, 0.1); }
.notif-icon-box.type-team { color: #2C8FFF; background: rgba(44, 143, 255, 0.1); }
.notif-icon-box.type-tournament { color: #ffe600; background: rgba(255, 230, 0, 0.1); }
.notif-icon-box.type-success { color: #2ecc71; background: rgba(46, 204, 113, 0.1); }
.notif-icon-box.type-info { color: #becada; background: rgba(255, 255, 255, 0.1); }


.notif-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden; 
}

.notif-message {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.4;
    word-wrap: break-word; 
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

.notif-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    margin-top: 100px;
}

.new-badge {
    display: inline-block;
    background: #ff4d4f; 
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    margin-right: 6px; 
    vertical-align: middle;
    text-transform: uppercase;
    box-shadow: 0 0 5px rgba(255, 77, 79, 0.4);
}


.notif-icon-box.type-warning { 
    color: #e67e22; 
    background: rgba(230, 126, 34, 0.15); 
    border: 1px solid rgba(230, 126, 34, 0.3); 
}