/* === TOAST NOTIFICATION === */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-item {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast-item.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.2rem;
}

/* === NOTIFICATION BELL === */
.noti-btn {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    transition: color 0.2s;
}

.noti-btn:hover {
    color: var(--accent);
}

.noti-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4757;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 1px solid #1a1a1a;
    display: none;
    /* Hide if empty */
}

/* === NOTIFICATION MODAL === */
#noti-modal {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

#noti-modal.hidden {
    display: none;
}

.noti-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
}

.noti-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.noti-list {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
}

.noti-item {
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

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

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

.noti-item.unread {
    background: rgba(var(--accent-rgb), 0.1);
    /* Need accent rgb var or hex opacity */
    background: #2a2a3a;
}

.noti-thumb {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.noti-content {
    flex: 1;
    min-width: 0;
    /* Text truncation fix */
}

.noti-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noti-body {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noti-time {
    font-size: 0.7rem;
    color: #666;
}

.noti-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    top: 16px;
    right: 16px;
}