/* Wrapper */
.notification-wrapper {
    position: relative;
}

/* Dropdown */
.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 340px;
    background: var(--bs-white);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    z-index: 1050;
    overflow: hidden;
}

    .notification-dropdown.open {
        display: block;
    }

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
    font-size: 14px;
}

.mark-all-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #0d6efd;
    cursor: pointer;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

/* Item */
.notification-item {
    display: flex;
    gap: 12px;
    padding: .75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    transition: background .15s;
}

    .notification-item:hover {
        background: #f8f9fa;
    }

    .notification-item.unread {
        background: #f0f4ff;
    }

        .notification-item.unread:hover {
            background: #e8eeff;
        }

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-message {
    font-size: 12px;
    color: #6c757d;
    margin: 0 0 4px;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: #adb5bd;
}

/* Empty state */
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 2rem;
    color: #adb5bd;
    font-size: 13px;
}

    .notification-empty i {
        font-size: 28px;
    }

/* Toast */
.tod-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: .875rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 9999;
    min-width: 280px;
    max-width: 360px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s;
    font-size: 13px;
}

    .tod-toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .tod-toast strong {
        display: block;
        margin-bottom: 2px;
        font-size: 13px;
    }

    .tod-toast p {
        margin: 0;
        color: #6c757d;
        font-size: 12px;
    }

    .tod-toast button {
        background: none;
        border: none;
        color: #adb5bd;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
        flex-shrink: 0;
    }
